Generate config on serve and updated git revision method (#587)
* run generate-config on serve * write the config file only if settings have changed * read the git commit hash from the current branch, not master * git sha is now short by default, no need to trim on the about component
This commit is contained in:
committed by
GitHub
parent
1016586992
commit
4c7d0cd2e5
@@ -24,9 +24,9 @@
|
||||
"tsc": "./node_modules/typescript/bin/tsc",
|
||||
"i18n-extract-from-source": "./node_modules/@angular/cli/bin/ng xi18n --ivy --out-file ./src/locale/messages.xlf",
|
||||
"i18n-pull-from-transifex": "tx pull -a --parallel --minimum-perc 1 --force",
|
||||
"serve": "ng serve -c local",
|
||||
"serve:stg": "ng serve -c staging",
|
||||
"serve:local-prod": "ng serve -c local-prod",
|
||||
"serve": "npm run generate-config && ng serve -c local",
|
||||
"serve:stg": "npm run generate-config && ng serve -c staging",
|
||||
"serve:local-prod": "npm run generate-config && ng serve -c local-prod",
|
||||
"start": "npm run generate-config && npm run sync-assets-dev && ng serve -c local",
|
||||
"start:stg": "npm run generate-config && npm run sync-assets-dev && ng serve -c staging",
|
||||
"start:local-prod": "npm run generate-config && npm run sync-assets-dev && ng serve -c local-prod",
|
||||
|
||||
Reference in New Issue
Block a user