Skip to content

Commit

Permalink
9562-implement-dynamic-environment-variable-loading-for-single-artifa…
Browse files Browse the repository at this point in the history
…ct-deployment
  • Loading branch information
leomendoza123 committed Jan 8, 2025
1 parent c678353 commit bc4ccda
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 282 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
],
"scripts": ["src/assets/dev-runtime-environment-setter.js"],
"scripts": ["src/assets/local-dev-environment.js"],
"assets": ["src/favicon.ico", "src/assets", "src/manifest.json"],
"sourceMap": true
}
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
"name": "ng-orcid",
"version": "0.0.0",
"scripts": {
"start-local": "ts-node -P scripts/tsconfig.json scripts/runtime-environment-setter.dev-runtime.ts && ng serve --disable-host-check --host 0.0.0.0",
"start": "ts-node -P scripts/tsconfig.json scripts/runtime-environment-setter.dev-runtime.ts && ng serve --configuration=local-qa --host 0.0.0.0",
"start-local": "npm run build-runtime-env && ng serve --disable-host-check --host 0.0.0.0",
"start": "npm run build-runtime-env && ng serve --configuration=local-qa --host 0.0.0.0",
"start-sandbox": "ng serve --configuration=local-sandbox --host 0.0.0.0",
"start:en": "ng serve --configuration=local-qa-en --disable-host-check",
"start:ar": "ng serve --configuration=local-qa-ar --disable-host-check",
"start:fr": "ng serve --configuration=local-qa-fr --disable-host-check",
"start:xx": "ng serve --configuration=local-qa-xx --disable-host-check",
"test": "ng test",
"test-headless": "ng test --watch=false --browsers=ChromeHeadless",
"test": "npm run build-runtime-env && ng test",
"test-headless": "npm run build-runtime-env && ng test --watch=false --browsers=ChromeHeadless",
"build-runtime-env": "ts-node -P scripts/tsconfig.json scripts/runtime-environment-setter.dev-runtime.ts",
"lint": "echo 'temporally disable Angular linter to until eslint update'",
"e2e": "ng e2e",
"prebuild": "rimraf dist && yarn build:i18n && yarn build:browserslist",
Expand Down
339 changes: 62 additions & 277 deletions src/assets/local-dev-environment.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc4ccda

Please sign in to comment.