Skip to content

Commit 3631abc

Browse files
Merge pull request #2439 from ORCID/9562-implement-dynamic-environment-variable-loading-for-single-artifact-deployment
9562 implement dynamic environment variable loading for single artifact deployment
2 parents f702853 + c562b30 commit 3631abc

File tree

120 files changed

+704
-711
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+704
-711
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ cypress/plugins/token.json
7777

7878
# Packages ignore package-lock to depend only on yarn
7979
package-lock.json
80-
80+
src/assets/runtime-environment.js

angular.json

Lines changed: 8 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,7 @@
133133
"src/styles.scss",
134134
"src/assets/scss/grid.scss"
135135
],
136-
"fileReplacements": [
137-
{
138-
"replace": "src/environments/environment.ts",
139-
"with": "src/environments/environment.local.ts"
140-
}
141-
]
136+
"scripts": ["src/assets/runtime-environment.js"]
142137
},
143138
"configurations": {
144139
"local": {
@@ -171,12 +166,6 @@
171166
"type": "anyComponentStyle",
172167
"maximumWarning": "6kb"
173168
}
174-
],
175-
"fileReplacements": [
176-
{
177-
"replace": "src/environments/environment.ts",
178-
"with": "src/environments/environment.local-with-proxy.ts"
179-
}
180169
]
181170
},
182171
"local-with-proxy-localize-en": {
@@ -194,95 +183,23 @@
194183
"type": "anyComponentStyle",
195184
"maximumWarning": "6kb"
196185
}
197-
],
198-
"fileReplacements": [
199-
{
200-
"replace": "src/environments/environment.ts",
201-
"with": "src/environments/environment.local-with-proxy.ts"
202-
}
203186
]
204187
},
205188
"local-with-proxy-localize-fr": {
206-
"localize": ["fr"],
207-
"fileReplacements": [
208-
{
209-
"replace": "src/environments/environment.ts",
210-
"with": "src/environments/environment.local-with-proxy.ts"
211-
}
212-
]
189+
"localize": ["fr"]
213190
},
214191
"local-with-proxy-localize-ar": {
215-
"localize": ["ar"],
216-
"fileReplacements": [
217-
{
218-
"replace": "src/environments/environment.ts",
219-
"with": "src/environments/environment.local-with-proxy.ts"
220-
}
221-
]
192+
"localize": ["ar"]
222193
},
223194
"local-with-proxy-localize-xx": {
224-
"localize": ["xx"],
225-
"fileReplacements": [
226-
{
227-
"replace": "src/environments/environment.ts",
228-
"with": "src/environments/environment.local-with-proxy.ts"
229-
}
230-
]
195+
"localize": ["xx"]
231196
},
232197
"production": {
233198
"budgets": [
234199
{
235200
"type": "anyComponentStyle",
236201
"maximumWarning": "6kb"
237202
}
238-
],
239-
"fileReplacements": [
240-
{
241-
"replace": "src/environments/environment.ts",
242-
"with": "src/environments/environment.production.ts"
243-
}
244-
]
245-
},
246-
"qa": {
247-
"budgets": [
248-
{
249-
"type": "anyComponentStyle",
250-
"maximumWarning": "6kb"
251-
}
252-
],
253-
"fileReplacements": [
254-
{
255-
"replace": "src/environments/environment.ts",
256-
"with": "src/environments/environment.qa.ts"
257-
}
258-
]
259-
},
260-
"sandbox": {
261-
"budgets": [
262-
{
263-
"type": "anyComponentStyle",
264-
"maximumWarning": "6kb"
265-
}
266-
],
267-
"fileReplacements": [
268-
{
269-
"replace": "src/environments/environment.ts",
270-
"with": "src/environments/environment.sandbox.ts"
271-
}
272-
]
273-
},
274-
"int": {
275-
"budgets": [
276-
{
277-
"type": "anyComponentStyle",
278-
"maximumWarning": "6kb"
279-
}
280-
],
281-
"fileReplacements": [
282-
{
283-
"replace": "src/environments/environment.ts",
284-
"with": "src/environments/environment.int.ts"
285-
}
286203
]
287204
},
288205
"en": {
@@ -370,23 +287,16 @@
370287
},
371288
"local-sandbox": {
372289
"browserTarget": "ng-orcid:build:local-with-proxy",
373-
"proxyConfig": "src/proxy.conf.sandbox..mjs"
290+
"proxyConfig": "src/proxy.conf.sandbox.mjs"
374291
},
375292
"local": {
376293
"browserTarget": "ng-orcid:build:local"
377294
},
378-
"local-tomcat": {
379-
"browserTarget": "ng-orcid:build:local-tomcat"
380-
},
295+
"local-tomcat": {},
381296
"production": {
382297
"browserTarget": "ng-orcid:build:production"
383298
},
384-
"sandbox": {
385-
"browserTarget": "ng-orcid:build:sandbox"
386-
},
387-
"qa": {
388-
"browserTarget": "ng-orcid:build:qa"
389-
},
299+
390300
"en": {
391301
"browserTarget": "ng-orcid:build:en"
392302
},
@@ -460,7 +370,7 @@
460370
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
461371
"src/styles.scss"
462372
],
463-
"scripts": [],
373+
"scripts": ["src/assets/runtime-environment.js"],
464374
"assets": ["src/favicon.ico", "src/assets", "src/manifest.json"],
465375
"sourceMap": true
466376
}
@@ -487,7 +397,6 @@
487397
"options": {
488398
"configDir": ".storybook",
489399
"browserTarget": "ng-orcid:build",
490-
"compodoc": true,
491400
"compodocArgs": ["-e", "json", "-d", "."],
492401
"outputDir": "dist/storybook/ng-orcid"
493402
}

0 commit comments

Comments
 (0)