@eui/tools 6.2.37 → 6.2.38
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/scripts/csdr/cli/constants.js +2 -0
- package/scripts/csdr/cli/package-build-frontend.js +4 -0
- package/scripts/csdr/cli/package-prompt.js +31 -1
- package/scripts/csdr/cli/skeletons/package/frontend-eui13/dependencies-composite.json +3 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.2.
|
|
1
|
+
6.2.38
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.2.38 (2022-11-22)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* put back eui13 generation of frontend package for SFC - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([c3e74565](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c3e74565c71a8792e0df0d7b29278a9110b70705))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.2.37 (2022-11-21)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ module.exports.TARGET_ROOT_PATH = path.join(process.cwd(), 'packages');
|
|
|
6
6
|
module.exports.TARGET_ROOT_REMOTES_PATH = path.join(process.cwd(), 'remotes');
|
|
7
7
|
module.exports.SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package');
|
|
8
8
|
module.exports.FRONTEND_SKELETON_EUI10_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-eui10');
|
|
9
|
+
module.exports.FRONTEND_SKELETON_EUI13_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-eui13');
|
|
9
10
|
module.exports.FRONTEND_SKELETON_EUI15_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-eui15');
|
|
10
11
|
module.exports.FRONTEND_SKELETON_REMOTE_EUI10_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-remote-eui10');
|
|
11
12
|
module.exports.FRONTEND_SKELETON_REMOTE_EUI15_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-remote-eui15');
|
|
@@ -24,6 +25,7 @@ module.exports.CONFIG_OPTIONS = {
|
|
|
24
25
|
},
|
|
25
26
|
pkgFrontendVersion: {
|
|
26
27
|
EUI10: '10',
|
|
28
|
+
EUI13: '13',
|
|
27
29
|
EUI15: '15',
|
|
28
30
|
}
|
|
29
31
|
}
|
|
@@ -178,6 +178,10 @@ const generateDefault = ({fullName, targetPath, rootPackagePath, pkg, args = con
|
|
|
178
178
|
if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10) {
|
|
179
179
|
tools.copydir(constants.FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
|
|
180
180
|
|
|
181
|
+
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI13) {
|
|
182
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
|
|
183
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI13_PATH, targetPath, true);
|
|
184
|
+
|
|
181
185
|
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
|
|
182
186
|
tools.copydir(constants.FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
|
|
183
187
|
tools.copydir(constants.FRONTEND_SKELETON_EUI15_PATH, targetPath, true);
|
|
@@ -64,7 +64,10 @@ module.exports.prompt = () => {
|
|
|
64
64
|
],
|
|
65
65
|
default: constants.DEFAULT_CONFIG.pkgFrontendType,
|
|
66
66
|
when: function (answers) {
|
|
67
|
-
return (
|
|
67
|
+
return (
|
|
68
|
+
answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND &&
|
|
69
|
+
answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE
|
|
70
|
+
);
|
|
68
71
|
},
|
|
69
72
|
validate: function (value) {
|
|
70
73
|
if (value.length) {
|
|
@@ -72,6 +75,33 @@ module.exports.prompt = () => {
|
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
},
|
|
78
|
+
{
|
|
79
|
+
type: 'list',
|
|
80
|
+
name: 'pkgFrontendVersion',
|
|
81
|
+
message: 'Select eUI version target :',
|
|
82
|
+
choices: [
|
|
83
|
+
{ name: 'v10', value: constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10 },
|
|
84
|
+
{ name: 'v13', value: constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI13 },
|
|
85
|
+
{ name: 'v15', value: constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15 },
|
|
86
|
+
],
|
|
87
|
+
default: constants.DEFAULT_CONFIG.pkgFrontendType,
|
|
88
|
+
when: function (answers) {
|
|
89
|
+
return (
|
|
90
|
+
answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND &&
|
|
91
|
+
answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.DEFAULT
|
|
92
|
+
);
|
|
93
|
+
},
|
|
94
|
+
validate: function (value) {
|
|
95
|
+
if (value.length) {
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
75
105
|
{
|
|
76
106
|
name: 'pkgScope',
|
|
77
107
|
type: 'input',
|