@eui/tools 4.19.9 → 4.19.10
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 +21 -8
- package/scripts/utils/pre-build/translations/elements.js +21 -5
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.19.
|
|
1
|
+
4.19.10
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 4.19.10 (2022-02-18)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* missing eui i18n path from elements generated translations - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([3f359cab](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3f359cabcc60b938538fd3ace45714439fb5d8c6))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 4.19.9 (2022-02-17)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -14,7 +14,7 @@ const injectionUtils = require('./scripts/utils/pre-build/injection/injection-ut
|
|
|
14
14
|
const compositeUtils = require('./scripts/csdr/install/composite-utils');
|
|
15
15
|
const installUtils = require('./scripts/csdr/install/install-utils');
|
|
16
16
|
const notificationUtils = require('./scripts/utils/notification/notification-utils');
|
|
17
|
-
|
|
17
|
+
const translationUtils = require('./scripts/utils/pre-build/translations/translation-utils');
|
|
18
18
|
|
|
19
19
|
// console.log(configUtils.packages.getPackages());
|
|
20
20
|
// console.log(configUtils.packages.getPackage('eui-tools'));
|
|
@@ -640,14 +640,27 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
|
|
|
640
640
|
// })
|
|
641
641
|
|
|
642
642
|
|
|
643
|
-
|
|
644
|
-
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
// const prjName = 'my-workplace';
|
|
647
|
+
// const prj = configUtils.projects.getCsdrProject(prjName);
|
|
648
|
+
|
|
649
|
+
// return Promise.resolve()
|
|
650
|
+
// // .then(() => {
|
|
651
|
+
// // return injectionUtils.externals.injectExternalAppSources(prj);
|
|
652
|
+
// // })
|
|
653
|
+
// .then(() => {
|
|
654
|
+
// // return injectionUtils.externals.remapRoutesByEnvConfig(prj, 'DEV', true);
|
|
655
|
+
// return injectionUtils.routesReplacement.buildRoutes(prj, 'DEV', true);
|
|
656
|
+
// })
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
645
661
|
|
|
646
662
|
return Promise.resolve()
|
|
647
|
-
// .then(() => {
|
|
648
|
-
// return injectionUtils.externals.injectExternalAppSources(prj);
|
|
649
|
-
// })
|
|
650
663
|
.then(() => {
|
|
651
|
-
|
|
652
|
-
return
|
|
664
|
+
const pkg = configUtils.packages.getPackage('opsys-result-quality-management-eui10-remote-el-ui', true);
|
|
665
|
+
return translationUtils.elements.generate('eui,opsys', pkg)
|
|
653
666
|
})
|
|
@@ -51,7 +51,13 @@ module.exports.generate = (inputScopes = '', inputPkg) => {
|
|
|
51
51
|
tools.logInfo(`Adding packages from scope "${scope}"`);
|
|
52
52
|
const scopePath = path.resolve(nmPath, scope);
|
|
53
53
|
if (tools.isDirExists(scopePath)) {
|
|
54
|
-
let files = fs.readdirSync(scopePath).map(pkg =>
|
|
54
|
+
let files = fs.readdirSync(scopePath).map((pkg) => {
|
|
55
|
+
return {
|
|
56
|
+
name: pkg,
|
|
57
|
+
scope: scope,
|
|
58
|
+
folder: path.resolve(nmPath, `${scope}/${pkg}`)
|
|
59
|
+
}
|
|
60
|
+
});
|
|
55
61
|
packages = [...packages, ...files];
|
|
56
62
|
}
|
|
57
63
|
});
|
|
@@ -63,7 +69,7 @@ module.exports.generate = (inputScopes = '', inputPkg) => {
|
|
|
63
69
|
})
|
|
64
70
|
|
|
65
71
|
.then(() => {
|
|
66
|
-
if (!fs.existsSync(destFolder)) {
|
|
72
|
+
if (!fs.existsSync(destFolder) && !dryRun) {
|
|
67
73
|
fs.mkdirSync(destFolder);
|
|
68
74
|
}
|
|
69
75
|
|
|
@@ -76,9 +82,19 @@ module.exports.generate = (inputScopes = '', inputPkg) => {
|
|
|
76
82
|
|
|
77
83
|
// Add module translations
|
|
78
84
|
packages.forEach((pkg) => {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
let baseI18nPath = 'i18n';
|
|
86
|
+
if (pkg.scope === '@eui') {
|
|
87
|
+
baseI18nPath = 'i18n-eui';
|
|
88
|
+
}
|
|
89
|
+
file = path.join(pkg.folder, `assets/${baseI18nPath}/${lang}.json`);
|
|
90
|
+
|
|
91
|
+
tools.logInfo(`Adding translations from ${pkg.folder}`);
|
|
92
|
+
if (tools.isFileExists(file)) {
|
|
93
|
+
tools.logInfo(`${file} found...adding`);
|
|
94
|
+
addTranslation(file, lang)
|
|
95
|
+
} else {
|
|
96
|
+
tools.logInfo(`${file} not found...skipping`);
|
|
97
|
+
}
|
|
82
98
|
});
|
|
83
99
|
|
|
84
100
|
// Write final file
|