@eui/tools 6.2.34 → 6.2.36
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 +19 -0
- package/package.json +1 -1
- package/scripts/csdr/cli/constants.js +1 -1
- package/scripts/csdr/cli/package.js +5 -1
- package/scripts/csdr/config/register.js +5 -1
- package/scripts/csdr/init/remotes.js +2 -2
- package/scripts/utils/build/package/element.js +7 -4
- package/scripts/utils/pre-build/injection/routes-replacement.js +22 -2
- package/scripts/utils/pre-build/translations/elements.js +1 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.2.
|
|
1
|
+
6.2.36
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 6.2.36 (2022-11-18)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* cli - generation of normal package - translation for virtual remote compilation - MWP-9039 [MWP-9039](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9039) ([304e85ee](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/304e85ee271da0c1ef1c5f9b63a600c44097da29))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.2.35 (2022-11-17)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* remote init wrong function call - MWP-9039 [MWP-9039](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9039) ([ce68b425](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ce68b425f9880f74e180a65c541ed18522d6c7a6))
|
|
16
|
+
* element v15+ default configuration production build - added routes overrides per env for v7 opsys t3 test alt env - MWP-9040 [MWP-9040](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9040) ([13770348](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1377034823b8dbad818bdf32edb50c3c20f73a45))
|
|
17
|
+
|
|
18
|
+
* * *
|
|
19
|
+
* * *
|
|
1
20
|
## 6.2.34 (2022-11-16)
|
|
2
21
|
|
|
3
22
|
##### Chores
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ module.exports.generate = () => {
|
|
|
33
33
|
// merging with defaults
|
|
34
34
|
answers = { ...constants.DEFAULT_CONFIG, ...answers};
|
|
35
35
|
|
|
36
|
-
// forcing config default
|
|
36
|
+
// forcing config default for remotes
|
|
37
37
|
if (
|
|
38
38
|
answers.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15 &&
|
|
39
39
|
answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE
|
|
@@ -41,6 +41,10 @@ module.exports.generate = () => {
|
|
|
41
41
|
answers.isVirtualRemote = true;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
if (answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE) {
|
|
45
|
+
answers.isEnvTargetRemote = true;
|
|
46
|
+
}
|
|
47
|
+
|
|
44
48
|
tools.logInfo('Provided options :');
|
|
45
49
|
console.log(answers);
|
|
46
50
|
|
|
@@ -116,7 +116,11 @@ module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName,
|
|
|
116
116
|
"euiVersion": "15.x",
|
|
117
117
|
"build": {
|
|
118
118
|
"compiledTranslations": true,
|
|
119
|
-
"translationScopes": "eui,csdr,cc,mywp"
|
|
119
|
+
"translationScopes": "eui,csdr,cc,mywp",
|
|
120
|
+
"envTargetActive": true,
|
|
121
|
+
"skipLint": true,
|
|
122
|
+
"skipTest": true,
|
|
123
|
+
"sonarScanner": false
|
|
120
124
|
},
|
|
121
125
|
"release": {
|
|
122
126
|
"team": "cc-ui-rm"
|
|
@@ -36,14 +36,14 @@ const cloneRemotesConfig = module.exports.cloneRemotesConfig = () => {
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
module.exports.generateVirtualRemote = (remoteName,
|
|
39
|
+
module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
|
|
40
40
|
tools.logTitle('Generating virtual remote');
|
|
41
41
|
|
|
42
42
|
return Promise.resolve()
|
|
43
43
|
|
|
44
44
|
// clone remotes config if first init
|
|
45
45
|
.then(() => {
|
|
46
|
-
if (
|
|
46
|
+
if (cloneRemote) {
|
|
47
47
|
return cloneRemotesConfig();
|
|
48
48
|
}
|
|
49
49
|
})
|
|
@@ -115,6 +115,11 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
115
115
|
// specific for element
|
|
116
116
|
const versionNumber = remoteEuiVersion.split('.')[0];
|
|
117
117
|
|
|
118
|
+
// checking configuration
|
|
119
|
+
if (!configuration) {
|
|
120
|
+
configuration = 'production';
|
|
121
|
+
}
|
|
122
|
+
|
|
118
123
|
let args;
|
|
119
124
|
|
|
120
125
|
if (versionNumber <= 10) {
|
|
@@ -127,9 +132,7 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
127
132
|
args.push(`--stats-json`);
|
|
128
133
|
}
|
|
129
134
|
|
|
130
|
-
|
|
131
|
-
args.push(`--configuration=${configuration || 'production'}`);
|
|
132
|
-
}
|
|
135
|
+
args.push(`--configuration=${configuration}`);
|
|
133
136
|
|
|
134
137
|
if (baseHref) {
|
|
135
138
|
args.push(`--base-href=${baseHref}`);
|
|
@@ -156,7 +159,7 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
156
159
|
args.push('--source-map');
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
tools.logInfo(`ng build for configuration : ${configuration
|
|
162
|
+
tools.logInfo(`ng build for configuration : ${configuration}`);
|
|
160
163
|
|
|
161
164
|
tools.logInfo(`running Angular BUILD with args: ${args} on`);
|
|
162
165
|
console.log(pkg.paths.root);
|
|
@@ -293,8 +293,28 @@ const replaceRoutes = (project, envTarget, build, routesFileContent, euiVersion)
|
|
|
293
293
|
// merging content of base + env
|
|
294
294
|
tools.logInfo(`Merging ${baseRouteDefsPath} with ${envRouteDefsPath}`);
|
|
295
295
|
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
let mergedRouteDefs = _.merge(_.keyBy(baseRouteDefsJSON, 'path'), _.keyBy(envRouteDefsJSON, 'path'));
|
|
297
|
+
let finalRouteDefs = _.values(mergedRouteDefs);
|
|
298
|
+
|
|
299
|
+
// checking if overrides needs to be applied specific to env + version
|
|
300
|
+
let euiVersionNumber;
|
|
301
|
+
if (euiVersion === 'DEFAULT') {
|
|
302
|
+
euiVersionNumber = '7'
|
|
303
|
+
} else {
|
|
304
|
+
euiVersionNumber = euiVersion.split('.')[0];
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
const envRouteVersionOverridesPath = path.join(projectAssetsPath, 'route-defs.' + envTargetFinal + '-overrides-v' + euiVersionNumber + '.json');
|
|
308
|
+
|
|
309
|
+
if (!tools.isFileExists(envRouteVersionOverridesPath)) {
|
|
310
|
+
tools.logInfo('Routes file overrides not found for ' + envTargetFinal + ' ' + euiVersionNumber + '...skipping');
|
|
311
|
+
|
|
312
|
+
} else {
|
|
313
|
+
const euiRoutesOVerridesJSON = require(envRouteVersionOverridesPath);
|
|
314
|
+
tools.logInfo(`Merging ${envRouteVersionOverridesPath}`);
|
|
315
|
+
mergedRouteDefs = _.merge(_.keyBy(mergedRouteDefs, 'path'), _.keyBy(euiRoutesOVerridesJSON, 'path'));
|
|
316
|
+
finalRouteDefs = _.values(mergedRouteDefs);
|
|
317
|
+
}
|
|
298
318
|
|
|
299
319
|
// processing routes
|
|
300
320
|
let placeHolderContent = '';
|
|
@@ -22,7 +22,7 @@ module.exports.generate = (inputScopes = '', inputPkg) => {
|
|
|
22
22
|
pkg = configUtils.packages.getPackage();
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const rootFolder = pkg.paths.
|
|
25
|
+
const rootFolder = pkg.paths.root;
|
|
26
26
|
const rootSrcFolder = path.join(rootFolder,'src');
|
|
27
27
|
const destFolder = path.join(rootSrcFolder, 'assets/i18n-compiled');
|
|
28
28
|
const globalTranslationsFolder = path.join(rootSrcFolder, 'assets/i18n-global');
|