@eui/cli 21.2.5-snapshot-1779184913607 → 21.2.5-snapshot-1779434284366
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/lib/build.js
CHANGED
|
@@ -63,17 +63,9 @@ const copyAngular = (targetPath, cliConfig, overwrite = true) => {
|
|
|
63
63
|
utils.copydir(config.angularBaseMobilePath, targetPath, overwrite);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
if (cliConfig.appOptions
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
console.log('Applying option : ' + item);
|
|
70
|
-
utils.copydir(config.optionsPath[item], targetPath, true);
|
|
71
|
-
}
|
|
72
|
-
})
|
|
73
|
-
if (cliConfig.appOptions.includes('ecl') && cliConfig.appOptionsEclTheme) {
|
|
74
|
-
console.log(`eUI ECL theme selected : ` + cliConfig.appOptionsEclTheme);
|
|
75
|
-
utils.copydir(config.optionsPath[cliConfig.appOptionsEclTheme], targetPath, true);
|
|
76
|
-
}
|
|
66
|
+
if (cliConfig.appOptions === 'ecl') {
|
|
67
|
+
console.log(`eUI ECL theme selected : ` + cliConfig.appOptionsEclTheme);
|
|
68
|
+
utils.copydir(config.optionsPath[cliConfig.appOptionsEclTheme], targetPath, true);
|
|
77
69
|
}
|
|
78
70
|
|
|
79
71
|
if (cliConfig.packageManager === 'pnpm') {
|
package/lib/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ const defaultConfig = {
|
|
|
4
4
|
appName: 'my-app',
|
|
5
5
|
appScope: '@app',
|
|
6
6
|
appType: 'angular',
|
|
7
|
-
appOptions:
|
|
7
|
+
appOptions: 'eui',
|
|
8
8
|
appOptionsEclTheme: 'ecl-ec',
|
|
9
9
|
appFeatures: [],
|
|
10
10
|
groupId: 'ec.europa.digit',
|
|
@@ -89,20 +89,21 @@ module.exports.start = async (options) => {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
if (answers.appType !== 'mobile') {
|
|
92
|
-
const appOptionsPrompt = new
|
|
92
|
+
const appOptionsPrompt = new Select({
|
|
93
93
|
name: 'appOptions',
|
|
94
94
|
message: 'Select one or more additional configuration options :',
|
|
95
95
|
choices: [
|
|
96
|
-
{ name: 'eUI
|
|
96
|
+
{ name: 'eUI default app-shell', value: '' },
|
|
97
|
+
{ name: 'eUI ECL app-shell - for ec.europa.eu apps', value: 'ecl' }
|
|
97
98
|
],
|
|
98
|
-
initial:
|
|
99
|
-
result(
|
|
100
|
-
return
|
|
99
|
+
initial: 0,
|
|
100
|
+
result(name) {
|
|
101
|
+
return this.find(name).value;
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
104
|
answers.appOptions = await appOptionsPrompt.run();
|
|
104
105
|
|
|
105
|
-
if (answers.appOptions
|
|
106
|
+
if (answers.appOptions === 'ecl') {
|
|
106
107
|
const eclThemePrompt = new Select({
|
|
107
108
|
name: 'appOptionsEclTheme',
|
|
108
109
|
message: 'Select which eUI ECL theme flavor you need :',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "21.2.5-snapshot-
|
|
3
|
+
"version": "21.2.5-snapshot-1779434284366",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"ng": "ng",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"private": true,
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@eui/deps-base": "21.2.5-snapshot-
|
|
23
|
+
"@eui/deps-base": "21.2.5-snapshot-1779434284366"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"npm-run-all": "4.1.5",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "21.2.5-snapshot-
|
|
3
|
+
"version": "21.2.5-snapshot-1779434284366",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"ng": "ng",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"pikaday": "1.8.2",
|
|
47
47
|
"lodash-es": "4.17.23",
|
|
48
48
|
"localforage": "1.10.0",
|
|
49
|
-
"@eui/base": "21.2.5-snapshot-
|
|
50
|
-
"@eui/core": "21.2.5-snapshot-
|
|
51
|
-
"@eui/styles": "21.2.5-snapshot-
|
|
52
|
-
"@eui/components": "21.2.5-snapshot-
|
|
53
|
-
"@eui/ecl": "21.2.5-snapshot-
|
|
49
|
+
"@eui/base": "21.2.5-snapshot-1779434284366",
|
|
50
|
+
"@eui/core": "21.2.5-snapshot-1779434284366",
|
|
51
|
+
"@eui/styles": "21.2.5-snapshot-1779434284366",
|
|
52
|
+
"@eui/components": "21.2.5-snapshot-1779434284366",
|
|
53
|
+
"@eui/ecl": "21.2.5-snapshot-1779434284366"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@angular/compiler-cli": "21.2.5",
|
|
57
57
|
"@angular/build": "21.2.3",
|
|
58
58
|
"@angular/cli": "21.2.3",
|
|
59
59
|
"ng-packagr": "21.2.1",
|
|
60
|
-
"@eui/cli": "21.2.5-snapshot-
|
|
60
|
+
"@eui/cli": "21.2.5-snapshot-1779434284366",
|
|
61
61
|
"typescript": "5.9.3",
|
|
62
62
|
"npm-run-all": "4.1.5",
|
|
63
63
|
"json-server": "1.0.0-beta.3",
|