@eui/tools 6.20.20 → 6.20.22
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/config/projects.js +8 -1
- package/scripts/csdr/init/remotes/17.x/full/options/extra-locales/config/global.ts +33 -1
- package/scripts/csdr/init/remotes/18.x/full/options/extra-locales/config/global.ts +33 -1
- package/scripts/csdr/install/build-app.js +3 -1
- package/scripts/csdr/install/projects.js +5 -0
- package/scripts/csdr/release/app/release-app-standalone.js +3 -2
- package/scripts/utils/pre-build/routes-replacement/routes-replacement.js +3 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.20.
|
|
1
|
+
6.20.22
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.20.22 (2024-09-03)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* align moment short and long date formats - MWP-11162 [MWP-11162](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11162) ([d7a8211a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d7a8211a4fceae5172ea93879eb729e657d19a59))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.20.21 (2024-08-12)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* adapted for standalone host build - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([84678f01](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/84678f01882846865c233fc6ff3366cca8793efc))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.20.20 (2024-08-12)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ const getProjectPaths = (prj) => {
|
|
|
46
46
|
|
|
47
47
|
let installPath = process.cwd();
|
|
48
48
|
let nodeModulesPath = path.join(process.cwd(), 'node_modules');
|
|
49
|
-
if (prj.standalone) {
|
|
49
|
+
if (prj.standalone && !prj.host) {
|
|
50
50
|
installPath = path.join(rootPath);
|
|
51
51
|
nodeModulesPath = path.join(rootPath, 'node_modules');
|
|
52
52
|
}
|
|
@@ -96,6 +96,8 @@ module.exports.getProject = (projectName) => {
|
|
|
96
96
|
|
|
97
97
|
if (prj) {
|
|
98
98
|
prj.rootName = projectName;
|
|
99
|
+
prj.csdr = true;
|
|
100
|
+
prj.standalone = false;
|
|
99
101
|
|
|
100
102
|
let prjVirtualSkeleton = {};
|
|
101
103
|
|
|
@@ -103,6 +105,9 @@ module.exports.getProject = (projectName) => {
|
|
|
103
105
|
const { virtualProjectConfig } = require('./config-skeletons');
|
|
104
106
|
prjVirtualSkeleton = virtualProjectConfig;
|
|
105
107
|
|
|
108
|
+
prj.csdr = false;
|
|
109
|
+
prj.standalone = true;
|
|
110
|
+
|
|
106
111
|
prjVirtualSkeleton.build.translationScopes = prj.scopes;
|
|
107
112
|
prjVirtualSkeleton.mock.npmPkg = prj.hostPackage;
|
|
108
113
|
prjVirtualSkeleton.config.npmPkg = prj.hostPackage;
|
|
@@ -113,6 +118,8 @@ module.exports.getProject = (projectName) => {
|
|
|
113
118
|
|
|
114
119
|
if (prj.playground) {
|
|
115
120
|
prjVirtualSkeleton.externalRootFiles[1].folder = 'app-root-playground';
|
|
121
|
+
} else {
|
|
122
|
+
prjVirtualSkeleton.externalRoutesSources.routesFilenameTemplate = 'route-defs.@env.target@.json';
|
|
116
123
|
}
|
|
117
124
|
}
|
|
118
125
|
|
|
@@ -79,19 +79,43 @@ registerLocaleData(localeFR_LU, localeFRExtra_LU);
|
|
|
79
79
|
registerLocaleData(localeFR_CH, localeFRExtra_CH);
|
|
80
80
|
registerLocaleData(localeFR_BE, localeFRExtra_BE);
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Within the MyWP environment, the 'L' and 'l' date formats have been modified to align with each other
|
|
84
|
+
* and to adhere to the CLDR-based date formats utilized by Angular.
|
|
85
|
+
* For instance, the 'shortDate' format now corresponds to 'DD/MM/YY' instead of the default
|
|
86
|
+
* Moment.js format of 'DD/MM/YYYY'.
|
|
87
|
+
*/
|
|
82
88
|
const longDateFormat = {
|
|
83
89
|
/** LTS: Specifies the format for displaying time with seconds. */
|
|
84
90
|
LT: 'HH:mm',
|
|
85
91
|
/** LT: Specifies the format for displaying time without seconds. */
|
|
86
92
|
LTS: 'HH:mm:ss',
|
|
93
|
+
/**
|
|
94
|
+
* This format typically produces a localized short date format that is more complete,
|
|
95
|
+
* often including the full month name and day of the month without any abbreviations.
|
|
96
|
+
* e.g. moment().format('L'); // Output: 09/03/2024
|
|
97
|
+
*/
|
|
87
98
|
/** L: Specifies the format for displaying the date in short format. */
|
|
88
|
-
L: 'DD/MM/
|
|
99
|
+
L: 'DD/MM/YY',
|
|
89
100
|
/** LL: Specifies the format for displaying the date in long format. */
|
|
90
101
|
LL: 'D MMMM YYYY',
|
|
91
102
|
/** LLL: Specifies the format for displaying the date and time. */
|
|
92
103
|
LLL: 'D MMMM YYYY HH:mm',
|
|
93
104
|
/** LLLL: Specifies the format for displaying the full date and time with the day of the week. */
|
|
94
105
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
106
|
+
/**
|
|
107
|
+
* This format usually renders a localized short date format that is even shorter,
|
|
108
|
+
* potentially using abbreviations for the month and/or day of the month.
|
|
109
|
+
* e.g. moment().format('l'); // Output: 9/3/2024
|
|
110
|
+
*/
|
|
111
|
+
/** l: Specifies the format for displaying the date in short format. */
|
|
112
|
+
l: 'DD/MM/YY',
|
|
113
|
+
/** ll: Specifies the format for displaying the date in long format. */
|
|
114
|
+
ll: 'D MMMM YYYY',
|
|
115
|
+
/** lll: Specifies the format for displaying the date and time. */
|
|
116
|
+
lll: 'D MMMM YYYY HH:mm',
|
|
117
|
+
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
118
|
+
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
95
119
|
}
|
|
96
120
|
|
|
97
121
|
moment.defineLocale('en-at', { parentLocale: 'en', longDateFormat });
|
|
@@ -122,6 +146,14 @@ moment.defineLocale('en-se', {
|
|
|
122
146
|
LLL: 'D MMMM YYYY HH:mm',
|
|
123
147
|
/** LLLL: Specifies the format for displaying the full date and time with the day of the week. */
|
|
124
148
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
149
|
+
/** l: Specifies the format for displaying the date in short format. */
|
|
150
|
+
l: 'Y-MM-DD',
|
|
151
|
+
/** ll: Specifies the format for displaying the date in long format. */
|
|
152
|
+
ll: 'D MMMM YYYY',
|
|
153
|
+
/** lll: Specifies the format for displaying the date and time. */
|
|
154
|
+
lll: 'D MMMM YYYY HH:mm',
|
|
155
|
+
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
156
|
+
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
125
157
|
}
|
|
126
158
|
});
|
|
127
159
|
moment.defineLocale('en-si', { parentLocale: 'en', longDateFormat });
|
|
@@ -79,19 +79,43 @@ registerLocaleData(localeFR_LU, localeFRExtra_LU);
|
|
|
79
79
|
registerLocaleData(localeFR_CH, localeFRExtra_CH);
|
|
80
80
|
registerLocaleData(localeFR_BE, localeFRExtra_BE);
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Within the MyWP environment, the 'L' and 'l' date formats have been modified to align with each other
|
|
84
|
+
* and to adhere to the CLDR-based date formats utilized by Angular.
|
|
85
|
+
* For instance, the 'shortDate' format now corresponds to 'DD/MM/YY' instead of the default
|
|
86
|
+
* Moment.js format of 'DD/MM/YYYY'.
|
|
87
|
+
*/
|
|
82
88
|
const longDateFormat = {
|
|
83
89
|
/** LTS: Specifies the format for displaying time with seconds. */
|
|
84
90
|
LT: 'HH:mm',
|
|
85
91
|
/** LT: Specifies the format for displaying time without seconds. */
|
|
86
92
|
LTS: 'HH:mm:ss',
|
|
93
|
+
/**
|
|
94
|
+
* This format typically produces a localized short date format that is more complete,
|
|
95
|
+
* often including the full month name and day of the month without any abbreviations.
|
|
96
|
+
* e.g. moment().format('L'); // Output: 09/03/2024
|
|
97
|
+
*/
|
|
87
98
|
/** L: Specifies the format for displaying the date in short format. */
|
|
88
|
-
L: 'DD/MM/
|
|
99
|
+
L: 'DD/MM/YY',
|
|
89
100
|
/** LL: Specifies the format for displaying the date in long format. */
|
|
90
101
|
LL: 'D MMMM YYYY',
|
|
91
102
|
/** LLL: Specifies the format for displaying the date and time. */
|
|
92
103
|
LLL: 'D MMMM YYYY HH:mm',
|
|
93
104
|
/** LLLL: Specifies the format for displaying the full date and time with the day of the week. */
|
|
94
105
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
106
|
+
/**
|
|
107
|
+
* This format usually renders a localized short date format that is even shorter,
|
|
108
|
+
* potentially using abbreviations for the month and/or day of the month.
|
|
109
|
+
* e.g. moment().format('l'); // Output: 9/3/2024
|
|
110
|
+
*/
|
|
111
|
+
/** l: Specifies the format for displaying the date in short format. */
|
|
112
|
+
l: 'DD/MM/YY',
|
|
113
|
+
/** ll: Specifies the format for displaying the date in long format. */
|
|
114
|
+
ll: 'D MMMM YYYY',
|
|
115
|
+
/** lll: Specifies the format for displaying the date and time. */
|
|
116
|
+
lll: 'D MMMM YYYY HH:mm',
|
|
117
|
+
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
118
|
+
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
95
119
|
}
|
|
96
120
|
|
|
97
121
|
moment.defineLocale('en-at', { parentLocale: 'en', longDateFormat });
|
|
@@ -122,6 +146,14 @@ moment.defineLocale('en-se', {
|
|
|
122
146
|
LLL: 'D MMMM YYYY HH:mm',
|
|
123
147
|
/** LLLL: Specifies the format for displaying the full date and time with the day of the week. */
|
|
124
148
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
149
|
+
/** l: Specifies the format for displaying the date in short format. */
|
|
150
|
+
l: 'Y-MM-DD',
|
|
151
|
+
/** ll: Specifies the format for displaying the date in long format. */
|
|
152
|
+
ll: 'D MMMM YYYY',
|
|
153
|
+
/** lll: Specifies the format for displaying the date and time. */
|
|
154
|
+
lll: 'D MMMM YYYY HH:mm',
|
|
155
|
+
/** llll: Specifies the format for displaying the full date and time with the day of the week. */
|
|
156
|
+
llll: 'dddd, D MMMM YYYY HH:mm',
|
|
125
157
|
}
|
|
126
158
|
});
|
|
127
159
|
moment.defineLocale('en-si', { parentLocale: 'en', longDateFormat });
|
|
@@ -8,10 +8,12 @@ const innerProjects = require('./projects');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
module.exports.install = (prj, envTarget) => {
|
|
11
|
+
tools.logInfo('install.buildApp.install');
|
|
12
|
+
|
|
11
13
|
return Promise.resolve()
|
|
12
14
|
// checking remotes
|
|
13
15
|
.then(() => {
|
|
14
|
-
if (prj.standalone) {
|
|
16
|
+
if (prj.standalone && !envTarget) {
|
|
15
17
|
return innerProjects.installDepsStandalone(prj);
|
|
16
18
|
} else {
|
|
17
19
|
return innerProjects.installDeps(prj, envTarget);
|
|
@@ -16,6 +16,8 @@ const innerCompositeCore = require('./composite-core');
|
|
|
16
16
|
const { remotesImport } = tools.getArgs();
|
|
17
17
|
|
|
18
18
|
const getDeps = (module.exports.getDeps = (prj, envTarget) => {
|
|
19
|
+
tools.logInfo('install.projects.getDeps');
|
|
20
|
+
|
|
19
21
|
return Promise.resolve()
|
|
20
22
|
.then(() => {
|
|
21
23
|
return metadataUtils.appEnvs.getMetadata(prj);
|
|
@@ -25,6 +27,7 @@ const getDeps = (module.exports.getDeps = (prj, envTarget) => {
|
|
|
25
27
|
prj.folder,
|
|
26
28
|
envsMetadata,
|
|
27
29
|
envTarget,
|
|
30
|
+
prj.standalone
|
|
28
31
|
);
|
|
29
32
|
})
|
|
30
33
|
|
|
@@ -114,6 +117,8 @@ module.exports.getLocalProjectsFixedDeps = async (_) => {
|
|
|
114
117
|
};
|
|
115
118
|
|
|
116
119
|
module.exports.installDeps = (prj, envTarget) => {
|
|
120
|
+
tools.logInfo('install.projects.installDeps');
|
|
121
|
+
|
|
117
122
|
let finalDeps, compositeDeps;
|
|
118
123
|
|
|
119
124
|
return Promise.resolve()
|
|
@@ -16,7 +16,7 @@ const configUtils = require('../../config/config-utils');
|
|
|
16
16
|
// LOCAL TEST :
|
|
17
17
|
// - symlink eUI tools sources to node_modules of standalone pkg folder node_modules to test
|
|
18
18
|
// - execute this command on the standalone pkg folder :
|
|
19
|
-
// npx @eui/tools release-app-standalone --prjName baep-sample-host --euiVersion 18.x --envTarget DEV --configEnvTarget
|
|
19
|
+
// npx @eui/tools release-app-standalone --prjName baep-sample-host --euiVersion 18.x --envTarget DEV --configEnvTarget cdn-dev --debug --debugNotification --skipNotification --skipGitUpdates --skipInstall
|
|
20
20
|
|
|
21
21
|
module.exports.run = () => {
|
|
22
22
|
const { prjName, euiVersion, envTarget, configEnvTarget } = utils.tools.getArgs();
|
|
@@ -151,7 +151,8 @@ module.exports.run = () => {
|
|
|
151
151
|
// BUILD ANGULAR APPLICATION
|
|
152
152
|
.then(() => {
|
|
153
153
|
return utils.buildApp.angular({
|
|
154
|
-
|
|
154
|
+
project,
|
|
155
|
+
envTarget,
|
|
155
156
|
isSnapshot: false,
|
|
156
157
|
version: newVersion,
|
|
157
158
|
configEnvTargetin: configEnvTarget,
|
|
@@ -718,7 +718,9 @@ module.exports.extractRemotesMetadata = (project) => {
|
|
|
718
718
|
|
|
719
719
|
return Promise.resolve()
|
|
720
720
|
.then(() => {
|
|
721
|
-
|
|
721
|
+
if (!project.standalone) {
|
|
722
|
+
return initUtils.remotes.cloneRemotesConfig();
|
|
723
|
+
}
|
|
722
724
|
})
|
|
723
725
|
|
|
724
726
|
.then(() => {
|