@eui/tools 5.3.19 → 5.3.22
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.22
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 5.3.22 (2022-06-21)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* 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))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.21 (2022-06-21)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* missing args declaration - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([6aab71fb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/6aab71fbfa0c2f3aaeff5ce055f2612394d1695c))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.3.20 (2022-06-21)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* adapted pre-build to execute local project pre-build script if present - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([31675fd0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/31675fd08502b56e6222d374a2c9d48973305df2))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 5.3.19 (2022-06-21)
|
|
2
29
|
|
|
3
30
|
##### Bug Fixes
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -877,15 +877,6 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
|
877
877
|
|
|
878
878
|
Promise.resolve()
|
|
879
879
|
.then(() => {
|
|
880
|
-
const prj = configUtils.projects.getProject('
|
|
880
|
+
const prj = configUtils.projects.getProject('my-workplace-host-playground');
|
|
881
881
|
console.log(prj);
|
|
882
|
-
|
|
883
|
-
var { branch, dryRun, envTarget, compositeType, configEnvTarget } = tools.getArgs();
|
|
884
|
-
console.log(configEnvTarget);
|
|
885
|
-
|
|
886
|
-
if (configEnvTarget && typeof (configEnvTarget) === 'boolean') {
|
|
887
|
-
configEnvTarget = null;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
console.log(configEnvTarget);
|
|
891
882
|
})
|
|
@@ -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
|
}
|
|
@@ -10,7 +10,7 @@ const translationUtils = require('./translations/translation-utils');
|
|
|
10
10
|
|
|
11
11
|
const configUtils = require('../../csdr/config/config-utils');
|
|
12
12
|
|
|
13
|
-
let { openid } = tools.getArgs();
|
|
13
|
+
let { openid, dryRun } = tools.getArgs();
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
@@ -128,6 +128,19 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
|
128
128
|
return this.injectAppConfig(project, configEnvTarget);
|
|
129
129
|
})
|
|
130
130
|
|
|
131
|
+
.then(() => {
|
|
132
|
+
const prebuildScript = path.join(project.paths.rootPath, 'pre-build.js');
|
|
133
|
+
|
|
134
|
+
if (!dryRun && tools.isFileExists(prebuildScript)) {
|
|
135
|
+
tools.logInfo('Executing pre-build script');
|
|
136
|
+
|
|
137
|
+
return tools.runScript(`node ${prebuildScript}`);
|
|
138
|
+
|
|
139
|
+
} else {
|
|
140
|
+
tools.logInfo('DRY-RUN or pre-build script not found in project folder --- skipping');
|
|
141
|
+
}
|
|
142
|
+
})
|
|
143
|
+
|
|
131
144
|
.catch((e) => {
|
|
132
145
|
throw e;
|
|
133
146
|
})
|