@eui/tools 5.3.55 → 5.3.57
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.57
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 5.3.57 (2022-09-22)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* 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))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.56 (2022-09-22)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* mem-leaks improvements MWP-8671 [MWP-8671](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8671) ([12e4df2c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/12e4df2cc9cdfaffc112744e36fcedb5db24ba4d))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 5.3.55 (2022-09-22)
|
|
2
20
|
|
|
3
21
|
##### Bug Fixes
|
package/package.json
CHANGED
package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts
CHANGED
|
@@ -47,8 +47,6 @@ enum ElementStatus {
|
|
|
47
47
|
`],
|
|
48
48
|
})
|
|
49
49
|
export class ModuleComponent implements OnInit, OnDestroy {
|
|
50
|
-
remoteId: string;
|
|
51
|
-
|
|
52
50
|
ElementStatus = ElementStatus;
|
|
53
51
|
moduleStatus: ElementStatus;
|
|
54
52
|
|
|
@@ -59,8 +57,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
ngOnInit() {
|
|
62
|
-
|
|
63
|
-
this.elementLifeCycleService.setup(
|
|
60
|
+
const elementData = this.elementLifeCycleService.getElementData(this.elRef);
|
|
61
|
+
this.elementLifeCycleService.setup(elementData);
|
|
64
62
|
this.loadData();
|
|
65
63
|
}
|
|
66
64
|
|
|
@@ -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
|
|