build(aio): add setup script
This commit is contained in:
parent
c9983e6440
commit
b6ddacdccf
|
@ -13,6 +13,7 @@ You should run all these tasks from the `angular/aio` folder.
|
||||||
Here are the most important tasks you might need to use:
|
Here are the most important tasks you might need to use:
|
||||||
|
|
||||||
* `yarn` - install all the dependencies.
|
* `yarn` - install all the dependencies.
|
||||||
|
* `yarn setup` - Install all the dependencies, boilerplate, plunkers, zips and runs dgeni on the docs.
|
||||||
|
|
||||||
* `yarn start` - run a development web server that watches the files; then builds the doc-viewer and reloads the page, as necessary.
|
* `yarn start` - run a development web server that watches the files; then builds the doc-viewer and reloads the page, as necessary.
|
||||||
* `yarn lint` - check that the doc-viewer code follows our style rules.
|
* `yarn lint` - check that the doc-viewer code follows our style rules.
|
||||||
|
|
|
@ -8,11 +8,12 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "yarn check-env && ng",
|
"ng": "yarn check-env && ng",
|
||||||
"start": "yarn check-env && ng serve",
|
"start": "yarn check-env && ng serve",
|
||||||
"build": "yarn check-env && yarn docs && ng build -prod -sm",
|
"build": "yarn check-env && yarn setup && ng build -prod -sm",
|
||||||
"lint": "yarn check-env && yarn docs-lint && ng lint",
|
"lint": "yarn check-env && yarn docs-lint && ng lint",
|
||||||
"test": "yarn check-env && ng test --sourcemap=false",
|
"test": "yarn check-env && ng test --sourcemap=false",
|
||||||
"pree2e": "yarn ~~update-webdriver",
|
"pree2e": "yarn ~~update-webdriver",
|
||||||
"e2e": "yarn check-env && ng e2e --no-webdriver-update",
|
"e2e": "yarn check-env && ng e2e --no-webdriver-update",
|
||||||
|
"setup": "yarn && yarn boilerplate:add && yarn docs && yarn generate-plunkers && yarn generate-zips",
|
||||||
"pretest-pwa-score-local": "yarn build",
|
"pretest-pwa-score-local": "yarn build",
|
||||||
"test-pwa-score-local": "concurrently --kill-others --success first \"http-server dist -p 4200 --silent\" \"yarn test-pwa-score -- http://localhost:4200 90\"",
|
"test-pwa-score-local": "concurrently --kill-others --success first \"http-server dist -p 4200 --silent\" \"yarn test-pwa-score -- http://localhost:4200 90\"",
|
||||||
"test-pwa-score": "node scripts/test-pwa-score",
|
"test-pwa-score": "node scripts/test-pwa-score",
|
||||||
|
|
Loading…
Reference in New Issue