ci(aio): fix `deploy-to-firebase` script (#23470)
Temporary workaround for angular/angular-cli#10398. The behavior of `yarn build` remains the same, but building for a specific deployment env (e.g. archive, next) requires `yarn build-for $deployEnv`. PR Close #23470
This commit is contained in:
parent
b1d03fe70b
commit
dab5df9734
|
@ -13,10 +13,11 @@
|
||||||
"aio-check-local": "node tools/ng-packages-installer check .",
|
"aio-check-local": "node tools/ng-packages-installer check .",
|
||||||
"ng": "yarn check-env && ng",
|
"ng": "yarn check-env && ng",
|
||||||
"start": "yarn check-env && ng serve",
|
"start": "yarn check-env && ng serve",
|
||||||
"prebuild": "yarn setup",
|
"build": "yarn build-for stable",
|
||||||
"build": "yarn ~~build",
|
"prebuild-for": "yarn setup",
|
||||||
|
"build-for": "yarn ~~build --configuration",
|
||||||
"prebuild-local": "yarn setup-local",
|
"prebuild-local": "yarn setup-local",
|
||||||
"build-local": "yarn ~~build",
|
"build-local": "yarn ~~build --configuration=stable",
|
||||||
"lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint",
|
"lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint",
|
||||||
"test": "yarn check-env && ng test",
|
"test": "yarn check-env && ng test",
|
||||||
"pree2e": "yarn check-env && yarn update-webdriver",
|
"pree2e": "yarn check-env && yarn update-webdriver",
|
||||||
|
@ -60,7 +61,7 @@
|
||||||
"build-ie-polyfills": "yarn webpack-cli src/ie-polyfills.js -o src/generated/ie-polyfills.min.js --mode production",
|
"build-ie-polyfills": "yarn webpack-cli src/ie-polyfills.js -o src/generated/ie-polyfills.min.js --mode production",
|
||||||
"update-webdriver": "webdriver-manager update --standalone false --gecko false $CHROMEDRIVER_VERSION_ARG",
|
"update-webdriver": "webdriver-manager update --standalone false --gecko false $CHROMEDRIVER_VERSION_ARG",
|
||||||
"~~check-env": "node scripts/check-environment",
|
"~~check-env": "node scripts/check-environment",
|
||||||
"~~build": "ng build --configuration=stable",
|
"~~build": "ng build",
|
||||||
"post~~build": "yarn sw-manifest && yarn sw-copy"
|
"post~~build": "yarn sw-manifest && yarn sw-copy"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -87,7 +87,7 @@ fi
|
||||||
cd "`dirname $0`/.."
|
cd "`dirname $0`/.."
|
||||||
|
|
||||||
# Build the app
|
# Build the app
|
||||||
yarn build --configuration=$deployEnv
|
yarn build-for $deployEnv
|
||||||
|
|
||||||
# Include any mode-specific files
|
# Include any mode-specific files
|
||||||
cp -rf src/extra-files/$deployEnv/. dist/
|
cp -rf src/extra-files/$deployEnv/. dist/
|
||||||
|
|
Loading…
Reference in New Issue