@eui/tools 4.16.1 → 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.
@@ -1 +1 @@
1
- 4.16.1
1
+ 4.16.5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,42 @@
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
+ * * *
10
+ ## 4.16.4 (2021-11-08)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * generated spec files for non-src folder - issue with sub-entries eui-components - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([d72c570a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d72c570a42f268c6b8f8118af9988ffc18ea789a))
16
+
17
+ * * *
18
+ * * *
19
+ ## 4.16.3 (2021-11-03)
20
+
21
+ ##### Bug Fixes
22
+
23
+ * **other:**
24
+ * revert jest upgrade - failing app build - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([51a13fcd](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/51a13fcd2b412fbe8620037fd3586f268f8c6cf2))
25
+
26
+ * * *
27
+ * * *
28
+ ## 4.16.2 (2021-11-03)
29
+
30
+ ##### Chores
31
+
32
+ * **other:**
33
+ * revert git clone logging - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([c3d02144](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c3d02144ee3b21103c3f3084b51dff738f88f207))
34
+ * added log for metadata cloning step ([de96e57f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/de96e57ff8d6062aa07924102fd223b2b0c91610))
35
+ * forced re-build - testing refactoring - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([69f4627b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/69f4627bdf818d6751ce45dc5496ca657c0540e3))
36
+
37
+ * * *
38
+ * * *
39
+
1
40
  ## 4.16.1 (2021-11-03)
2
41
 
3
42
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.16.1",
3
+ "version": "4.16.5",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -28,9 +28,9 @@
28
28
  "figures": "3.2.0",
29
29
  "xml2js": "0.4.23",
30
30
  "https-proxy-agent": "2.2.3",
31
- "jest": "27.3.1",
32
- "supertest": "6.1.6",
33
- "memfs": "3.3.0",
31
+ "jest": "26.6.3",
32
+ "supertest": "4.0.2",
33
+ "memfs": "3.2.4",
34
34
  "json-server": "0.16.3",
35
35
  "faker": "5.5.3",
36
36
  "nodemon": "2.0.12",
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
- 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');
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
+
@@ -975,8 +975,8 @@ module.exports.registerModulePaths = (pkg, isReset) => {
975
975
  jsonFileDev['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/*`];
976
976
  jsonFileBuild['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
977
977
  jsonFileBuild['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/dist/*`];
978
- jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
979
- jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/dist/*`];
978
+ jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}`];
979
+ jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/*`];
980
980
  }
981
981
 
982
982
 
@@ -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 = configUtils.packages.getPackages();
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
- const euiVersionsLocal = configUtils.packages.getLocalPackagesEuiVersion();
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