@eui/tools 5.3.21 → 5.3.24
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/utils/build/app/build-app-utils.js +4 -0
- package/scripts/utils/pre-build/injection/externals.js +5 -3
- package/scripts/utils/pre-build/injection/routes-replacement.js +14 -6
- package/scripts/utils/pre-build/projects.js +1 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.24
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 5.3.24 (2022-06-21)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* 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))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.23 (2022-06-21)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* 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))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.3.22 (2022-06-21)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* adapted routes replacement for local csdr app build - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([cd35684e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/cd35684e3489edc411c52caf4d874fc660710274))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 5.3.21 (2022-06-21)
|
|
2
29
|
|
|
3
30
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -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,13 @@ 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
|
+
tools.logInfo(`Removing ${projectSrcPath} content`);
|
|
114
|
+
return tools.rimraf(projectSrcPath);
|
|
115
|
+
}
|
|
114
116
|
})
|
|
115
117
|
.then(() => {
|
|
116
118
|
tools.logInfo(`${appSourcesSrcPath} injecting in ${projectSrcPath}`);
|
|
@@ -7,12 +7,20 @@ const tools = require('../../tools');
|
|
|
7
7
|
const configUtils = require('../../../csdr/config/config-utils');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
const getEnvTarget = (
|
|
11
|
-
if (!
|
|
12
|
-
|
|
10
|
+
const getEnvTarget = (envTargetIn, build) => {
|
|
11
|
+
if (!envTargetIn) {
|
|
12
|
+
|
|
13
|
+
// check if envTarget has been provided as cli args for stand-alone local build of CSDR apps
|
|
14
|
+
const { envTarget } = tools.getArgs();
|
|
15
|
+
|
|
16
|
+
if (!envTarget) {
|
|
17
|
+
throw 'ENV_TARGET_NOT_FOUND';
|
|
18
|
+
} else {
|
|
19
|
+
envTargetIn = envTarget;
|
|
20
|
+
}
|
|
13
21
|
}
|
|
14
22
|
|
|
15
|
-
let envTargetFinal =
|
|
23
|
+
let envTargetFinal = envTargetIn.toLowerCase();
|
|
16
24
|
|
|
17
25
|
if (build) {
|
|
18
26
|
// dirty fix as openid files do not respect envTarget names
|
|
@@ -22,8 +30,8 @@ const getEnvTarget = (envTarget, build) => {
|
|
|
22
30
|
|
|
23
31
|
// serve configuration based
|
|
24
32
|
} else {
|
|
25
|
-
if (
|
|
26
|
-
envTargetFinal =
|
|
33
|
+
if (envTargetIn.indexOf('local') > -1) {
|
|
34
|
+
envTargetFinal = envTargetIn.replace('-openid', '');
|
|
27
35
|
} else {
|
|
28
36
|
envTargetFinal = 'local-' + envTargetFinal;
|
|
29
37
|
}
|
|
@@ -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
|
|