@eui/cli 18.0.0-rc.8 → 18.0.1-snapshot-1717799927411
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/bin/eui-cli.js +4 -14
- package/lib/cli.js +1 -0
- package/lib/config.js +8 -4
- package/lib/generators.js +25 -2
- package/lib/install.js +0 -8
- package/lib/skeletons/_angular/base/package.json +2 -2
- package/lib/skeletons/_angular/base-mobile/package.json +2 -2
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.html +21 -46
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.html +22 -8
- package/lib/skeletons/web-symfony/myapp-web/package.json +2 -2
- package/package.json +4 -4
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
18.0.
|
|
1
|
+
18.0.1-snapshot-1717799927411
|
package/bin/eui-cli.js
CHANGED
|
@@ -19,8 +19,7 @@ console.info(
|
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
// remapping config if passed as argument - automated mode
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
let inputConfig = config.parseInputConfig(args.config);
|
|
24
23
|
|
|
25
24
|
// Detecting targetPath and create it if present as argument - local and automated mode
|
|
26
25
|
let targetPath;
|
|
@@ -28,22 +27,13 @@ let targetPath;
|
|
|
28
27
|
if (args.targetPath) {
|
|
29
28
|
targetPath = path.join(config.targetPath, args.targetPath);
|
|
30
29
|
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (fs.readdirSync(targetPath).length < 1) {
|
|
36
|
-
fs.mkdirSync(targetPath);
|
|
30
|
+
if (!tools.isDirExists(targetPath)) {
|
|
31
|
+
tools.mkdir(targetPath);
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
// otherwise taking the default config targetPath defined
|
|
40
35
|
} else {
|
|
41
|
-
|
|
42
|
-
targetPath = path.join(config.targetPath, 'packages');
|
|
43
|
-
|
|
44
|
-
} else {
|
|
45
|
-
targetPath = config.targetPath;
|
|
46
|
-
}
|
|
36
|
+
targetPath = config.targetPath;
|
|
47
37
|
}
|
|
48
38
|
|
|
49
39
|
if (args.v) {
|
package/lib/cli.js
CHANGED
package/lib/config.js
CHANGED
|
@@ -22,6 +22,9 @@ module.exports.optionsPath = {
|
|
|
22
22
|
|
|
23
23
|
module.exports.version = version;
|
|
24
24
|
|
|
25
|
+
// f.e. :
|
|
26
|
+
// eui-cli --config appType:angular,npmInstall:false --targetPath eui-angular
|
|
27
|
+
// eui-cli --config appType:angular,appOptions:ecl,npmInstall:false --targetPath eui-angular-ecl-ec
|
|
25
28
|
|
|
26
29
|
module.exports.parseInputConfig = (inputConfig) => {
|
|
27
30
|
|
|
@@ -32,7 +35,8 @@ module.exports.parseInputConfig = (inputConfig) => {
|
|
|
32
35
|
const configArray = inputConfig.split(',').map(item => {
|
|
33
36
|
const x = item.split(':');
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
const propName = x[0];
|
|
39
|
+
let value = x[1];
|
|
36
40
|
|
|
37
41
|
// treating text to boolean values : f.e. : npmInstall=true
|
|
38
42
|
if (value === 'true') {
|
|
@@ -42,12 +46,12 @@ module.exports.parseInputConfig = (inputConfig) => {
|
|
|
42
46
|
value = false;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
// treating string array values : f.e. :
|
|
46
|
-
if (
|
|
49
|
+
// treating string array values : f.e. : appOptions=ecl_something
|
|
50
|
+
if (propName === 'appOptions') {
|
|
47
51
|
value = value.split('_');
|
|
48
52
|
}
|
|
49
53
|
|
|
50
|
-
return { [
|
|
54
|
+
return { [propName]: value };
|
|
51
55
|
});
|
|
52
56
|
|
|
53
57
|
return Object.assign({}, ...configArray);
|
package/lib/generators.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
const chalk = require('chalk');
|
|
2
|
+
const childProcess = require('child_process');
|
|
3
|
+
const execSync = childProcess.execSync;
|
|
2
4
|
const cli = require('./cli');
|
|
3
5
|
const build = require('./build');
|
|
4
6
|
const postBuild = require('./post-build');
|
|
5
7
|
const install = require('./install');
|
|
8
|
+
const path = require('path');
|
|
9
|
+
const utils = require('./utils');
|
|
6
10
|
|
|
7
11
|
const appGenerate = (options) => {
|
|
8
|
-
|
|
12
|
+
if (options.inputConfig) {
|
|
13
|
+
console.info(chalk.cyan('Creating your project - automated mode : \n'));
|
|
14
|
+
} else {
|
|
15
|
+
console.info(chalk.cyan('Configuring your project : please answer the following : \n'));
|
|
16
|
+
}
|
|
9
17
|
|
|
10
|
-
|
|
18
|
+
let cliConfig;
|
|
11
19
|
|
|
12
20
|
// Query the questions
|
|
13
21
|
// -------------------
|
|
@@ -50,6 +58,21 @@ const appGenerate = (options) => {
|
|
|
50
58
|
});
|
|
51
59
|
})
|
|
52
60
|
|
|
61
|
+
// starting app
|
|
62
|
+
.then(() => {
|
|
63
|
+
if (!cliConfig.appStart) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
console.log('');
|
|
67
|
+
console.log('');
|
|
68
|
+
console.log('*****************************************************************');
|
|
69
|
+
console.log(chalk.cyan(' Starting eUI app... browser will open soon on localhost:4200'));
|
|
70
|
+
console.log('*****************************************************************');
|
|
71
|
+
|
|
72
|
+
const wd = path.resolve(utils.getAngularPath(options.targetPath, cliConfig.appName, cliConfig.appType, cliConfig.artifactId));
|
|
73
|
+
return execSync("npm start", { cwd: wd, stdio: "inherit" });
|
|
74
|
+
})
|
|
75
|
+
|
|
53
76
|
.catch((e) => {
|
|
54
77
|
console.error(e);
|
|
55
78
|
process.exitCode = 1;
|
package/lib/install.js
CHANGED
|
@@ -37,15 +37,7 @@ const install = (cliConfig, targetPath) => {
|
|
|
37
37
|
.then(() => {
|
|
38
38
|
return execSync("yarn", { cwd: wd, stdio: "inherit" });
|
|
39
39
|
})
|
|
40
|
-
.then(() => {
|
|
41
|
-
console.log('');
|
|
42
|
-
console.log('');
|
|
43
|
-
console.log('*****************************************************************');
|
|
44
|
-
console.log(chalk.cyan(' Starting eUI app... browser will open soon on localhost:4200'));
|
|
45
|
-
console.log('*****************************************************************');
|
|
46
40
|
|
|
47
|
-
return execSync("npm start", { cwd: wd, stdio: "inherit" });
|
|
48
|
-
})
|
|
49
41
|
.catch((e) => {
|
|
50
42
|
throw e;
|
|
51
43
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.1-snapshot-1717799927411",
|
|
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": "18.0.
|
|
23
|
+
"@eui/deps-base": "18.0.1-snapshot-1717799927411"
|
|
24
24
|
},
|
|
25
25
|
"resolutions": {
|
|
26
26
|
"js-yaml": ">=3.13.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.1-snapshot-1717799927411",
|
|
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": "16.2.
|
|
23
|
+
"@eui/deps-base": "16.2.18-snapshot-1717035143036",
|
|
24
24
|
"@eui/mobile-core": "16.10.1-snapshot-1714734024630",
|
|
25
25
|
"@eui/mobile-styles": "16.10.1-snapshot-1714734024630"
|
|
26
26
|
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<div eclSiteHeaderEnvironment>Environment</div>
|
|
5
5
|
|
|
6
6
|
<ecl-site-header-action>
|
|
7
|
-
<ecl-site-header-login
|
|
8
|
-
[isLoggedIn]="isLoggedIn"
|
|
7
|
+
<ecl-site-header-login
|
|
8
|
+
[isLoggedIn]="isLoggedIn"
|
|
9
9
|
(login)="onLogin($event)">
|
|
10
10
|
<p eclSiteHeaderLoginDescription>
|
|
11
11
|
{{ 'ecl.site-header.LOGGED-IN-AS' | translate }} {{ userInfos?.fullName }}
|
|
@@ -57,12 +57,14 @@
|
|
|
57
57
|
<ecl-breadcrumb-segment [isCurrentPage]="true">ECL</ecl-breadcrumb-segment>
|
|
58
58
|
</ecl-breadcrumb>
|
|
59
59
|
|
|
60
|
-
<div
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
<div eclPageHeaderInfo>
|
|
61
|
+
<div eclPageHeaderMeta>
|
|
62
|
+
<span eclPageHeaderMetaItem>
|
|
63
|
+
Auto generated template
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
<h1 eclPageHeaderTitle>Europa Component Library</h1>
|
|
64
67
|
</div>
|
|
65
|
-
<h1 eclPageHeaderTitle>Europa Component Library</h1>
|
|
66
68
|
<div eclPageHeaderDescriptionContainer>
|
|
67
69
|
<p eclPageHeaderDescription>
|
|
68
70
|
The Europa Component Library (ECL) is a comprehensive style guide containing the design elements and visual standards that make up all Europa websites and applications.
|
|
@@ -77,9 +79,9 @@
|
|
|
77
79
|
<ecl-site-footer>
|
|
78
80
|
<div eclSiteFooterRow>
|
|
79
81
|
<div eclSiteFooterColumn>
|
|
80
|
-
<div eclSiteFooterSection>
|
|
82
|
+
<div eclSiteFooterSection isSiteInfo>
|
|
81
83
|
<h2 eclSiteFooterTitle>
|
|
82
|
-
<a
|
|
84
|
+
<a eclLink
|
|
83
85
|
variant="standalone"
|
|
84
86
|
eclSiteFooterTitleLink
|
|
85
87
|
routerLink="/">Site name
|
|
@@ -99,8 +101,8 @@
|
|
|
99
101
|
<ul eclSiteFooterList>
|
|
100
102
|
<li eclSiteFooterListItem>
|
|
101
103
|
<a eclLink
|
|
104
|
+
isInverted
|
|
102
105
|
eclSiteFooterLink
|
|
103
|
-
[attr.aria-label]="'ecl.footer.CONTACT-INFO-DG' | translate"
|
|
104
106
|
variant="standalone"
|
|
105
107
|
routerLink="/">
|
|
106
108
|
{{ 'ecl.footer.CONTACT-INFO-DG' | translate }}
|
|
@@ -116,9 +118,9 @@
|
|
|
116
118
|
<ul eclSiteFooterList
|
|
117
119
|
[isInline]="true">
|
|
118
120
|
<li eclSiteFooterListItem>
|
|
119
|
-
<a
|
|
121
|
+
<a eclLink
|
|
122
|
+
isInverted
|
|
120
123
|
eclSiteFooterLink
|
|
121
|
-
aria-label="Facebook"
|
|
122
124
|
variant="standalone"
|
|
123
125
|
routerLink="/">
|
|
124
126
|
<ecl-icon iconSet="social-media"
|
|
@@ -130,8 +132,8 @@
|
|
|
130
132
|
</li>
|
|
131
133
|
<li eclSiteFooterListItem>
|
|
132
134
|
<a eclLink
|
|
135
|
+
isInverted
|
|
133
136
|
eclSiteFooterLink
|
|
134
|
-
aria-label="Twitter"
|
|
135
137
|
variant="standalone"
|
|
136
138
|
routerLink="/">
|
|
137
139
|
<ecl-icon iconSet="social-media"
|
|
@@ -143,8 +145,8 @@
|
|
|
143
145
|
</li>
|
|
144
146
|
<li eclSiteFooterListItem>
|
|
145
147
|
<a eclLink
|
|
148
|
+
isInverted
|
|
146
149
|
eclSiteFooterLink
|
|
147
|
-
aria-label="Linkedin"
|
|
148
150
|
variant="standalone"
|
|
149
151
|
routerLink="/">
|
|
150
152
|
<ecl-icon iconSet="social-media"
|
|
@@ -166,8 +168,8 @@
|
|
|
166
168
|
<ul eclSiteFooterList>
|
|
167
169
|
<li eclSiteFooterListItem>
|
|
168
170
|
<a eclLink
|
|
171
|
+
isInverted
|
|
169
172
|
eclSiteFooterLink
|
|
170
|
-
[attr.aria-label]="'ecl.footer.INFO-ABOUT-DG' | translate"
|
|
171
173
|
variant="standalone"
|
|
172
174
|
routerLink="/">
|
|
173
175
|
{{ 'ecl.footer.INFO-ABOUT-DG' | translate }}
|
|
@@ -183,8 +185,8 @@
|
|
|
183
185
|
<ul eclSiteFooterList>
|
|
184
186
|
<li eclSiteFooterListItem>
|
|
185
187
|
<a eclLink
|
|
188
|
+
isInverted
|
|
186
189
|
eclSiteFooterLink
|
|
187
|
-
aria-label="Related link 1"
|
|
188
190
|
variant="standalone"
|
|
189
191
|
routerLink="/">
|
|
190
192
|
Related link 1
|
|
@@ -192,40 +194,13 @@
|
|
|
192
194
|
</li>
|
|
193
195
|
<li eclSiteFooterListItem>
|
|
194
196
|
<a eclLink
|
|
197
|
+
isInverted
|
|
195
198
|
eclSiteFooterLink
|
|
196
|
-
aria-label="Related link 2"
|
|
197
199
|
variant="standalone"
|
|
198
200
|
routerLink="/">
|
|
199
201
|
Related link 2
|
|
200
202
|
</a>
|
|
201
203
|
</li>
|
|
202
|
-
<li eclSiteFooterListItem>
|
|
203
|
-
<a eclLink
|
|
204
|
-
eclSiteFooterLink
|
|
205
|
-
aria-label="Related link 3"
|
|
206
|
-
variant="standalone"
|
|
207
|
-
routerLink="/">
|
|
208
|
-
Related link 3
|
|
209
|
-
</a>
|
|
210
|
-
</li>
|
|
211
|
-
<li eclSiteFooterListItem>
|
|
212
|
-
<a eclLink
|
|
213
|
-
eclSiteFooterLink
|
|
214
|
-
aria-label="Related link 4"
|
|
215
|
-
variant="standalone"
|
|
216
|
-
routerLink="/">
|
|
217
|
-
Related link 4
|
|
218
|
-
</a>
|
|
219
|
-
</li>
|
|
220
|
-
<li eclSiteFooterListItem>
|
|
221
|
-
<a eclLink
|
|
222
|
-
eclSiteFooterLink
|
|
223
|
-
aria-label="Related link 5"
|
|
224
|
-
variant="standalone"
|
|
225
|
-
routerLink="/">
|
|
226
|
-
Related link 5
|
|
227
|
-
</a>
|
|
228
|
-
</li>
|
|
229
204
|
</ul>
|
|
230
205
|
</div>
|
|
231
206
|
</div>
|
|
@@ -238,8 +213,8 @@
|
|
|
238
213
|
<ul eclSiteFooterList>
|
|
239
214
|
<li eclSiteFooterListItem>
|
|
240
215
|
<a eclLink
|
|
216
|
+
isInverted
|
|
241
217
|
eclSiteFooterLink
|
|
242
|
-
aria-label="Class name 1"
|
|
243
218
|
variant="standalone"
|
|
244
219
|
routerLink="/">
|
|
245
220
|
Class name 1
|
|
@@ -247,8 +222,8 @@
|
|
|
247
222
|
</li>
|
|
248
223
|
<li eclSiteFooterListItem>
|
|
249
224
|
<a eclLink
|
|
225
|
+
isInverted
|
|
250
226
|
eclSiteFooterLink
|
|
251
|
-
aria-label="Class name 2"
|
|
252
227
|
variant="standalone"
|
|
253
228
|
routerLink="/">
|
|
254
229
|
Class name 2
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<div eclSiteHeaderEnvironment>Environment</div>
|
|
5
5
|
|
|
6
6
|
<ecl-site-header-action>
|
|
7
|
-
<ecl-site-header-login
|
|
8
|
-
[isLoggedIn]="isLoggedIn"
|
|
7
|
+
<ecl-site-header-login
|
|
8
|
+
[isLoggedIn]="isLoggedIn"
|
|
9
9
|
(login)="onLogin($event)">
|
|
10
10
|
<p eclSiteHeaderLoginDescription>
|
|
11
11
|
{{ 'ecl.site-header.LOGGED-IN-AS' | translate }} {{ userInfos?.fullName }}
|
|
@@ -57,12 +57,14 @@
|
|
|
57
57
|
<ecl-breadcrumb-segment [isCurrentPage]="true">ECL</ecl-breadcrumb-segment>
|
|
58
58
|
</ecl-breadcrumb>
|
|
59
59
|
|
|
60
|
-
<div
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
<div eclPageHeaderInfo>
|
|
61
|
+
<div eclPageHeaderMeta>
|
|
62
|
+
<span eclPageHeaderMetaItem>
|
|
63
|
+
Auto generated template
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
<h1 eclPageHeaderTitle>Europa Component Library</h1>
|
|
64
67
|
</div>
|
|
65
|
-
<h1 eclPageHeaderTitle>Europa Component Library</h1>
|
|
66
68
|
<div eclPageHeaderDescriptionContainer>
|
|
67
69
|
<p eclPageHeaderDescription>
|
|
68
70
|
The Europa Component Library (ECL) is a comprehensive style guide containing the design elements and visual standards that make up all Europa websites and applications.
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
<ecl-site-footer>
|
|
78
80
|
<div eclSiteFooterRow>
|
|
79
81
|
<div eclSiteFooterColumn>
|
|
80
|
-
<div eclSiteFooterSection>
|
|
82
|
+
<div eclSiteFooterSection isSiteInfo>
|
|
81
83
|
<h2 eclSiteFooterTitle>
|
|
82
84
|
<a eclLink
|
|
83
85
|
variant="standalone"
|
|
@@ -120,6 +122,10 @@
|
|
|
120
122
|
eclSiteFooterLink
|
|
121
123
|
variant="standalone"
|
|
122
124
|
routerLink="/">
|
|
125
|
+
<ecl-icon iconSet="social-media"
|
|
126
|
+
icon="facebook"
|
|
127
|
+
size="xs">
|
|
128
|
+
</ecl-icon>
|
|
123
129
|
<span eclLinkLabel>Social 1</span>
|
|
124
130
|
</a>
|
|
125
131
|
</li>
|
|
@@ -128,6 +134,10 @@
|
|
|
128
134
|
eclSiteFooterLink
|
|
129
135
|
variant="standalone"
|
|
130
136
|
routerLink="/">
|
|
137
|
+
<ecl-icon iconSet="social-media"
|
|
138
|
+
icon="twitter"
|
|
139
|
+
size="xs">
|
|
140
|
+
</ecl-icon>
|
|
131
141
|
<span eclLinkLabel>Social 2</span>
|
|
132
142
|
</a>
|
|
133
143
|
</li>
|
|
@@ -136,6 +146,10 @@
|
|
|
136
146
|
eclSiteFooterLink
|
|
137
147
|
variant="standalone"
|
|
138
148
|
routerLink="/">
|
|
149
|
+
<ecl-icon iconSet="social-media"
|
|
150
|
+
icon="mastodon"
|
|
151
|
+
size="xs">
|
|
152
|
+
</ecl-icon>
|
|
139
153
|
<span eclLinkLabel>Social 3</span>
|
|
140
154
|
</a>
|
|
141
155
|
</li>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.1-snapshot-1717799927411",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"description": "eUI JEE Symfony app scripts",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"private": true,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@eui/deps-base": "18.0.
|
|
21
|
+
"@eui/deps-base": "18.0.1-snapshot-1717799927411"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/cli",
|
|
3
|
-
"version": "18.0.
|
|
4
|
-
"tag": "
|
|
3
|
+
"version": "18.0.1-snapshot-1717799927411",
|
|
4
|
+
"tag": "snapshot",
|
|
5
5
|
"license": "EUPL-1.1",
|
|
6
6
|
"description": "eUI CLI app generator",
|
|
7
7
|
"bin": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@eui/tools": "6.16.
|
|
16
|
+
"@eui/tools": "6.16.23"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@eui/tools": "^6.0.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"homepage": "https://eui.ecdevops.eu",
|
|
28
28
|
"author": "ec.europa.eui@gmail.com",
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": "^18.
|
|
30
|
+
"node": "^18.19.1 || ^20.11.1 || >=22.0.0",
|
|
31
31
|
"yarn": ">=1.22.4 <2"
|
|
32
32
|
}
|
|
33
33
|
}
|