@eui/tools 5.3.56 → 5.3.58
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.58
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 5.3.58 (2022-09-26)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* remove devops-medata repos cloning for backend builds - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([d2677d1e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d2677d1e88148879d57cb18705d9c2d3fcf83081))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.57 (2022-09-22)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* add base dependencies parsing for package - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([c688407e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c688407e17bbbda1a962fb9db7557b0d36383076))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 5.3.56 (2022-09-22)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -274,6 +274,57 @@ const getLocalPackagesCompositeDeps = () => {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
|
|
277
|
+
const getLocalPackageBaseDeps = (pkg) => {
|
|
278
|
+
let pkgJsonFile;
|
|
279
|
+
|
|
280
|
+
if (!skipLocalPackagesDeps) {
|
|
281
|
+
if (pkg.child) {
|
|
282
|
+
pkgJsonFile = path.join(process.cwd(), 'packages', pkg.parentPkg, 'packages', pkg.folder || pkg.name, 'dependencies-base.json');
|
|
283
|
+
} else {
|
|
284
|
+
pkgJsonFile = path.join(process.cwd(), 'packages', pkg.name, 'dependencies-base.json');
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (tools.isFileExists(pkgJsonFile)) {
|
|
288
|
+
tools.logInfo(`found ${pkgJsonFile}, parsing...`);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
return tools.getJsonFileContent(pkgJsonFile) || {};
|
|
292
|
+
|
|
293
|
+
} else {
|
|
294
|
+
tools.logInfo('Skipping gathering local packages base deps');
|
|
295
|
+
|
|
296
|
+
return {};
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
const getLocalPackagesBaseDeps = () => {
|
|
303
|
+
tools.logTitle('Parsing base deps for local packages');
|
|
304
|
+
|
|
305
|
+
let deps = {};
|
|
306
|
+
|
|
307
|
+
// getting locally mounted packages, don't take into account remotely installed packages (elements remote)
|
|
308
|
+
const packages = configUtils.packages.getPackages().filter((p) => {
|
|
309
|
+
return !p.paths.remoteNodeModules;
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
packages.forEach(p => {
|
|
313
|
+
tools.logInfo(`Parsing package : ${p.name}`);
|
|
314
|
+
|
|
315
|
+
// getting the package base if any
|
|
316
|
+
const baseDeps = getLocalPackageBaseDeps(p);
|
|
317
|
+
|
|
318
|
+
deps = { ...deps, ...baseDeps };
|
|
319
|
+
|
|
320
|
+
tools.logInfo('Deps found : ');
|
|
321
|
+
console.log(deps);
|
|
322
|
+
})
|
|
323
|
+
|
|
324
|
+
return deps;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
|
|
277
328
|
const getLocalPackagesCompositeDepsRemapped = () => {
|
|
278
329
|
return Promise.resolve()
|
|
279
330
|
.then(() => {
|
|
@@ -477,6 +528,8 @@ module.exports = {
|
|
|
477
528
|
getLocalPackageCompositeDeps,
|
|
478
529
|
getLocalPackagesCompositeDeps,
|
|
479
530
|
getLocalPackagesCompositeDepsRemapped,
|
|
531
|
+
getLocalPackageBaseDeps,
|
|
532
|
+
getLocalPackagesBaseDeps,
|
|
480
533
|
getLocalProjectDeps,
|
|
481
534
|
getLocalProjectsDeps,
|
|
482
535
|
getLocalProjectFixedDeps,
|
|
@@ -15,7 +15,7 @@ const innerProjects = require('./projects');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
module.exports.installDeps = (prj, pkg, isMaster) => {
|
|
18
|
-
let compositeDeps, localPkgDeps, localPkgCompositeDeps;
|
|
18
|
+
let compositeDeps, localPkgDeps, localPkgCompositeDeps, remappedDeps, localPkgBaseDeps;
|
|
19
19
|
|
|
20
20
|
return Promise.resolve()
|
|
21
21
|
.then(() => {
|
|
@@ -65,7 +65,16 @@ module.exports.installDeps = (prj, pkg, isMaster) => {
|
|
|
65
65
|
return innerCommon.getRemappedDeps(depsMetadata, localPkgCompositeDeps, isMaster);
|
|
66
66
|
})
|
|
67
67
|
|
|
68
|
-
.then((
|
|
68
|
+
.then((remappedDepsIn) => {
|
|
69
|
+
// storing
|
|
70
|
+
remappedDeps = remappedDepsIn;
|
|
71
|
+
|
|
72
|
+
return innerCommon.getLocalPackagesBaseDeps();
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
.then((localPkgBaseDepsIn) => {
|
|
76
|
+
localPkgBaseDeps = localPkgBaseDepsIn;
|
|
77
|
+
|
|
69
78
|
// fetching extra dependencies on project if any
|
|
70
79
|
let prjDeps = {};
|
|
71
80
|
|
|
@@ -77,10 +86,10 @@ module.exports.installDeps = (prj, pkg, isMaster) => {
|
|
|
77
86
|
const fixedDeps = configUtils.global.getConfig().npm.fixedDependencies;
|
|
78
87
|
|
|
79
88
|
if (pkg.build && pkg.build.ownDepsOnly) {
|
|
80
|
-
return innerCommon.installDeps({ ...
|
|
89
|
+
return innerCommon.installDeps({ ...localPkgBaseDeps, ...remappedDeps, ...localPkgDeps, ...fixedDeps});
|
|
81
90
|
|
|
82
91
|
} else {
|
|
83
|
-
return innerCommon.installDeps({ ...
|
|
92
|
+
return innerCommon.installDeps({ ...localPkgBaseDeps, ...remappedDeps, ...localPkgDeps, ...prjDeps, ...compositeDeps, ...fixedDeps });
|
|
84
93
|
}
|
|
85
94
|
})
|
|
86
95
|
|
|
@@ -120,17 +120,24 @@ module.exports.init = (pkg, envTarget, compositeType) => {
|
|
|
120
120
|
});
|
|
121
121
|
})
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
.catch((e) => {
|
|
124
|
+
throw e;
|
|
125
|
+
})
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
module.exports.cloneMetadataRepos = () => {
|
|
130
|
+
utils.tools.logBanner('CLONE METADATA REPOS');
|
|
131
|
+
|
|
132
|
+
return Promise.resolve()
|
|
124
133
|
.then(() => {
|
|
125
134
|
// cloning metadata repo as further installation is based on historical builds from the past
|
|
126
135
|
return metadataUtils.common.cloneMetadataRepo();
|
|
127
136
|
})
|
|
128
|
-
|
|
129
137
|
// CLONE METADATA LOCKS REPO
|
|
130
138
|
.then(() => {
|
|
131
139
|
return metadataUtils.common.cloneMetadataLocksRepo();
|
|
132
140
|
})
|
|
133
|
-
|
|
134
141
|
.catch((e) => {
|
|
135
142
|
throw e;
|
|
136
143
|
})
|
|
@@ -138,9 +145,6 @@ module.exports.init = (pkg, envTarget, compositeType) => {
|
|
|
138
145
|
|
|
139
146
|
|
|
140
147
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
148
|
module.exports.preReleaseChecks = (pkg) => {
|
|
145
149
|
utils.tools.logBanner('PRE-RELEASE checks');
|
|
146
150
|
|
|
@@ -42,16 +42,22 @@ module.exports.run = () => {
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
return Promise.resolve()
|
|
45
|
+
// LOGGING CURRENT eUI TOOLS VERSION
|
|
45
46
|
.then(() => {
|
|
46
47
|
utils.tools.logVersion();
|
|
47
48
|
})
|
|
48
49
|
|
|
49
|
-
|
|
50
50
|
// RELEASE PACKAGE START
|
|
51
51
|
.then(() => {
|
|
52
52
|
return innerCommon.init(pkg, envTarget, compositeType);
|
|
53
53
|
})
|
|
54
54
|
|
|
55
|
+
// FOR UI and REMOTES clone metadata repositories
|
|
56
|
+
.then(() => {
|
|
57
|
+
if (!pkg.backend) {
|
|
58
|
+
return innerCommon.cloneMetadataRepos();
|
|
59
|
+
}
|
|
60
|
+
})
|
|
55
61
|
|
|
56
62
|
// PRE-RELEASE & COMMON CHECKS
|
|
57
63
|
.then(() => {
|