@eui/tools 5.3.4 → 5.3.7

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.4
1
+ 5.3.7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 5.3.7 (2022-06-02)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * update v13 resolutions to postcss-preset-env previous version 7.6.0 - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([9c06c4b0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9c06c4b06308a9a59b14a173d1ef416e4dd7420a))
7
+
8
+ * * *
9
+ * * *
10
+ ## 5.3.6 (2022-06-01)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * force @csstools/postcss-trigonometric-functions to 1.0.0 for v13 resolutions - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([ccd6934a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ccd6934a87dd15f6b08d79d5f2d27eed8dd84e47))
16
+
17
+ * * *
18
+ * * *
19
+ ## 5.3.5 (2022-06-01)
20
+
21
+ ##### Bug Fixes
22
+
23
+ * **other:**
24
+ * env config injection when no configEnvTarget pass from pipeline take default - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([fc6b7585](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/fc6b75850d3f96774ecda373954c77700d426f5e))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 5.3.4 (2022-05-31)
2
29
 
3
30
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.4",
3
+ "version": "5.3.7",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -879,7 +879,13 @@ Promise.resolve()
879
879
  .then(() => {
880
880
  const prj = configUtils.projects.getProject('rsp-starter-kit');
881
881
  console.log(prj);
882
- const nodeModulesPath = prj.paths.nodeModulesPath;
883
- const test = path.join(nodeModulesPath, '/@eui/base/assets/openid/openid-login.js');
884
- console.log(test);
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);
885
891
  })
@@ -2,5 +2,6 @@
2
2
  "@types/node": ">=14.14.10",
3
3
  "https-proxy-agent": ">=2.2.3",
4
4
  "mem": ">=4.3.0 <=8.1.1",
5
- "isbinaryfile": "4.0.8"
5
+ "isbinaryfile": "4.0.8",
6
+ "postcss-preset-env": "7.6.0"
6
7
  }
@@ -43,6 +43,11 @@ module.exports.angular = (envTarget, isSnapshot, version, configEnvTargetIn) =>
43
43
  // as this angular build method can be called in stand-alone (outside of CSDR pipeline flow)
44
44
  if (configEnvTargetIn) {
45
45
  configEnvTarget = configEnvTargetIn;
46
+
47
+ } else {
48
+ if (configEnvTarget && typeof (configEnvTarget) === 'boolean') {
49
+ configEnvTarget = null;
50
+ }
46
51
  }
47
52
 
48
53
  // getting param from project config
@@ -114,9 +114,7 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
114
114
  tools.logSuccess();
115
115
  }
116
116
 
117
- if (configEnvTarget) {
118
- return this.injectAppConfig(project, configEnvTarget);
119
- }
117
+ return this.injectAppConfig(project, configEnvTarget);
120
118
  })
121
119
 
122
120
  .catch((e) => {
@@ -131,7 +129,12 @@ module.exports.injectAppConfig = (project, configEnvTarget) => {
131
129
  .then(() => {
132
130
  tools.logInfo(`Executing configuration replacement for : ${configEnvTarget} environment`);
133
131
 
134
- const envFilePath = path.join(project.paths.angularPath, 'src/assets/config', `env-json-config-${configEnvTarget}.json`);
132
+ // set default if not envTarget provided
133
+ let envFilePath = path.join(project.paths.angularPath, 'src/assets/config', `env-json-config.json`);;
134
+
135
+ if (configEnvTarget) {
136
+ envFilePath = path.join(project.paths.angularPath, 'src/assets/config', `env-json-config-${configEnvTarget}.json`);
137
+ }
135
138
 
136
139
  if (!tools.isFileExists(envFilePath)) {
137
140
  tools.logError(`Cannot find environment config to inject : `);