@eui/tools 4.19.15 → 4.19.18
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/csdr/metadata/package.js +2 -1
- package/scripts/csdr/release/package/common.js +7 -0
- package/scripts/utils/build/package/element.js +10 -0
- package/scripts/utils/build/package/skeletons/elements/index.html +9 -0
- package/scripts/utils/pre-build/projects.js +9 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.19.
|
|
1
|
+
4.19.18
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 4.19.18 (2022-03-09)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* support/develop snapshot carret resolution - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([340146a1](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/340146a1237e36eeaec01d3ef9c2c8990772d718))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 4.19.17 (2022-03-09)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* generated empty index.html for remote post-build bundle - force remove yarn.lock on package release - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([4f3dd96f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/4f3dd96fa76bd6e31038e189686d97c8d00b6abd))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 4.19.16 (2022-03-09)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* adapted openid vs normal injection env config - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([c2a5d816](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c2a5d81641a566bc3b1036644fac1b5a504d0c1e))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 4.19.15 (2022-03-07)
|
|
2
29
|
|
|
3
30
|
##### Chores
|
package/package.json
CHANGED
|
@@ -465,7 +465,8 @@ module.exports.getPackageVersionsByMajor = (pkg, major) => {
|
|
|
465
465
|
if (pkgVersions) {
|
|
466
466
|
return pkgVersions.filter((v) => {
|
|
467
467
|
return (v.version.split('.')[0] === major && v.version.indexOf('snapshot') === -1) ||
|
|
468
|
-
(v.version.split('.')[0] === major && pkg.build && pkg.build.isNextMajorSnapshotAllowed)
|
|
468
|
+
(v.version.split('.')[0] === major && pkg.build && pkg.build.isNextMajorSnapshotAllowed) ||
|
|
469
|
+
(v.version.split('.')[0] === major && pkg.build && pkg.build.supportSnapshotBranch);
|
|
469
470
|
})
|
|
470
471
|
}
|
|
471
472
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// GLOBAL
|
|
4
|
+
const path = require('path');
|
|
4
5
|
|
|
5
6
|
// UTILS
|
|
6
7
|
const utils = require('../../../utils');
|
|
@@ -81,6 +82,12 @@ module.exports.init = (pkg) => {
|
|
|
81
82
|
return metadataUtils.common.cloneMetadataRepo();
|
|
82
83
|
})
|
|
83
84
|
|
|
85
|
+
// REMOVE YARN.LOCK
|
|
86
|
+
.then(() => {
|
|
87
|
+
utils.tools.logInfo('Removing yarn.lock');
|
|
88
|
+
return utils.tools.remove(path.join(process.cwd(), 'yarn.lock'));
|
|
89
|
+
})
|
|
90
|
+
|
|
84
91
|
.catch((e) => {
|
|
85
92
|
throw e;
|
|
86
93
|
})
|
|
@@ -179,6 +179,16 @@ module.exports.postBuild = (pkg, version) => {
|
|
|
179
179
|
tools.logInfo('Copying package.json to dist');
|
|
180
180
|
return tools.copy(path.join(pkg.paths.pkgRootDirectory, 'package.json'), path.join(pkg.paths.pkgBuild, 'package.json'));
|
|
181
181
|
})
|
|
182
|
+
.then(() => {
|
|
183
|
+
try {
|
|
184
|
+
tools.logInfo('Set empty index.html');
|
|
185
|
+
const emptyIndexHtmlFile = path.join(__dirname, 'skeletons', 'elements', 'index.html');
|
|
186
|
+
const outputIndexHmtlFile = path.join(pkg.paths.pkgBuild, 'bundles', 'index.html');
|
|
187
|
+
return tools.copy(emptyIndexHtmlFile, outputIndexHmtlFile);
|
|
188
|
+
} catch(e) {
|
|
189
|
+
console.log(e);
|
|
190
|
+
}
|
|
191
|
+
})
|
|
182
192
|
.catch((e) => {
|
|
183
193
|
throw e;
|
|
184
194
|
})
|
|
@@ -136,8 +136,15 @@ module.exports.injectAppConfig = (project, configEnvTarget) => {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
let rootTargetFolder = 'src';
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
let replacedFile;
|
|
140
|
+
|
|
141
|
+
if ((project.build && project.build.openid) || openid) {
|
|
142
|
+
replacedFile = `${rootTargetFolder}/assets/openid-login-config.json`;
|
|
143
|
+
} else {
|
|
144
|
+
replacedFile = `${rootTargetFolder}/assets/env-json-config.json`;
|
|
145
|
+
}
|
|
146
|
+
tools.logInfo(`Replacing default ${replacedFile} file by ${envFilePath} content`);
|
|
147
|
+
tools.copy(envFilePath, path.join(project.paths.angularPath, `${replacedFile}`));
|
|
141
148
|
|
|
142
149
|
tools.logSuccess();
|
|
143
150
|
})
|