@eui/tools 6.12.45 → 6.12.47
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/cli/package-build-frontend.js +5 -3
- package/scripts/csdr/config/global.js +15 -0
- package/scripts/csdr/config/remotes.js +5 -3
- package/scripts/csdr/init/remotes/15.x/full/common/config/global.ts +66 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.12.
|
|
1
|
+
6.12.47
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.12.47 (2023-08-29)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* add mwp default locales to v15 / v10 remote skeletons EUI-7849 [EUI-7849](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7849) ([c4912720](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c49127202e46a6dc2b37c397cb4e35e6997b320c))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.12.46 (2023-08-17)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* csdr-remotes-config defs from global config for MFE generic portal seperated config - EUI-7680 [EUI-7680](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7680) ([7b186e72](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/7b186e729197b618721a8991532f261b239b8838))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.12.45 (2023-08-17)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -55,7 +55,9 @@ const generateRemote = (args = constants.DEFAULT_CONFIG) => {
|
|
|
55
55
|
tools.logInfo('In target path');
|
|
56
56
|
console.log(targetPath);
|
|
57
57
|
|
|
58
|
-
const
|
|
58
|
+
const configOptions = configUtils.global.getConfigOptions();
|
|
59
|
+
|
|
60
|
+
const remoteConfigTargetPath = path.join(configOptions.CSDR_REMOTES_CONFIG_PATH , 'assets', args.fullName);
|
|
59
61
|
|
|
60
62
|
return Promise.resolve()
|
|
61
63
|
// INIT and cleanup
|
|
@@ -88,7 +90,7 @@ const generateRemote = (args = constants.DEFAULT_CONFIG) => {
|
|
|
88
90
|
|
|
89
91
|
// CLEANING REMOTES CONFIG ENTRY
|
|
90
92
|
.then(() => {
|
|
91
|
-
tools.logInfo('Cleaning
|
|
93
|
+
tools.logInfo('Cleaning remotes-config target entry');
|
|
92
94
|
return tools.rimraf(remoteConfigTargetPath + '/**/*');
|
|
93
95
|
})
|
|
94
96
|
|
|
@@ -99,7 +101,7 @@ const generateRemote = (args = constants.DEFAULT_CONFIG) => {
|
|
|
99
101
|
remoteConfigTargetPath
|
|
100
102
|
);
|
|
101
103
|
|
|
102
|
-
tools.logInfo('Replace sources content in
|
|
104
|
+
tools.logInfo('Replace sources content in remotes-config target entry');
|
|
103
105
|
replaceContent(remoteConfigTargetPath, args.pkgName, args.pkgScope, args.fullName);
|
|
104
106
|
})
|
|
105
107
|
|
|
@@ -229,6 +229,8 @@ module.exports.getConfigOptions = () => {
|
|
|
229
229
|
DEVOPS_METADATA_PATH: null,
|
|
230
230
|
DEVOPS_METADATA_LOCKS_PATH: null,
|
|
231
231
|
DEVOPS_CONFIG_JSON: '.devops-config.json',
|
|
232
|
+
CSDR_REMOTES_CONFIG_REPOSITORY: null,
|
|
233
|
+
CSDR_REMOTES_CONFIG_PATH: null,
|
|
232
234
|
ISSUES_MANAGER_HOST: null,
|
|
233
235
|
NPM_REGISTRY_DEFAULT: null,
|
|
234
236
|
NPM_REGISTRY_DEFAULT_2: null,
|
|
@@ -268,6 +270,19 @@ module.exports.getConfigOptions = () => {
|
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
272
|
|
|
273
|
+
// csdr remotes config options
|
|
274
|
+
const csdrRemotesConfig = config && config.csdrRemotesConfig;
|
|
275
|
+
|
|
276
|
+
if (csdrRemotesConfig) {
|
|
277
|
+
if (csdrRemotesConfig.repository) {
|
|
278
|
+
configOptions.CSDR_REMOTES_CONFIG_REPOSITORY = csdrRemotesConfig.repository;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
if (csdrRemotesConfig.folder) {
|
|
282
|
+
configOptions.CSDR_REMOTES_CONFIG_PATH = path.join(process.cwd(), csdrRemotesConfig.folder);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
271
286
|
// getting issues manager options
|
|
272
287
|
const issuesManager = config && config.issuesManager;
|
|
273
288
|
|
|
@@ -5,13 +5,13 @@ const path = require('path');
|
|
|
5
5
|
|
|
6
6
|
// LOCAL
|
|
7
7
|
const tools = require('../../utils/tools');
|
|
8
|
+
const configUtils = require('../config/config-utils');
|
|
8
9
|
|
|
9
10
|
// INNER
|
|
10
11
|
const innerGlobal = require('./global');
|
|
11
12
|
const innerPackages = require('./packages');
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
|
|
15
15
|
module.exports.getRemote = (remoteName) => {
|
|
16
16
|
// if not provided as param, we fetch them from the command line (local operations)
|
|
17
17
|
if (!remoteName) {
|
|
@@ -21,10 +21,12 @@ module.exports.getRemote = (remoteName) => {
|
|
|
21
21
|
const remotesConfig = require(path.join(process.cwd(), '.csdr', '.euirc-csdr-remotes.json'));
|
|
22
22
|
const remoteConfig = remotesConfig[remoteName];
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const configOptions = configUtils.global.getConfigOptions();
|
|
25
|
+
|
|
26
|
+
const remotePath = path.join(configOptions.CSDR_REMOTES_CONFIG_PATH , 'assets', remoteName);
|
|
25
27
|
|
|
26
28
|
if (!tools.isDirExists(remotePath)) {
|
|
27
|
-
throw new Error(`Remote ${remoteName} cannot be found in the remotes global config - check
|
|
29
|
+
throw new Error(`Remote ${remoteName} cannot be found in the remotes global config - check ${configOptions.CSDR_REMOTES_CONFIG_PATH} for available remotes`);
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
const remoteRootPath = path.join(process.cwd(), 'remotes', remoteName);
|
|
@@ -1,8 +1,51 @@
|
|
|
1
1
|
import { registerLocaleData } from '@angular/common';
|
|
2
2
|
|
|
3
|
+
// import and register locale manually
|
|
3
4
|
import localeEn from '@angular/common/locales/en';
|
|
5
|
+
import localeEN_150 from '@angular/common/locales/en-150';
|
|
6
|
+
import localeEN_AT from '@angular/common/locales/en-AT';
|
|
7
|
+
import localeEN_BE from '@angular/common/locales/en-BE';
|
|
8
|
+
import localeEN_CH from '@angular/common/locales/en-CH';
|
|
9
|
+
import localeEN_CY from '@angular/common/locales/en-CY';
|
|
10
|
+
import localeEN_DE from '@angular/common/locales/en-DE';
|
|
11
|
+
import localeEN_DK from '@angular/common/locales/en-DK';
|
|
12
|
+
import localeEN_FI from '@angular/common/locales/en-FI';
|
|
13
|
+
import localeEN_GG from '@angular/common/locales/en-GG';
|
|
14
|
+
import localeEN_GI from '@angular/common/locales/en-GI';
|
|
15
|
+
import localeEN_IE from '@angular/common/locales/en-IE';
|
|
16
|
+
import localeEN_IM from '@angular/common/locales/en-IM';
|
|
17
|
+
import localeEN_JE from '@angular/common/locales/en-JE';
|
|
18
|
+
import localeEN_MT from '@angular/common/locales/en-MT';
|
|
19
|
+
import localeEN_NL from '@angular/common/locales/en-NL';
|
|
20
|
+
import localeEN_SE from '@angular/common/locales/en-SE';
|
|
21
|
+
import localeEN_SI from '@angular/common/locales/en-SI';
|
|
4
22
|
import localeEnExtra from '@angular/common/locales/extra/en';
|
|
23
|
+
import localeEnExtra_150 from '@angular/common/locales/extra/en-150';
|
|
24
|
+
import localeEnExtra_AT from '@angular/common/locales/extra/en-AT';
|
|
25
|
+
import localeEnExtra_BE from '@angular/common/locales/extra/en-BE';
|
|
26
|
+
import localeEnExtra_CH from '@angular/common/locales/extra/en-CH';
|
|
27
|
+
import localeEnExtra_CY from '@angular/common/locales/extra/en-CY';
|
|
28
|
+
import localeEnExtra_DE from '@angular/common/locales/extra/en-DE';
|
|
29
|
+
import localeEnExtra_DK from '@angular/common/locales/extra/en-DK';
|
|
30
|
+
import localeEnExtra_FI from '@angular/common/locales/extra/en-FI';
|
|
31
|
+
import localeEnExtra_GG from '@angular/common/locales/extra/en-GG';
|
|
32
|
+
import localeEnExtra_GI from '@angular/common/locales/extra/en-GI';
|
|
33
|
+
import localeEnExtra_IE from '@angular/common/locales/extra/en-IE';
|
|
34
|
+
import localeEnExtra_IM from '@angular/common/locales/extra/en-IM';
|
|
35
|
+
import localeEnExtra_JE from '@angular/common/locales/extra/en-JE';
|
|
36
|
+
import localeEnExtra_MT from '@angular/common/locales/extra/en-MT';
|
|
37
|
+
import localeEnExtra_NL from '@angular/common/locales/extra/en-NL';
|
|
38
|
+
import localeEnExtra_SE from '@angular/common/locales/extra/en-SE';
|
|
39
|
+
import localeEnExtra_SI from '@angular/common/locales/extra/en-SI';
|
|
5
40
|
import localeFr from '@angular/common/locales/fr';
|
|
41
|
+
import localeFR_MC from '@angular/common/locales/fr-MC';
|
|
42
|
+
import localeFR_LU from '@angular/common/locales/fr-LU';
|
|
43
|
+
import localeFR_CH from '@angular/common/locales/fr-CH';
|
|
44
|
+
import localeFR_BE from '@angular/common/locales/fr-BE';
|
|
45
|
+
import localeFRExtra_BE from '@angular/common/locales/extra/fr-BE';
|
|
46
|
+
import localeFRExtra_CH from '@angular/common/locales/extra/fr-CH';
|
|
47
|
+
import localeFRExtra_LU from '@angular/common/locales/extra/fr-LU';
|
|
48
|
+
import localeFRExtra_MC from '@angular/common/locales/extra/fr-MC';
|
|
6
49
|
import localeFrExtra from '@angular/common/locales/extra/fr';
|
|
7
50
|
|
|
8
51
|
import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
|
|
@@ -10,8 +53,29 @@ import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
|
|
|
10
53
|
/**
|
|
11
54
|
* import and register locales (currently MWP uses only French and English)
|
|
12
55
|
*/
|
|
13
|
-
registerLocaleData(localeEn,
|
|
14
|
-
registerLocaleData(localeFr,
|
|
56
|
+
registerLocaleData(localeEn, localeEnExtra);
|
|
57
|
+
registerLocaleData(localeFr, localeFrExtra);
|
|
58
|
+
registerLocaleData(localeEN_150, localeEnExtra_150);
|
|
59
|
+
registerLocaleData(localeEN_AT, localeEnExtra_AT);
|
|
60
|
+
registerLocaleData(localeEN_BE, localeEnExtra_BE);
|
|
61
|
+
registerLocaleData(localeEN_CH, localeEnExtra_CH);
|
|
62
|
+
registerLocaleData(localeEN_CY, localeEnExtra_CY);
|
|
63
|
+
registerLocaleData(localeEN_DE, localeEnExtra_DE);
|
|
64
|
+
registerLocaleData(localeEN_DK, localeEnExtra_DK);
|
|
65
|
+
registerLocaleData(localeEN_FI, localeEnExtra_FI);
|
|
66
|
+
registerLocaleData(localeEN_GG, localeEnExtra_GG);
|
|
67
|
+
registerLocaleData(localeEN_GI, localeEnExtra_GI);
|
|
68
|
+
registerLocaleData(localeEN_IE, localeEnExtra_IE);
|
|
69
|
+
registerLocaleData(localeEN_IM, localeEnExtra_IM);
|
|
70
|
+
registerLocaleData(localeEN_JE, localeEnExtra_JE);
|
|
71
|
+
registerLocaleData(localeEN_MT, localeEnExtra_MT);
|
|
72
|
+
registerLocaleData(localeEN_NL, localeEnExtra_NL);
|
|
73
|
+
registerLocaleData(localeEN_SE, localeEnExtra_SE);
|
|
74
|
+
registerLocaleData(localeEN_SI, localeEnExtra_SI);
|
|
75
|
+
registerLocaleData(localeFR_MC, localeFRExtra_MC);
|
|
76
|
+
registerLocaleData(localeFR_LU, localeFRExtra_LU);
|
|
77
|
+
registerLocaleData(localeFR_CH, localeFRExtra_CH);
|
|
78
|
+
registerLocaleData(localeFR_BE, localeFRExtra_BE);
|
|
15
79
|
|
|
16
80
|
/**
|
|
17
81
|
* Internationalization Configuration
|