@eui/tools 5.3.3 → 5.3.6
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.6
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 5.3.6 (2022-06-01)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* 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))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.5 (2022-06-01)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* 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))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.3.4 (2022-05-31)
|
|
20
|
+
|
|
21
|
+
##### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* adapted openid injection to standalone installation path - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([8ba4de88](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8ba4de880bf8d8881c3d21db0d409218b4be85f5))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 5.3.3 (2022-05-31)
|
|
2
29
|
|
|
3
30
|
##### Bug Fixes
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -879,4 +879,13 @@ Promise.resolve()
|
|
|
879
879
|
.then(() => {
|
|
880
880
|
const prj = configUtils.projects.getProject('rsp-starter-kit');
|
|
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);
|
|
882
891
|
})
|
|
@@ -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
|
|
@@ -89,32 +89,32 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
|
89
89
|
if ((project.build && project.build.openid) || openid) {
|
|
90
90
|
tools.logInfo('Executing scripts files replacement for openId Connect');
|
|
91
91
|
|
|
92
|
+
const nodeModulesPath = project.paths.nodeModulesPath;
|
|
92
93
|
let rootTargetFolder = 'src';
|
|
93
|
-
|
|
94
|
+
|
|
95
|
+
tools.logInfo(`Copying ${nodeModulesPath}/oidc-client/dist/oidc-client.min.js to ${rootTargetFolder}/assets/oidc-client.min.js`);
|
|
94
96
|
tools.copy(
|
|
95
|
-
path.join(
|
|
97
|
+
path.join(nodeModulesPath, '/oidc-client/dist/oidc-client.min.js'),
|
|
96
98
|
path.join(project.paths.angularPath, `${rootTargetFolder}/assets/oidc-client.min.js`)
|
|
97
99
|
);
|
|
98
100
|
tools.logSuccess();
|
|
99
101
|
|
|
100
|
-
tools.logInfo(`Copying
|
|
102
|
+
tools.logInfo(`Copying ${nodeModulesPath}/jsrsasign/lib/jsrsasign-all-min.js to ${rootTargetFolder}/assets/jsrsasign-all-min.js`);
|
|
101
103
|
tools.copy(
|
|
102
|
-
path.join(
|
|
104
|
+
path.join(nodeModulesPath, '/jsrsasign/lib/jsrsasign-all-min.js'),
|
|
103
105
|
path.join(project.paths.angularPath, `${rootTargetFolder}/assets/jsrsasign-all-min.js`)
|
|
104
106
|
);
|
|
105
107
|
tools.logSuccess();
|
|
106
108
|
|
|
107
|
-
tools.logInfo(`Copying
|
|
109
|
+
tools.logInfo(`Copying ${nodeModulesPath}/@eui/base/assets/openid/openid-login.js to ${rootTargetFolder}/assets/openid-login.js`);
|
|
108
110
|
tools.copy(
|
|
109
|
-
path.join(
|
|
111
|
+
path.join(nodeModulesPath, '/@eui/base/assets/openid/openid-login.js'),
|
|
110
112
|
path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login.js`)
|
|
111
113
|
);
|
|
112
114
|
tools.logSuccess();
|
|
113
115
|
}
|
|
114
116
|
|
|
115
|
-
|
|
116
|
-
return this.injectAppConfig(project, configEnvTarget);
|
|
117
|
-
}
|
|
117
|
+
return this.injectAppConfig(project, configEnvTarget);
|
|
118
118
|
})
|
|
119
119
|
|
|
120
120
|
.catch((e) => {
|
|
@@ -129,7 +129,12 @@ module.exports.injectAppConfig = (project, configEnvTarget) => {
|
|
|
129
129
|
.then(() => {
|
|
130
130
|
tools.logInfo(`Executing configuration replacement for : ${configEnvTarget} environment`);
|
|
131
131
|
|
|
132
|
-
|
|
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
|
+
}
|
|
133
138
|
|
|
134
139
|
if (!tools.isFileExists(envFilePath)) {
|
|
135
140
|
tools.logError(`Cannot find environment config to inject : `);
|