Skip to content

Commit

Permalink
Web: Added opportunity to deploy all static clients to build/deploy d…
Browse files Browse the repository at this point in the history
…irectory (yarn build && yarn deploy)
  • Loading branch information
AlexeySafronov committed May 7, 2021
1 parent faa2ce2 commit 6c3244a
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ Data/
Logs/
**/.DS_Store
.eslintcache
build/deploy/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/asc-web-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/asc-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions products/ASC.CRM/Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions products/ASC.Calendar/Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions products/ASC.Files/Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions products/ASC.Mail/Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions products/ASC.People/Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions products/ASC.Projects/Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions web/ASC.Web.Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions web/ASC.Web.Editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions web/ASC.Web.Login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 6c3244a

Please sign in to comment.