@eui/cli 21.0.0-next.5 → 21.0.0-next.50
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/bin/eui-cli.js +0 -7
- package/bin/scripts/inject-config-app.js +12 -0
- package/lib/app-utils/build.js +8 -52
- package/lib/app-utils/common.js +43 -0
- package/lib/app-utils/serve.js +6 -4
- package/lib/skeletons/_angular/base/angular.json +16 -0
- package/lib/skeletons/_angular/base/eslint.config.js +43 -0
- package/lib/skeletons/_angular/base/package.json +5 -7
- package/lib/skeletons/_angular/base/src/app/app-starter.service.spec.ts +9 -6
- package/lib/skeletons/_angular/base/src/app/app.component.html +3 -3
- package/lib/skeletons/_angular/base/src/app/app.component.spec.ts +14 -11
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +5 -3
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +2 -4
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +2 -9
- package/lib/skeletons/_angular/base/src/dummy.spec.ts +2 -0
- package/lib/skeletons/_angular/base/src/tsconfig.app.json +3 -0
- package/lib/skeletons/_angular/base/tsconfig.json +28 -24
- package/lib/skeletons/_angular/base-mobile/package.json +3 -3
- package/lib/skeletons/_angular/options/ecl-ec/angular.json +7 -29
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.html +101 -155
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +4 -3
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.ts +5 -3
- package/lib/skeletons/_angular/options/ecl-eu/angular.json +7 -29
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.html +43 -68
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +2 -3
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.ts +5 -3
- package/lib/skeletons/_angular/options/pnpm/package.json +27 -29
- package/package.json +1 -1
- package/lib/app-utils/projects.js +0 -41
- package/lib/skeletons/_angular/base/src/.eslintrc.json +0 -121
- package/lib/skeletons/_angular/base/src/karma.conf.js +0 -47
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.50",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"ng": "ng",
|
|
@@ -12,27 +12,25 @@
|
|
|
12
12
|
"build": "eui-cli build-app",
|
|
13
13
|
"build-dev": "eui-cli build-app --configuration=development --configEnvTarget=dev",
|
|
14
14
|
"build-prod": "eui-cli build-app --configuration=production-optimized --configEnvTarget=prod --skipLint --skipTest",
|
|
15
|
-
"app:inject-config": "eui-cli inject-config-app"
|
|
16
|
-
"generate-changelog": "eui-cli generate-changelog",
|
|
17
|
-
"generate-sprite": "eui-cli generate-sprite"
|
|
15
|
+
"app:inject-config": "eui-cli inject-config-app"
|
|
18
16
|
},
|
|
19
17
|
"private": true,
|
|
20
18
|
"dependencies": {
|
|
21
|
-
"@angular/animations": "21.0.
|
|
22
|
-
"@angular/common": "21.0.
|
|
23
|
-
"@angular/compiler": "21.0.
|
|
24
|
-
"@angular/core": "21.0.
|
|
25
|
-
"@angular/forms": "21.0.
|
|
26
|
-
"@angular/platform-browser": "21.0.
|
|
27
|
-
"@angular/platform-browser-dynamic": "21.0.
|
|
28
|
-
"@angular/router": "21.0.
|
|
29
|
-
"@angular/elements": "21.0.
|
|
30
|
-
"@angular/language-service": "21.0.
|
|
31
|
-
"@angular/service-worker": "21.0.
|
|
32
|
-
"@angular/cdk": "21.0.
|
|
33
|
-
"@angular/material": "21.0.
|
|
34
|
-
"@angular/material-moment-adapter": "21.0.
|
|
35
|
-
"@angular-devkit/build-angular": "21.0.
|
|
19
|
+
"@angular/animations": "21.0.1",
|
|
20
|
+
"@angular/common": "21.0.1",
|
|
21
|
+
"@angular/compiler": "21.0.1",
|
|
22
|
+
"@angular/core": "21.0.1",
|
|
23
|
+
"@angular/forms": "21.0.1",
|
|
24
|
+
"@angular/platform-browser": "21.0.1",
|
|
25
|
+
"@angular/platform-browser-dynamic": "21.0.1",
|
|
26
|
+
"@angular/router": "21.0.1",
|
|
27
|
+
"@angular/elements": "21.0.1",
|
|
28
|
+
"@angular/language-service": "21.0.1",
|
|
29
|
+
"@angular/service-worker": "21.0.1",
|
|
30
|
+
"@angular/cdk": "21.0.1",
|
|
31
|
+
"@angular/material": "21.0.1",
|
|
32
|
+
"@angular/material-moment-adapter": "21.0.1",
|
|
33
|
+
"@angular-devkit/build-angular": "21.0.1",
|
|
36
34
|
"rxjs": "7.8.2",
|
|
37
35
|
"tslib": "2.8.1",
|
|
38
36
|
"zone.js": "0.15.1",
|
|
@@ -48,18 +46,18 @@
|
|
|
48
46
|
"pikaday": "1.8.2",
|
|
49
47
|
"lodash-es": "4.17.21",
|
|
50
48
|
"localforage": "1.10.0",
|
|
51
|
-
"@eui/base": "21.0.0-next.
|
|
52
|
-
"@eui/core": "21.0.0-next.
|
|
53
|
-
"@eui/styles": "21.0.0-next.
|
|
54
|
-
"@eui/components": "21.0.0-next.
|
|
55
|
-
"@eui/ecl": "21.0.0-next.
|
|
49
|
+
"@eui/base": "21.0.0-next.50",
|
|
50
|
+
"@eui/core": "21.0.0-next.50",
|
|
51
|
+
"@eui/styles": "21.0.0-next.50",
|
|
52
|
+
"@eui/components": "21.0.0-next.50",
|
|
53
|
+
"@eui/ecl": "21.0.0-next.50"
|
|
56
54
|
},
|
|
57
55
|
"devDependencies": {
|
|
58
|
-
"@angular/build": "21.0.
|
|
59
|
-
"@angular/compiler-cli": "21.0.
|
|
60
|
-
"@angular/cli": "21.0.
|
|
61
|
-
"@eui/cli": "21.0.0-next.
|
|
62
|
-
"ng-packagr": "21.0.0
|
|
56
|
+
"@angular/build": "21.0.1",
|
|
57
|
+
"@angular/compiler-cli": "21.0.1",
|
|
58
|
+
"@angular/cli": "21.0.1",
|
|
59
|
+
"@eui/cli": "21.0.0-next.50",
|
|
60
|
+
"ng-packagr": "21.0.0",
|
|
63
61
|
"typescript": "5.9.2",
|
|
64
62
|
"npm-run-all": "4.1.5",
|
|
65
63
|
"json-server": "1.0.0-beta.3",
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// TODO v21 - for openid config injection extracted from eUI tools
|
|
2
|
-
|
|
3
|
-
// 'use strict';
|
|
4
|
-
|
|
5
|
-
// const path = require('path');
|
|
6
|
-
|
|
7
|
-
// const tools = require('../tools');
|
|
8
|
-
|
|
9
|
-
// const injectionUtils = require('./injection/injection-utils');
|
|
10
|
-
// const translationUtils = require('./translations/translation-utils');
|
|
11
|
-
|
|
12
|
-
// module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
13
|
-
// return Promise.resolve()
|
|
14
|
-
// .then(() => {
|
|
15
|
-
// tools.logTitle('PRE-BUILD : preparing the project...');
|
|
16
|
-
// })
|
|
17
|
-
|
|
18
|
-
// // openId files replacement and app config injection
|
|
19
|
-
// .then(() => {
|
|
20
|
-
// return injectionUtils.openid.injectConfig(project, configEnvTarget);
|
|
21
|
-
// })
|
|
22
|
-
|
|
23
|
-
// .catch((e) => {
|
|
24
|
-
// throw e;
|
|
25
|
-
// })
|
|
26
|
-
// };
|
|
27
|
-
|
|
28
|
-
// module.exports.processSvgAssets = (project) => {
|
|
29
|
-
// return Promise.resolve()
|
|
30
|
-
// .then(() => {
|
|
31
|
-
// const svgsInPath = path.join(project.paths.rootPath, 'src', 'assets', 'svg');
|
|
32
|
-
// const svgsSpritePath = path.join(svgsInPath, sprites);
|
|
33
|
-
// const svgsSpriteFile = 'sprite.svg';
|
|
34
|
-
|
|
35
|
-
// return svgUtils.generateSvgsSprite(svgsInPath, svgsSpritePath, svgsSpriteFile);
|
|
36
|
-
// })
|
|
37
|
-
|
|
38
|
-
// .catch((e) => {
|
|
39
|
-
// throw e;
|
|
40
|
-
// });
|
|
41
|
-
// };
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"ignorePatterns": [
|
|
4
|
-
"**/node_modules/**",
|
|
5
|
-
"**/dist/**",
|
|
6
|
-
"**/coverage/**",
|
|
7
|
-
"**/e2e/**",
|
|
8
|
-
"**/test/**",
|
|
9
|
-
"**/testing/**"
|
|
10
|
-
],
|
|
11
|
-
"overrides": [
|
|
12
|
-
{
|
|
13
|
-
"files": [
|
|
14
|
-
"*.ts"
|
|
15
|
-
],
|
|
16
|
-
"parserOptions": {
|
|
17
|
-
"project": [
|
|
18
|
-
"tsconfig.json",
|
|
19
|
-
"e2e/tsconfig.json"
|
|
20
|
-
],
|
|
21
|
-
"createDefaultProgram": true
|
|
22
|
-
},
|
|
23
|
-
"extends": [
|
|
24
|
-
"eslint:recommended",
|
|
25
|
-
"plugin:@typescript-eslint/recommended",
|
|
26
|
-
"plugin:@angular-eslint/recommended",
|
|
27
|
-
"plugin:@angular-eslint/template/process-inline-templates"
|
|
28
|
-
],
|
|
29
|
-
"rules": {
|
|
30
|
-
"@angular-eslint/component-selector": [
|
|
31
|
-
"error",
|
|
32
|
-
{
|
|
33
|
-
"type": "element",
|
|
34
|
-
"prefix": ["app", "app"],
|
|
35
|
-
"style": "kebab-case"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"@angular-eslint/directive-selector": [
|
|
39
|
-
"error",
|
|
40
|
-
{
|
|
41
|
-
"type": "attribute",
|
|
42
|
-
"prefix": ["app", "eui"],
|
|
43
|
-
"style": "camelCase"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
47
|
-
"@typescript-eslint/no-empty-object-type": "error",
|
|
48
|
-
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
49
|
-
"@typescript-eslint/consistent-type-definitions": "off",
|
|
50
|
-
"@typescript-eslint/dot-notation": "off",
|
|
51
|
-
"@typescript-eslint/explicit-member-accessibility": [
|
|
52
|
-
"off",
|
|
53
|
-
{
|
|
54
|
-
"accessibility": "explicit"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"@typescript-eslint/no-require-imports": "error",
|
|
58
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
59
|
-
"@typescript-eslint/no-var-requires": "error",
|
|
60
|
-
"@typescript-eslint/require-await": "error",
|
|
61
|
-
"brace-style": [
|
|
62
|
-
"error",
|
|
63
|
-
"1tbs"
|
|
64
|
-
],
|
|
65
|
-
"id-blacklist": "off",
|
|
66
|
-
"id-match": "off",
|
|
67
|
-
"no-duplicate-case": "error",
|
|
68
|
-
"no-duplicate-imports": "off",
|
|
69
|
-
"no-invalid-this": "error",
|
|
70
|
-
"no-multiple-empty-lines": [
|
|
71
|
-
"error",
|
|
72
|
-
{
|
|
73
|
-
"max": 1
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"no-new-func": "error",
|
|
77
|
-
"no-redeclare": "off",
|
|
78
|
-
"@typescript-eslint/no-redeclare": [
|
|
79
|
-
"error"
|
|
80
|
-
],
|
|
81
|
-
"no-template-curly-in-string": "error",
|
|
82
|
-
"no-underscore-dangle": "off",
|
|
83
|
-
"@typescript-eslint/naming-convention": [
|
|
84
|
-
"error",
|
|
85
|
-
{
|
|
86
|
-
"selector": "enum",
|
|
87
|
-
"format": [
|
|
88
|
-
"PascalCase",
|
|
89
|
-
"UPPER_CASE"
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"@typescript-eslint/member-ordering": [
|
|
94
|
-
"error",
|
|
95
|
-
{
|
|
96
|
-
"default": [
|
|
97
|
-
"public-static-field",
|
|
98
|
-
"public-instance-field",
|
|
99
|
-
"private-static-field",
|
|
100
|
-
"private-instance-field",
|
|
101
|
-
"public-constructor",
|
|
102
|
-
"private-constructor",
|
|
103
|
-
"public-instance-method",
|
|
104
|
-
"protected-instance-method",
|
|
105
|
-
"private-instance-method"
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"files": [
|
|
113
|
-
"*.html"
|
|
114
|
-
],
|
|
115
|
-
"extends": [
|
|
116
|
-
"plugin:@angular-eslint/template/recommended"
|
|
117
|
-
],
|
|
118
|
-
"rules": {}
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
function get(config) {
|
|
2
|
-
|
|
3
|
-
return {
|
|
4
|
-
basePath: '',
|
|
5
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
6
|
-
plugins: [
|
|
7
|
-
require('karma-jasmine'),
|
|
8
|
-
require('karma-chrome-launcher'),
|
|
9
|
-
require('karma-jasmine-html-reporter'),
|
|
10
|
-
require('karma-coverage-istanbul-reporter'),
|
|
11
|
-
require('karma-coverage'),
|
|
12
|
-
require('karma-sourcemap-loader'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client:{
|
|
16
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
17
|
-
},
|
|
18
|
-
coverageIstanbulReporter: {
|
|
19
|
-
reports: [ 'html', 'lcovonly' ],
|
|
20
|
-
fixWebpackSourcePaths: true
|
|
21
|
-
},
|
|
22
|
-
angularCli: {
|
|
23
|
-
environment: 'dev'
|
|
24
|
-
},
|
|
25
|
-
reporters: ['progress', 'kjhtml'],
|
|
26
|
-
port: 9876,
|
|
27
|
-
colors: true,
|
|
28
|
-
logLevel: config.LOG_INFO,
|
|
29
|
-
autoWatch: true,
|
|
30
|
-
browsers: ['ChromeHeadlessCustom'],
|
|
31
|
-
customLaunchers: {
|
|
32
|
-
ChromeHeadlessCustom: {
|
|
33
|
-
base: 'ChromeHeadless',
|
|
34
|
-
flags: [
|
|
35
|
-
'--no-sandbox',
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
singleRun: false
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
module.exports = function (config) {
|
|
44
|
-
config.set(
|
|
45
|
-
get(config)
|
|
46
|
-
);
|
|
47
|
-
}
|