@eui/tools 5.3.20 → 5.3.23

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.
@@ -1 +1 @@
1
- 5.3.20
1
+ 5.3.23
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 5.3.23 (2022-06-21)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * 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))
7
+
8
+ * * *
9
+ * * *
10
+ ## 5.3.22 (2022-06-21)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * 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))
16
+
17
+ * * *
18
+ * * *
19
+ ## 5.3.21 (2022-06-21)
20
+
21
+ ##### Bug Fixes
22
+
23
+ * **other:**
24
+ * 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))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 5.3.20 (2022-06-21)
2
29
 
3
30
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.20",
3
+ "version": "5.3.23",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -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
  }
@@ -7,12 +7,20 @@ const tools = require('../../tools');
7
7
  const configUtils = require('../../../csdr/config/config-utils');
8
8
 
9
9
 
10
- const getEnvTarget = (envTarget, build) => {
11
- if (!envTarget) {
12
- throw 'ENV_TARGET_NOT_FOUND';
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 = envTarget.toLowerCase();
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 (envTarget.indexOf('local') > -1) {
26
- envTargetFinal = envTarget.replace('-openid', '');
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) => {