@eui/tools 5.3.22 → 5.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.version.properties +1 -1
- package/CHANGELOG.md +27 -0
- package/package.json +1 -1
- package/scripts/csdr/release/app/release-app.js +1 -1
- package/scripts/utils/build/app/build-app-utils.js +35 -1
- package/scripts/utils/pre-build/injection/externals.js +24 -3
- package/scripts/utils/pre-build/projects.js +1 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.25
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 5.3.25 (2022-06-22)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* avoid removing assets path on app source injection - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([63b520d1](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/63b520d107bdfe4dd64f46bd6eb78943db71fc93))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.24 (2022-06-21)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* prevent cleaning injected sources at build time - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([edda50d6](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/edda50d6d28c3760af0903ed55a9354f7e994bfd))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.3.23 (2022-06-21)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* force optimized build for MWP host on all environment option - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([c7f092c2](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c7f092c2abf242932f456f35ebc0d8ee1529d3bb))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 5.3.22 (2022-06-21)
|
|
2
29
|
|
|
3
30
|
##### Chores
|
package/package.json
CHANGED
|
@@ -290,7 +290,7 @@ module.exports.run = () => {
|
|
|
290
290
|
if (project.build && project.build.distribution) {
|
|
291
291
|
return Promise.resolve()
|
|
292
292
|
.then(() => {
|
|
293
|
-
return utils.buildApp.generateProjectDistributionFile(project, (isSnapshot || isSupportSnapshotBranch));
|
|
293
|
+
return utils.buildApp.generateProjectDistributionFile(project, (isSnapshot || isSupportSnapshotBranch), envTarget);
|
|
294
294
|
})
|
|
295
295
|
.catch((e) => {
|
|
296
296
|
throw e;
|
|
@@ -165,6 +165,10 @@ module.exports.angular = (envTarget, isSnapshot, version, configEnvTargetIn) =>
|
|
|
165
165
|
isOptimizedBuild = true;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
if (currentProject.build.fullOptimizedBuild) {
|
|
169
|
+
isOptimizedBuild = true;
|
|
170
|
+
}
|
|
171
|
+
|
|
168
172
|
if (!envTarget && isSnapshot && currentProject.build && currentProject.build.snapshotBuildOptimized) {
|
|
169
173
|
isOptimizedBuild = true;
|
|
170
174
|
}
|
|
@@ -266,7 +270,7 @@ module.exports.postBuild = (project) => {
|
|
|
266
270
|
}
|
|
267
271
|
|
|
268
272
|
|
|
269
|
-
module.exports.generateProjectDistributionFile = (project, isSnapshot) => {
|
|
273
|
+
module.exports.generateProjectDistributionFile = (project, isSnapshot, envTarget) => {
|
|
270
274
|
tools.logTitle('Generating distribution file');
|
|
271
275
|
|
|
272
276
|
let projectVersion;
|
|
@@ -294,6 +298,36 @@ module.exports.generateProjectDistributionFile = (project, isSnapshot) => {
|
|
|
294
298
|
if (isSnapshot && project.build.distribution.bucketNameSnapshot) {
|
|
295
299
|
bucketName = project.build.distribution.bucketNameSnapshot;
|
|
296
300
|
}
|
|
301
|
+
|
|
302
|
+
if (envTarget) {
|
|
303
|
+
if (envTarget === 'DEV' && project.build.distribution.bucketNameDev) {
|
|
304
|
+
bucketName = project.build.distribution.bucketNameDev;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (envTarget === 'TST' && project.build.distribution.bucketNameTst) {
|
|
308
|
+
bucketName = project.build.distribution.bucketNameTst;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (envTarget === 'INT' && project.build.distribution.bucketNameInt) {
|
|
312
|
+
bucketName = project.build.distribution.bucketNameInt;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if (envTarget === 'ACC' && project.build.distribution.bucketNameAcc) {
|
|
316
|
+
bucketName = project.build.distribution.bucketNameAcc;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (envTarget === 'DLT' && project.build.distribution.bucketNameDlt) {
|
|
320
|
+
bucketName = project.build.distribution.bucketNameDlt;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (envTarget === 'TRN' && project.build.distribution.bucketNameTrn) {
|
|
324
|
+
bucketName = project.build.distribution.bucketNameTrn;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
if (envTarget === 'PROD' && project.build.distribution.bucketNameProd) {
|
|
328
|
+
bucketName = project.build.distribution.bucketNameProd;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
297
331
|
}
|
|
298
332
|
|
|
299
333
|
// final output bucket location
|
|
@@ -64,7 +64,7 @@ module.exports.injectExternalFeatures = (project) => {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
module.exports.injectExternalAppSources = (project) => {
|
|
67
|
+
module.exports.injectExternalAppSources = (project, build = false) => {
|
|
68
68
|
|
|
69
69
|
tools.logTitle(`Injecting project external application sources for : ${project.name}`);
|
|
70
70
|
|
|
@@ -106,11 +106,32 @@ module.exports.injectExternalAppSources = (project) => {
|
|
|
106
106
|
throw new Error('External features not found');
|
|
107
107
|
|
|
108
108
|
} else {
|
|
109
|
-
tools.logInfo(`Removing ${projectSrcPath} content`);
|
|
110
109
|
|
|
111
110
|
return Promise.resolve()
|
|
112
111
|
.then(() => {
|
|
113
|
-
|
|
112
|
+
if (!build) {
|
|
113
|
+
// removing previously injected content, except assets
|
|
114
|
+
const projectSrcAppPath = path.join(projectSrcPath, 'app');
|
|
115
|
+
const projectSrcConfigPath = path.join(projectSrcPath, 'config');
|
|
116
|
+
const projectSrcEnvironmentsPath = path.join(projectSrcPath, 'environments');
|
|
117
|
+
|
|
118
|
+
return Promise.resolve()
|
|
119
|
+
.then(() => {
|
|
120
|
+
tools.logInfo(`Removing ${projectSrcAppPath} content`);
|
|
121
|
+
return tools.rimraf(projectSrcAppPath);
|
|
122
|
+
})
|
|
123
|
+
.then(() => {
|
|
124
|
+
tools.logInfo(`Removing ${projectSrcConfigPath} content`);
|
|
125
|
+
return tools.rimraf(projectSrcConfigPath);
|
|
126
|
+
})
|
|
127
|
+
.then(() => {
|
|
128
|
+
tools.logInfo(`Removing ${projectSrcEnvironmentsPath} content`);
|
|
129
|
+
return tools.rimraf(projectSrcEnvironmentsPath);
|
|
130
|
+
})
|
|
131
|
+
.catch((e) => {
|
|
132
|
+
throw e;
|
|
133
|
+
})
|
|
134
|
+
}
|
|
114
135
|
})
|
|
115
136
|
.then(() => {
|
|
116
137
|
tools.logInfo(`${appSourcesSrcPath} injecting in ${projectSrcPath}`);
|
|
@@ -29,7 +29,7 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
|
29
29
|
// inject external app sources declaration
|
|
30
30
|
.then(() => {
|
|
31
31
|
if (project.appSources && project.appSources.external) {
|
|
32
|
-
return injectionUtils.externals.injectExternalAppSources(project);
|
|
32
|
+
return injectionUtils.externals.injectExternalAppSources(project, build);
|
|
33
33
|
}
|
|
34
34
|
})
|
|
35
35
|
|