@eui/tools 4.16.4 → 4.16.5
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 +9 -0
- package/package.json +1 -1
- package/sandbox.js +15 -15
- package/scripts/csdr/config/packages.js +3 -4
- package/scripts/csdr/config/projects.js +24 -6
- package/scripts/csdr/init/init-utils.js +7 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.16.
|
|
1
|
+
4.16.5
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 4.16.5 (2021-11-08)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* enable eUI version scanning of local projects and packages - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([83112806](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/83112806b51969ed6672dbec1e2423b86983f45d))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 4.16.4 (2021-11-08)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -589,22 +589,22 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
|
|
|
589
589
|
|
|
590
590
|
// })
|
|
591
591
|
|
|
592
|
-
// return Promise.resolve()
|
|
593
|
-
// .then(() => {
|
|
594
|
-
// console.log(tools.isDirEmpty(process.cwd()));
|
|
595
|
-
// })
|
|
596
|
-
|
|
597
592
|
return Promise.resolve()
|
|
598
593
|
.then(() => {
|
|
599
|
-
|
|
600
|
-
tools.logTitle('TITLE');
|
|
601
|
-
tools.logInfo('test log info');
|
|
602
|
-
tools.logInfo('test log info');
|
|
603
|
-
tools.logInfo('test log info');
|
|
604
|
-
tools.logSuccess('test log success');
|
|
605
|
-
tools.logError('test log error');
|
|
606
|
-
tools.logWarning('test log warning');
|
|
607
|
-
tools.logAccent('test log accent');
|
|
608
|
-
tools.logBanner('this is the content of the banner');
|
|
594
|
+
initUtils.processLocalEuiVersions();
|
|
609
595
|
})
|
|
610
596
|
|
|
597
|
+
// return Promise.resolve()
|
|
598
|
+
// .then(() => {
|
|
599
|
+
// tools.logBigTitle('BIG TITLE');
|
|
600
|
+
// tools.logTitle('TITLE');
|
|
601
|
+
// tools.logInfo('test log info');
|
|
602
|
+
// tools.logInfo('test log info');
|
|
603
|
+
// tools.logInfo('test log info');
|
|
604
|
+
// tools.logSuccess('test log success');
|
|
605
|
+
// tools.logError('test log error');
|
|
606
|
+
// tools.logWarning('test log warning');
|
|
607
|
+
// tools.logAccent('test log accent');
|
|
608
|
+
// tools.logBanner('this is the content of the banner');
|
|
609
|
+
// })
|
|
610
|
+
|
|
@@ -6,7 +6,6 @@ const fs = require('fs');
|
|
|
6
6
|
|
|
7
7
|
// LOCAL
|
|
8
8
|
const tools = require('../../utils/tools');
|
|
9
|
-
const configUtils = require('./config-utils');
|
|
10
9
|
|
|
11
10
|
// INNER MODULES
|
|
12
11
|
const innerGlobal = require('./global');
|
|
@@ -32,7 +31,7 @@ module.exports.getCsdrPackagesFull = (flattenChildren = true) => {
|
|
|
32
31
|
return outputPackages;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
module.exports.getPackages = () => {
|
|
34
|
+
const getPackages = module.exports.getPackages = () => {
|
|
36
35
|
const packages = innerGlobal.getConfig().packages;
|
|
37
36
|
const packagesKeys = Object.keys(packages);
|
|
38
37
|
|
|
@@ -237,9 +236,9 @@ module.exports.getDepGraph = () => {
|
|
|
237
236
|
|
|
238
237
|
|
|
239
238
|
module.exports.getLocalPackagesEuiVersion = () => {
|
|
240
|
-
tools.logInfo('getting local installed eUI version...');
|
|
239
|
+
tools.logInfo('getting local packages installed eUI version...');
|
|
241
240
|
|
|
242
|
-
const pkgs =
|
|
241
|
+
const pkgs = getPackages();
|
|
243
242
|
let versionsFound = [];
|
|
244
243
|
|
|
245
244
|
pkgs.forEach((p) => {
|
|
@@ -5,7 +5,6 @@ const path = require('path');
|
|
|
5
5
|
|
|
6
6
|
// LOCAL
|
|
7
7
|
const tools = require('../../utils/tools');
|
|
8
|
-
const versionUtils = require('../version/version-utils');
|
|
9
8
|
|
|
10
9
|
// INNER MODULES
|
|
11
10
|
const innerGlobal = require('./global');
|
|
@@ -36,12 +35,8 @@ const getProjectOptions = (prj) => {
|
|
|
36
35
|
return { options: options };
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
const getProjectPaths = (prj) => {
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
module.exports.getProjects = () => {
|
|
39
|
+
const getProjects = module.exports.getProjects = () => {
|
|
45
40
|
const projects = innerGlobal.getConfig().projects;
|
|
46
41
|
return Object.keys(projects).map(p => this.getProject(p));
|
|
47
42
|
}
|
|
@@ -214,3 +209,26 @@ module.exports.getBaseHref = (prj, version, providedBaseHref) => {
|
|
|
214
209
|
return null;
|
|
215
210
|
}
|
|
216
211
|
|
|
212
|
+
|
|
213
|
+
module.exports.getLocalProjectsEuiVersion = () => {
|
|
214
|
+
tools.logInfo('getting local projects installed eUI version...');
|
|
215
|
+
|
|
216
|
+
const prjs = getProjects();
|
|
217
|
+
let versionsFound = [];
|
|
218
|
+
|
|
219
|
+
prjs.forEach((p) => {
|
|
220
|
+
let version = 'DEFAULT';
|
|
221
|
+
|
|
222
|
+
if (p.build) {
|
|
223
|
+
if (p.build.euiVersion) {
|
|
224
|
+
version = p.build.euiVersion;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
tools.logInfo(`checking ${p.name} - version found : ${version}`);
|
|
228
|
+
versionsFound.push(version);
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
versionsFound = tools.removeArrayDuplicates(versionsFound);
|
|
232
|
+
|
|
233
|
+
return versionsFound;
|
|
234
|
+
}
|
|
@@ -178,9 +178,15 @@ module.exports.processLocalEuiVersions = () => {
|
|
|
178
178
|
|
|
179
179
|
return Promise.resolve()
|
|
180
180
|
.then(() => {
|
|
181
|
-
|
|
181
|
+
let euiVersionsLocal = [
|
|
182
|
+
...configUtils.packages.getLocalPackagesEuiVersion(),
|
|
183
|
+
...configUtils.projects.getLocalProjectsEuiVersion(),
|
|
184
|
+
];
|
|
185
|
+
euiVersionsLocal = tools.removeArrayDuplicates(euiVersionsLocal);
|
|
182
186
|
|
|
183
187
|
if (euiVersionsLocal.length > 1) {
|
|
188
|
+
tools.logError('Multiple versions of eUI found in local CSDR...aborting');
|
|
189
|
+
console.log(euiVersionsLocal);
|
|
184
190
|
throw new Error('MULTIPLE_LOCAL_EUI_VERSIONS_FOUND');
|
|
185
191
|
}
|
|
186
192
|
|