Web: Added opportunity to deploy all static clients to build/deploy directory (yarn build && yarn deploy)

This commit is contained in:
Alexey Safronov 2021-05-07 18:54:25 +03:00
parent faa2ce2876
commit 6c3244a3e9
13 changed files with 16 additions and 3 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ Data/
Logs/
**/.DS_Store
.eslintcache
build/deploy/

View File

@ -24,7 +24,8 @@
"clean": "concurrently \"wsrun --parallel clean\"",
"storybook": "yarn workspace @appserver/components storybook",
"storybook-build": "yarn workspace @appserver/components run storybook-build",
"bump": "lerna version --no-push --no-git-tag-version"
"bump": "lerna version --no-push --no-git-tag-version",
"deploy": "rimraf build/deploy && yarn workspaces run deploy"
},
"devDependencies": {
"lerna": "^3.22.1",

View File

@ -6,7 +6,8 @@
"build": "echo 'skip it'",
"start": "echo 'skip it'",
"start-prod": "echo 'skip it'",
"clean": "echo 'skip it'"
"clean": "echo 'skip it'",
"deploy": "echo 'skip it'"
},
"api": {
"url": "/api/2.0",

View File

@ -12,7 +12,8 @@
"storybook": "start-storybook -p 8082 -s public",
"storybook-build": "build-storybook",
"storybook-serve": "serve storybook-static -p 8082",
"clean": "echo 'skip it'"
"clean": "echo 'skip it'",
"deploy": "echo 'skip it'"
},
"devDependencies": {
"@babel/cli": "^7.12.10",

View File

@ -9,6 +9,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5014",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" \"../../../build/deploy/products/ASC.CRM/client\" /Y /I",
"serve": "serve dist -p 5014",
"clean": "rm -rf dist"
},

View File

@ -9,6 +9,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5017",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" /D \"../../../build/deploy/products/ASC.Calendar/client\" /Y /I",
"serve": "serve dist -p 5017",
"clean": "rm -rf dist"
},

View File

@ -9,6 +9,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5008",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" \"../../../build/deploy/products/ASC.Files/client\" /Y /I",
"serve": "serve dist -p 5008",
"clean": "rm -rf dist"
},

View File

@ -9,6 +9,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5016",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" \"../../../build/deploy/products/ASC.Mail/client\" /Y /I",
"serve": "serve dist -p 5016",
"clean": "rm -rf dist"
},

View File

@ -9,6 +9,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5002",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" \"../../../build/deploy/products/ASC.People/client\" /Y /I",
"serve": "serve dist -p 5002",
"clean": "rm -rf dist"
},

View File

@ -9,6 +9,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5015",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" \"../../../build/deploy/products/ASC.Projects/client\" /Y /I",
"serve": "serve dist -p 5015",
"clean": "rm -rf dist"
},

View File

@ -8,6 +8,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5001",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" \"../../build/deploy/studio/client\" /Y /I",
"serve": "serve dist -p 5001",
"clean": "rm -rf dist"
},

View File

@ -8,6 +8,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5013",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" \"../../build/deploy/products/ASC.Files/editor\" /Y /I",
"serve": "serve dist -p 5013",
"clean": "rm -rf dist"
},

View File

@ -8,6 +8,7 @@
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5011",
"build": "webpack --mode production",
"deploy": "xcopy /s \"./dist\" \"../../build/deploy/studio/login\" /Y /I",
"serve": "serve dist -p 5011",
"clean": "rm -rf dist"
},