build(aio): provide cleaner scripts for local build switching (#19511)

PR Close #19511
This commit is contained in:
Peter Bacon Darwin 2017-10-06 13:37:56 +01:00 committed by Tobias Bosch
parent d1a00459a8
commit ab8ee4d0d9
1 changed files with 10 additions and 5 deletions

View File

@ -6,6 +6,9 @@
"author": "Angular",
"license": "MIT",
"scripts": {
"aio-use-local": "node tools/ng-packages-installer overwrite .",
"aio-use-npm": "node tools/ng-packages-installer restore .",
"aio-check-local": "node tools/ng-packages-installer check .",
"ng": "yarn check-env && ng",
"start": "yarn check-env && ng serve",
"prebuild": "yarn setup",
@ -17,21 +20,23 @@
"pree2e": "yarn check-env && yarn ~~update-webdriver",
"e2e": "ng e2e --no-webdriver-update",
"presetup": "yarn ~~check-env && yarn install && yarn boilerplate:remove",
"setup": "node tools/ng-packages-installer restore . && yarn boilerplate:add",
"setup": "yarn aio-use-npm && yarn boilerplate:add",
"postsetup": "yarn build-ie-polyfills && yarn generate-plunkers && yarn generate-zips && yarn docs",
"presetup-local": "yarn presetup",
"setup-local": "node tools/ng-packages-installer overwrite . && yarn boilerplate:add --local",
"setup-local": "yarn aio-use-local && yarn boilerplate:add --local",
"postsetup-local": "yarn postsetup",
"pretest-pwa-score-localhost": "yarn build",
"test-pwa-score-localhost": "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",
"example-e2e": "yarn check-ng-packages tools/examples/shared && node ./tools/examples/run-example-e2e",
"example-e2e": "yarn example-check-local && node ./tools/examples/run-example-e2e",
"example-lint": "tslint -c \"content/examples/tslint.json\" \"content/examples/**/*.ts\" -e \"content/examples/styleguide/**/*.avoid.ts\"",
"example-use-local": "node tools/ng-packages-installer overwrite ./tools/examples/shared",
"example-use-npm": "node tools/ng-packages-installer restore ./tools/examples/shared",
"example-check-local": "node tools/ng-packages-installer check ./tools/examples/shared",
"deploy-preview": "scripts/deploy-preview.sh",
"deploy-production": "scripts/deploy-to-firebase.sh",
"check-ng-packages": "node tools/ng-packages-installer check",
"check-env": "yarn ~~check-env",
"postcheck-env": "yarn check-ng-packages .",
"postcheck-env": "yarn aio-check-local",
"payload-size": "scripts/payload.sh",
"predocs": "rimraf src/generated/{docs,*.json}",
"docs": "dgeni ./tools/transforms/angular.io-package",