@eui/tools 6.12.41 → 6.12.43
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 +18 -0
- package/package.json +1 -1
- package/scripts/csdr/audit/styles.js +4 -0
- package/scripts/csdr/init/remotes/16.x/base/angular.json +1 -1
- package/scripts/csdr/init/remotes/16.x/base/tsconfig.app.json +1 -0
- package/scripts/csdr/init/remotes.js +7 -1
- package/scripts/csdr/metadata/package-envs.js +4 -4
- package/scripts/utils/notification/config.js +2 -0
- package/scripts/utils/pre-build/elements.js +26 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.12.
|
|
1
|
+
6.12.43
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.12.43 (2023-08-17)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapt build script for mfe generic portal - EUI-7860 [EUI-7860](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7860) ([5505afbd](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5505afbdde74f08d2d6ec62e5546585c5cc12fca))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.12.42 (2023-08-16)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* registering local packages sources in remote tsconfig paths - EUI-7860 [EUI-7860](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7860) ([9c02e719](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9c02e719be5bd0e85c19357933c1c0355af38b99))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.12.41 (2023-08-16)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -662,6 +662,10 @@ module.exports.audit = (pkg) => {
|
|
|
662
662
|
|
|
663
663
|
// getting gates
|
|
664
664
|
let gates;
|
|
665
|
+
if (!configOptions.AUDIT_STYLES_GATES) {
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
|
|
665
669
|
const euiVersionGates = configOptions.AUDIT_STYLES_GATES[euiVersion];
|
|
666
670
|
const allNewGates = configOptions.AUDIT_STYLES_GATES['ALL_NEW'];
|
|
667
671
|
|
|
@@ -299,7 +299,13 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
|
|
|
299
299
|
tools.replaceInPath(remoteSrcPath, '@sub.route.url@', '');
|
|
300
300
|
}
|
|
301
301
|
tools.replaceInPath(remoteSrcPath, '@element.name@', remote.skeletonConfig.elementName);
|
|
302
|
-
|
|
302
|
+
let storeName;
|
|
303
|
+
if (remote.skeletonConfig.storeName) {
|
|
304
|
+
storeName = remote.skeletonConfig.storeName;
|
|
305
|
+
} else {
|
|
306
|
+
storeName = remote.skeletonConfig.elementName;
|
|
307
|
+
}
|
|
308
|
+
tools.replaceInPath(remoteSrcPath, '@store.name@', storeName);
|
|
303
309
|
tools.replaceInPath(remoteSrcPath, '@root.common.module@', remote.skeletonConfig.rootCommonModule);
|
|
304
310
|
tools.replaceInPath(remoteSrcPath, '@root.npm.pkg@', remote.skeletonConfig.rootNpmPkg);
|
|
305
311
|
|
|
@@ -18,11 +18,11 @@ module.exports.getMetadata = (pkg) => {
|
|
|
18
18
|
|
|
19
19
|
return Promise.resolve()
|
|
20
20
|
.then(() => {
|
|
21
|
-
if (
|
|
22
|
-
|
|
21
|
+
if (DEVOPS_METADATA_PATH) {
|
|
22
|
+
return tools.getJsonFileContent(path.join(DEVOPS_METADATA_PATH, pkg.devopsEnvsMetadataFile));
|
|
23
|
+
} else {
|
|
24
|
+
return;
|
|
23
25
|
}
|
|
24
|
-
|
|
25
|
-
return tools.getJsonFileContent(path.join(DEVOPS_METADATA_PATH, pkg.devopsEnvsMetadataFile));
|
|
26
26
|
})
|
|
27
27
|
.catch((e) => {
|
|
28
28
|
throw e;
|
|
@@ -26,6 +26,32 @@ module.exports.preBuild = (pkg, build = false) => {
|
|
|
26
26
|
return configUtils.angular.registerAngularProjectDef(pkg, build, true);
|
|
27
27
|
})
|
|
28
28
|
|
|
29
|
+
.then(() => {
|
|
30
|
+
if (build) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
tools.logInfo('Registering element tsconfig local paths...');
|
|
35
|
+
|
|
36
|
+
const tsConfigFile = path.join(pkg.paths.root, 'tsconfig.app.json');
|
|
37
|
+
const tsConfig = require(tsConfigFile);
|
|
38
|
+
|
|
39
|
+
const registerPkg = (localPkg) => {
|
|
40
|
+
tools.logInfo(`Registering local package on element : ${localPkg.name}`);
|
|
41
|
+
const pathBase = './packages';
|
|
42
|
+
|
|
43
|
+
tsConfig['compilerOptions']['paths'][`${localPkg.npmPkgScope}/${localPkg.npmPkgName}`] = [`${pathBase}/${localPkg.folder || localPkg.name}/dist`];
|
|
44
|
+
tsConfig['compilerOptions']['paths'][`${localPkg.npmPkgScope}/${localPkg.npmPkgName}/*`] = [`${pathBase}/${localPkg.folder || localPkg.name}/dist`];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (pkg.registerLocalRootPkg && pkg.skeletonConfig) {
|
|
48
|
+
const localPkg = configUtils.packages.getPackageByNpmPkg(pkg.skeletonConfig.rootNpmPkg);
|
|
49
|
+
registerPkg(localPkg);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
tools.writeJsonFileSync(tsConfigFile, tsConfig);
|
|
53
|
+
})
|
|
54
|
+
|
|
29
55
|
// inject external app sources declaration
|
|
30
56
|
.then(() => {
|
|
31
57
|
if (pkg.externalSources) {
|