@eui/tools 4.15.10 → 4.15.14
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 +41 -0
- package/bin/eui-scripts.js +6 -2
- package/bin/scripts/build-package-sub.js +20 -0
- package/bin/scripts/version.js +12 -0
- package/global.test.js +3 -3
- package/package.json +12 -16
- package/sandbox.js +3 -2
- package/scripts/csdr/cli/app.js +30 -3
- package/scripts/csdr/cli/package.js +41 -5
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/angular-config.json +33 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/dependencies-composite.json +5 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/gitignore_TO_REPLACE +50 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/package.json +6 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/scripts.json +3 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app-routing.module.ts +21 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.html +26 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.ts +19 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.routes.ts +7 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts +15 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.html +7 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.ts +8 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.module.ts +17 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/shared/shared.module.ts +15 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/app-metadata.json +8 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/config/env-json-config.json +41 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/index.html +22 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/i18n/en.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/i18n/fr.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/lib/module.ts +11 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.lib.json +32 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tslint.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/angular.json +3 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote/dependencies-composite.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/dummy.scss +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/dummy.spec.ts +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/module.component.ts +62 -28
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/module.ts +33 -33
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/routing.module.ts +22 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/assets/i18n-compiled/en.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/assets/i18n-compiled/fr.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/config/global.ts +8 -5
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/index.html +1 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote/tsconfig.app.json +3 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/angular.json +90 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +64 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/package.json_TO_REPLACE +8 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.scss +3 -0
- package/scripts/csdr/cli/skeletons/package/{frontend-remote/src/app/dummy.spec.ts.TO_REPLACE → frontend-remote-eui10/src/app/dummy.spec.ts} +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +71 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +165 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/custom-route-serializer.ts +28 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/index.ts +42 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +51 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/assets/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/global.ts +31 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/index.ts +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/modules.ts +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.prod.ts +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +15 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/favicon.ico +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/index.html +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/main.ts +12 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/polyfills.ts +86 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/test.ts.TO_REPLACE +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.app.json +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.spec.json +18 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint-remote.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/webpack.extra.js +15 -0
- package/scripts/csdr/config/angular.js +213 -3
- package/scripts/csdr/config/global.js +16 -0
- package/scripts/csdr/init/resources/yarn-eui13.lock +15857 -0
- package/scripts/csdr/install/common.js +26 -8
- package/scripts/csdr/jira/jira-utils.js +168 -168
- package/scripts/csdr/jira/update.js +150 -150
- package/scripts/csdr/metadata/app-envs.js +34 -33
- package/scripts/csdr/metadata/app-history.js +62 -61
- package/scripts/csdr/metadata/common.js +44 -41
- package/scripts/csdr/metadata/package-history.js +0 -1
- package/scripts/csdr/release/app/release-app.js +3 -0
- package/scripts/csdr/release/package/release-package.js +4 -0
- package/scripts/csdr/sync/sync-utils.js +6 -2
- package/scripts/utils/build/package/angular.js +4 -4
- package/scripts/utils/build/package/build-package-utils.js +50 -1
- package/scripts/utils/build/package/element.js +3 -14
- package/scripts/utils/build/package/styles.js +100 -7
- package/scripts/utils/confluence-utils.js +126 -126
- package/scripts/utils/index.js +2 -2
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/favicon.ico +0 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/app.module.ts +52 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/core/reducers/index.ts +40 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/global.ts +4 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/index.ts +8 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/modules.ts +4 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.dev.ts +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.prod.ts +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.ts +21 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/favicon.ico +0 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/karma.conf.js +7 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/main.ts +21 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/polyfills.ts +86 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/tst.ts +33 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.app.json +19 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.spec.json +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tslint.json +17 -0
- package/scripts/utils/pre-build/injection/skeletons.js +6 -2
- package/scripts/utils/pre-build/projects.js +5 -1
- package/scripts/utils/tools.js +30 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote/webpack.extra.js +0 -7
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.15.
|
|
1
|
+
4.15.14
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
## 4.15.14 (2021-10-29)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* force skipLint and skipTest on element - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([51863587](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/51863587c54018fe60bb7b40416a4fb0d4bd2af2))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 4.15.13 (2021-10-28)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* add ng build for pkg build sub entry - cleanup - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([aff2489a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/aff2489a94cef1edd483aa6e28a40b8bef05e1d0))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 4.15.12 (2021-10-27)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* adapted and removed obsolete imports and dependencies - adapted node-sass after transfer to eui deps - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([4e486138](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/4e486138aedba1434942074aefa4a4cfe4500101))
|
|
25
|
+
* merge functionalities from eUI tools 5.x - eUI 13 features - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([0aa8a160](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0aa8a16064f637d3e699049081c39e2207e13737))
|
|
26
|
+
|
|
27
|
+
* * *
|
|
28
|
+
* * *
|
|
29
|
+
## 4.15.11 (2021-10-21)
|
|
30
|
+
|
|
31
|
+
##### Chores
|
|
32
|
+
|
|
33
|
+
* **other:**
|
|
34
|
+
* adapted for eui10 package and remote skeletons - EUI-2999 [EUI-2999](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-2999) ([e4f1dcaf](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e4f1dcafbad68c54a80acf77868904cd60ec29eb))
|
|
35
|
+
##### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* **other:**
|
|
38
|
+
* tests files in skeleton clashing with jest - EUI-2999 [EUI-2999](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-2999) ([b5b32b20](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b5b32b20b95af209b647c0e792bd14e32525eed0))
|
|
39
|
+
|
|
40
|
+
* * *
|
|
41
|
+
* * *
|
|
1
42
|
## 4.15.10 (2021-10-04)
|
|
2
43
|
|
|
3
44
|
##### Chores
|
package/bin/eui-scripts.js
CHANGED
|
@@ -9,6 +9,7 @@ const scriptIndex = args.findIndex(
|
|
|
9
9
|
x => x === 'clean-package' ||
|
|
10
10
|
x === 'clean-all' ||
|
|
11
11
|
x === 'build-package' ||
|
|
12
|
+
x === 'build-package-sub' ||
|
|
12
13
|
x === 'build-element' ||
|
|
13
14
|
x === 'build-deps' ||
|
|
14
15
|
x === 'build-all' ||
|
|
@@ -36,7 +37,8 @@ const scriptIndex = args.findIndex(
|
|
|
36
37
|
x === 'csdr-stats' ||
|
|
37
38
|
x === 'generate-app-metadata' ||
|
|
38
39
|
x === 'help' ||
|
|
39
|
-
x === 'inject-config-app'
|
|
40
|
+
x === 'inject-config-app' ||
|
|
41
|
+
x === 'version'
|
|
40
42
|
);
|
|
41
43
|
const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
|
|
42
44
|
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
|
|
@@ -45,6 +47,7 @@ switch (script) {
|
|
|
45
47
|
case 'clean-package':
|
|
46
48
|
case 'clean-all':
|
|
47
49
|
case 'build-package':
|
|
50
|
+
case 'build-package-sub':
|
|
48
51
|
case 'build-element':
|
|
49
52
|
case 'build-deps':
|
|
50
53
|
case 'build-all':
|
|
@@ -71,7 +74,8 @@ switch (script) {
|
|
|
71
74
|
case 'csdr-stats':
|
|
72
75
|
case 'generate-app-metadata':
|
|
73
76
|
case 'help':
|
|
74
|
-
case 'inject-config-app':
|
|
77
|
+
case 'inject-config-app':
|
|
78
|
+
case 'version': {
|
|
75
79
|
const result = spawn.sync(
|
|
76
80
|
'node',
|
|
77
81
|
nodeArgs
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const tools = require('../../scripts/utils/tools');
|
|
4
|
+
const buildPackageUtils = require('../../scripts/utils/build/package/build-package-utils');
|
|
5
|
+
const configUtils = require('../../scripts/csdr/config/config-utils');
|
|
6
|
+
|
|
7
|
+
Promise.resolve()
|
|
8
|
+
.then(() => {
|
|
9
|
+
const { subEntry } = tools.getArgs();
|
|
10
|
+
const pkg = configUtils.packages.getPackage();
|
|
11
|
+
return buildPackageUtils.buildSubEntry(pkg, subEntry);
|
|
12
|
+
})
|
|
13
|
+
.then(() => {
|
|
14
|
+
tools.logSuccess();
|
|
15
|
+
})
|
|
16
|
+
.catch((e) => {
|
|
17
|
+
tools.logError('ERROR found while building package');
|
|
18
|
+
console.error(e);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
})
|
package/global.test.js
CHANGED
|
@@ -3,7 +3,7 @@ describe('eUI tools - test imports', () => {
|
|
|
3
3
|
|
|
4
4
|
// utils
|
|
5
5
|
const changelogUtils = require('./scripts/utils/changelog-utils');
|
|
6
|
-
const confluenceUtils = require('./scripts/utils/confluence-utils');
|
|
6
|
+
// const confluenceUtils = require('./scripts/utils/confluence-utils');
|
|
7
7
|
const gitUtils = require('./scripts/utils/git-utils');
|
|
8
8
|
const mavenUtils = require('./scripts/utils/maven-utils');
|
|
9
9
|
const pipelineUtils = require('./scripts/utils/pipeline-utils');
|
|
@@ -97,8 +97,8 @@ describe('eUI tools - test imports', () => {
|
|
|
97
97
|
const csdrInstallLocalDev = require('./scripts/csdr/install/local-dev');
|
|
98
98
|
|
|
99
99
|
// csdr - jira
|
|
100
|
-
const csdrJiraUtils = require('./scripts/csdr/jira/jira-utils');
|
|
101
|
-
const csdrJiraUpdate = require('./scripts/csdr/jira/update');
|
|
100
|
+
// const csdrJiraUtils = require('./scripts/csdr/jira/jira-utils');
|
|
101
|
+
// const csdrJiraUpdate = require('./scripts/csdr/jira/update');
|
|
102
102
|
|
|
103
103
|
// csdr - metadata
|
|
104
104
|
const csdrMetadataAppEnvs = require('./scripts/csdr/metadata/app-envs');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/tools",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.14",
|
|
4
4
|
"tag": "latest",
|
|
5
5
|
"license": "EUPL-1.1",
|
|
6
6
|
"description": "eUI common tools and scripts",
|
|
@@ -22,29 +22,25 @@
|
|
|
22
22
|
"rimraf": "3.0.2",
|
|
23
23
|
"ncp": "2.0.0",
|
|
24
24
|
"confluence-api": "1.4.0",
|
|
25
|
-
"moment": "2.
|
|
26
|
-
"moment-timezone": "0.5.
|
|
27
|
-
"sanitize-html": "2.3.3",
|
|
25
|
+
"moment": "2.29.1",
|
|
26
|
+
"moment-timezone": "0.5.33",
|
|
28
27
|
"npm-run-all": "4.1.5",
|
|
29
28
|
"figures": "3.2.0",
|
|
30
|
-
"xml2js": "0.4.
|
|
29
|
+
"xml2js": "0.4.23",
|
|
31
30
|
"https-proxy-agent": "2.2.3",
|
|
32
|
-
"postcss": "7.0.18",
|
|
33
|
-
"postcss-cli": "6.1.3",
|
|
34
|
-
"autoprefixer": "9.6.1",
|
|
35
31
|
"jest": "26.6.3",
|
|
36
32
|
"supertest": "4.0.2",
|
|
37
|
-
"memfs": "3.
|
|
38
|
-
"json-server": "0.16.
|
|
39
|
-
"faker": "
|
|
40
|
-
"nodemon": "
|
|
33
|
+
"memfs": "3.2.4",
|
|
34
|
+
"json-server": "0.16.3",
|
|
35
|
+
"faker": "5.5.3",
|
|
36
|
+
"nodemon": "2.0.12",
|
|
41
37
|
"lowdb": "1.0.0",
|
|
42
38
|
"event-stream": "3.3.4",
|
|
43
|
-
"node-sass-tilde-importer": "1.0.2",
|
|
44
|
-
"axios": "0.21.1",
|
|
45
39
|
"empty-module": "0.0.2",
|
|
46
|
-
"pa11y-ci": "2.4.0",
|
|
47
40
|
"sendmail": "1.6.1",
|
|
48
|
-
"
|
|
41
|
+
"autoprefixer": "9.6.1",
|
|
42
|
+
"sass": "1.39.0",
|
|
43
|
+
"postcss": "7.0.36",
|
|
44
|
+
"cssnano": "4.1.11"
|
|
49
45
|
}
|
|
50
46
|
}
|
package/sandbox.js
CHANGED
|
@@ -596,7 +596,8 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
|
|
|
596
596
|
|
|
597
597
|
return Promise.resolve()
|
|
598
598
|
.then(() => {
|
|
599
|
-
const
|
|
600
|
-
|
|
599
|
+
const prjName = 'eui-showcase-ux';
|
|
600
|
+
const prj = configUtils.projects.getCsdrProject(prjName);
|
|
601
|
+
console.log(prj);
|
|
601
602
|
})
|
|
602
603
|
|
package/scripts/csdr/cli/app.js
CHANGED
|
@@ -14,12 +14,17 @@ const configUtils = require('../config/config-utils');
|
|
|
14
14
|
const TARGET_ROOT_PATH = path.join(process.cwd(), 'apps');
|
|
15
15
|
const APP_DEFAULT_SKELETON_PATH = path.join(__dirname, 'skeletons', 'app');
|
|
16
16
|
const APP_SHOWCASE_SKELETON_PATH = path.join(__dirname, 'skeletons', 'app-showcase');
|
|
17
|
+
const APP_SHOWCASE_SKELETON_EUI13_PATH = path.join(__dirname, 'skeletons', 'app-showcase-eui13');
|
|
17
18
|
|
|
18
19
|
const defaultConfig = {
|
|
19
20
|
appType: {
|
|
20
21
|
DEFAULT: 'default',
|
|
21
22
|
SHOWCASE: 'showcase'
|
|
22
23
|
},
|
|
24
|
+
appVersion: {
|
|
25
|
+
DEFAULT: 'eui10',
|
|
26
|
+
EUI13: 'eui13'
|
|
27
|
+
},
|
|
23
28
|
appName: 'my-app',
|
|
24
29
|
appScope: '@app'
|
|
25
30
|
}
|
|
@@ -44,6 +49,24 @@ const prompt = () => {
|
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
},
|
|
52
|
+
{
|
|
53
|
+
type: 'list',
|
|
54
|
+
name: 'appVersion',
|
|
55
|
+
message: 'Select eUI version target :',
|
|
56
|
+
choices: [
|
|
57
|
+
{ name: 'v10', value: defaultConfig.pkgFrontendVersion.DEFAULT },
|
|
58
|
+
{ name: 'v13', value: defaultConfig.pkgFrontendVersion.EUI13 },
|
|
59
|
+
],
|
|
60
|
+
default: defaultConfig.appType.DEFAULT,
|
|
61
|
+
when: function (answers) {
|
|
62
|
+
return (answers.appType === defaultConfig.appType.SHOWCASE);
|
|
63
|
+
},
|
|
64
|
+
validate: function (value) {
|
|
65
|
+
if (value.length) {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
47
70
|
{
|
|
48
71
|
name: 'appName',
|
|
49
72
|
type: 'input',
|
|
@@ -66,7 +89,7 @@ const prompt = () => {
|
|
|
66
89
|
|
|
67
90
|
|
|
68
91
|
|
|
69
|
-
const build = (name, scope, appType, targetPath) => {
|
|
92
|
+
const build = (name, scope, appType, targetPath, appVersion) => {
|
|
70
93
|
tools.logTitle('Generating application');
|
|
71
94
|
|
|
72
95
|
return Promise.resolve()
|
|
@@ -81,7 +104,11 @@ const build = (name, scope, appType, targetPath) => {
|
|
|
81
104
|
return tools.copydir(APP_DEFAULT_SKELETON_PATH, targetPath, true);
|
|
82
105
|
|
|
83
106
|
} else if (appType === defaultConfig.appType.SHOWCASE) {
|
|
84
|
-
|
|
107
|
+
if (appVersion === defaultConfig.appVersion.EUI13) {
|
|
108
|
+
return tools.copydir(APP_SHOWCASE_SKELETON_EUI13_PATH, targetPath, true);
|
|
109
|
+
} else {
|
|
110
|
+
return tools.copydir(APP_SHOWCASE_SKELETON_PATH, targetPath, true);
|
|
111
|
+
}
|
|
85
112
|
}
|
|
86
113
|
})
|
|
87
114
|
|
|
@@ -157,7 +184,7 @@ module.exports.generate = () => {
|
|
|
157
184
|
|
|
158
185
|
const targetPath = path.join(TARGET_ROOT_PATH, answers.appName);
|
|
159
186
|
|
|
160
|
-
return build(answers.appName, answers.appScope, answers.appType, targetPath);
|
|
187
|
+
return build(answers.appName, answers.appScope, answers.appType, targetPath, answers.appVersion);
|
|
161
188
|
})
|
|
162
189
|
|
|
163
190
|
.catch((e) => {
|
|
@@ -13,7 +13,9 @@ const configUtils = require('../config/config-utils');
|
|
|
13
13
|
const TARGET_ROOT_PATH = path.join(process.cwd(), 'packages');
|
|
14
14
|
const SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package');
|
|
15
15
|
const FRONTEND_SKELETON_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend');
|
|
16
|
+
const FRONTEND_SKELETON_EUI10_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-eui10');
|
|
16
17
|
const FRONTEND_SKELETON_REMOTE_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote');
|
|
18
|
+
const FRONTEND_SKELETON_REMOTE_EUI10_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-remote-eui10');
|
|
17
19
|
const FRONTEND_OPTION_ROUTE_PATH = path.join(SKELETONS_ROOT_PATH, 'frontend-option-route');
|
|
18
20
|
const BACKEND_SKELETON_PATH = path.join(SKELETONS_ROOT_PATH, 'backend');
|
|
19
21
|
|
|
@@ -28,6 +30,10 @@ const defaultConfig = {
|
|
|
28
30
|
DEFAULT: 'default',
|
|
29
31
|
REMOTE: 'remote'
|
|
30
32
|
},
|
|
33
|
+
pkgFrontendVersion: {
|
|
34
|
+
DEFAULT: 'eui7',
|
|
35
|
+
EUI10: 'eui10'
|
|
36
|
+
},
|
|
31
37
|
isRouteModule: true,
|
|
32
38
|
pkgGroupId: 'eu.europa.ec.cc'
|
|
33
39
|
};
|
|
@@ -76,6 +82,24 @@ const prompt = () => {
|
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
},
|
|
85
|
+
{
|
|
86
|
+
type: 'list',
|
|
87
|
+
name: 'pkgFrontendVersion',
|
|
88
|
+
message: 'Select eUI version target :',
|
|
89
|
+
choices: [
|
|
90
|
+
{ name: 'v7', value: defaultConfig.pkgFrontendVersion.DEFAULT },
|
|
91
|
+
{ name: 'v10', value: defaultConfig.pkgFrontendVersion.EUI10 },
|
|
92
|
+
],
|
|
93
|
+
default: defaultConfig.pkgFrontendType.DEFAULT,
|
|
94
|
+
when: function (answers) {
|
|
95
|
+
return (answers.pkgType === defaultConfig.pkgType.FRONTEND);
|
|
96
|
+
},
|
|
97
|
+
validate: function (value) {
|
|
98
|
+
if (value.length) {
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
79
103
|
{
|
|
80
104
|
name: 'pkgScope',
|
|
81
105
|
type: 'input',
|
|
@@ -110,14 +134,18 @@ const prompt = () => {
|
|
|
110
134
|
|
|
111
135
|
|
|
112
136
|
|
|
113
|
-
const buildFrontend = (name, scope, frontendType, isRouteModule) => {
|
|
137
|
+
const buildFrontend = (name, scope, frontendType, frontendVersion, isRouteModule) => {
|
|
114
138
|
tools.logTitle('Generating package');
|
|
115
139
|
|
|
116
140
|
let fullName = scope.substr(1) + '-' + name;
|
|
117
141
|
if (frontendType === defaultConfig.pkgFrontendType.DEFAULT) {
|
|
118
142
|
fullName += '-ui';
|
|
119
143
|
} else if (frontendType === defaultConfig.pkgFrontendType.REMOTE) {
|
|
120
|
-
|
|
144
|
+
if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI10) {
|
|
145
|
+
fullName += '-eui10-remote-el-ui';
|
|
146
|
+
} else {
|
|
147
|
+
fullName += '-remote-el-ui';
|
|
148
|
+
}
|
|
121
149
|
}
|
|
122
150
|
|
|
123
151
|
const targetPath = path.join(TARGET_ROOT_PATH, fullName);
|
|
@@ -143,9 +171,17 @@ const buildFrontend = (name, scope, frontendType, isRouteModule) => {
|
|
|
143
171
|
.then(() => {
|
|
144
172
|
tools.logInfo('Copying skeleton to target');
|
|
145
173
|
if (frontendType === defaultConfig.pkgFrontendType.REMOTE) {
|
|
146
|
-
|
|
174
|
+
if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI10) {
|
|
175
|
+
return tools.copydir(FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
|
|
176
|
+
} else {
|
|
177
|
+
return tools.copydir(FRONTEND_SKELETON_REMOTE_PATH, targetPath, true);
|
|
178
|
+
}
|
|
147
179
|
} else {
|
|
148
|
-
|
|
180
|
+
if (frontendVersion === defaultConfig.pkgFrontendVersion.EUI10) {
|
|
181
|
+
return tools.copydir(FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
|
|
182
|
+
} else {
|
|
183
|
+
return tools.copydir(FRONTEND_SKELETON_PATH, targetPath, true);
|
|
184
|
+
}
|
|
149
185
|
}
|
|
150
186
|
})
|
|
151
187
|
|
|
@@ -302,7 +338,7 @@ module.exports.generate = () => {
|
|
|
302
338
|
console.log(answers);
|
|
303
339
|
|
|
304
340
|
if (answers.pkgType === defaultConfig.pkgType.FRONTEND) {
|
|
305
|
-
return buildFrontend(answers.pkgName, answers.pkgScope, answers.pkgFrontendType, answers.isRouteModule);
|
|
341
|
+
return buildFrontend(answers.pkgName, answers.pkgScope, answers.pkgFrontendType, answers.pkgFrontendVersion, answers.isRouteModule);
|
|
306
342
|
|
|
307
343
|
} else if (answers.pkgType === defaultConfig.pkgType.BACKEND) {
|
|
308
344
|
return buildBackend(answers.pkgName, answers.pkgScope, answers.pkgGroupId);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"build": {
|
|
3
|
+
"assets": [
|
|
4
|
+
"apps/@app.name@/src/_generated/favicon.ico",
|
|
5
|
+
"apps/@app.name@/src/assets",
|
|
6
|
+
{
|
|
7
|
+
"glob": "**/*",
|
|
8
|
+
"input": "node_modules/@eui/core/assets/",
|
|
9
|
+
"output": "./assets"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"glob": "**/*",
|
|
13
|
+
"input": "node_modules/@eui/styles-base/src/assets/",
|
|
14
|
+
"output": "./assets"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"styles": [
|
|
18
|
+
"node_modules/prismjs/plugins/line-numbers/prism-line-numbers.css",
|
|
19
|
+
"packages/eui/packages/styles/src/styles/eui-showcase-dev-only.scss",
|
|
20
|
+
"packages/eui/packages/styles/src/styles/eui-next-dev-only.scss"
|
|
21
|
+
],
|
|
22
|
+
"stylesBuild": [
|
|
23
|
+
"node_modules/prismjs/plugins/line-numbers/prism-line-numbers.css",
|
|
24
|
+
"node_modules/@eui/styles/dist/styles/eui-showcase.css",
|
|
25
|
+
"node_modules/@eui/styles/dist/styles/eui-next.css"
|
|
26
|
+
],
|
|
27
|
+
"scripts": [
|
|
28
|
+
"node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js",
|
|
29
|
+
"node_modules/marked/lib/marked.js",
|
|
30
|
+
"node_modules/prismjs/prism.js"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
+
|
|
3
|
+
# compiled output
|
|
4
|
+
**/node_modules
|
|
5
|
+
**/target
|
|
6
|
+
**/build
|
|
7
|
+
**/dist
|
|
8
|
+
**/out-tsc
|
|
9
|
+
**/tmp
|
|
10
|
+
**/tests/reports
|
|
11
|
+
# /src/assets/i18n-compiled/*
|
|
12
|
+
# /src/assets/openid-login-config*
|
|
13
|
+
|
|
14
|
+
# IDEs and editors
|
|
15
|
+
/.idea
|
|
16
|
+
.project
|
|
17
|
+
.classpath
|
|
18
|
+
.c9/
|
|
19
|
+
*.launch
|
|
20
|
+
.settings/
|
|
21
|
+
*.sublime-workspace
|
|
22
|
+
|
|
23
|
+
# IDE - VSCode
|
|
24
|
+
.vscode/*
|
|
25
|
+
!.vscode/settings.json
|
|
26
|
+
!.vscode/tasks.json
|
|
27
|
+
!.vscode/launch.json
|
|
28
|
+
!.vscode/extensions.json
|
|
29
|
+
|
|
30
|
+
# misc
|
|
31
|
+
/.sass-cache
|
|
32
|
+
/connect.lock
|
|
33
|
+
/coverage
|
|
34
|
+
/libpeerconnection.log
|
|
35
|
+
npm-debug.log
|
|
36
|
+
testem.log
|
|
37
|
+
/typings
|
|
38
|
+
yarn-error.log
|
|
39
|
+
|
|
40
|
+
# e2e
|
|
41
|
+
/e2e/*.js
|
|
42
|
+
/e2e/*.map
|
|
43
|
+
|
|
44
|
+
# System Files
|
|
45
|
+
.DS_Store
|
|
46
|
+
Thumbs.db
|
|
47
|
+
|
|
48
|
+
/*.iml
|
|
49
|
+
|
|
50
|
+
/src/_generated
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { RouterModule, ExtraOptions } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
import { routes } from './app.routes';
|
|
5
|
+
|
|
6
|
+
const routerOptions: ExtraOptions = {
|
|
7
|
+
anchorScrolling: 'enabled',
|
|
8
|
+
scrollPositionRestoration: 'enabled',
|
|
9
|
+
scrollOffset: [0, 65],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
imports: [
|
|
14
|
+
RouterModule.forRoot(routes, routerOptions),
|
|
15
|
+
],
|
|
16
|
+
exports: [
|
|
17
|
+
RouterModule,
|
|
18
|
+
],
|
|
19
|
+
})
|
|
20
|
+
export class AppRoutingModule {
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<eui-app [isSidebarOpen]="true" isSidebarHidden="false">
|
|
2
|
+
<eui-app-toolbar>
|
|
3
|
+
<eui-toolbar>
|
|
4
|
+
<eui-toolbar-logo></eui-toolbar-logo>
|
|
5
|
+
<eui-toolbar-app appName="eUI"></eui-toolbar-app>
|
|
6
|
+
<eui-toolbar-items euiPositionRight>
|
|
7
|
+
<eui-toolbar-item-user-profile>
|
|
8
|
+
<eui-user-profile-menu>
|
|
9
|
+
<eui-user-profile-menu-item>
|
|
10
|
+
<eui-icon iconClass="eui-icon-person-thin"></eui-icon> My profile information
|
|
11
|
+
</eui-user-profile-menu-item>
|
|
12
|
+
<eui-user-profile-menu-item>
|
|
13
|
+
<eui-icon iconClass="eui-icon-logout-thin"></eui-icon> Sign out
|
|
14
|
+
</eui-user-profile-menu-item>
|
|
15
|
+
</eui-user-profile-menu>
|
|
16
|
+
</eui-toolbar-item-user-profile>
|
|
17
|
+
</eui-toolbar-items>
|
|
18
|
+
</eui-toolbar>
|
|
19
|
+
</eui-app-toolbar>
|
|
20
|
+
|
|
21
|
+
<eui-app-sidebar>
|
|
22
|
+
<eui-app-sidebar-body>
|
|
23
|
+
<eui-app-sidebar-menu [items]="sidebarItems" [hasIcons]="true" [hasTooltip]="false"></eui-app-sidebar-menu>
|
|
24
|
+
</eui-app-sidebar-body>
|
|
25
|
+
</eui-app-sidebar>
|
|
26
|
+
</eui-app>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { I18nService } from '@eui/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
/* tslint:disable-next-line */
|
|
6
|
+
selector: 'app-root',
|
|
7
|
+
templateUrl: './app.component.html',
|
|
8
|
+
})
|
|
9
|
+
export class AppComponent {
|
|
10
|
+
sidebarItems = [
|
|
11
|
+
{ label: 'Home', url: '/home', iconClass: 'eui-icon-home' },
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
constructor(
|
|
15
|
+
protected i18nService: I18nService,
|
|
16
|
+
) {
|
|
17
|
+
this.i18nService.init();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
|
|
3
|
+
export const routes: Routes = [
|
|
4
|
+
{ path: '', redirectTo: 'home', pathMatch: 'full' },
|
|
5
|
+
{ path: 'index.html', redirectTo: 'home', pathMatch: 'full' },
|
|
6
|
+
{ path: 'home', loadChildren: () => import('./features/_home/home.module').then(m => m.Module) },
|
|
7
|
+
];
|
package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
import { HomeComponent } from './home.component';
|
|
5
|
+
|
|
6
|
+
const routes: Routes = [
|
|
7
|
+
{ path: '', component: HomeComponent },
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [
|
|
12
|
+
RouterModule.forChild(routes),
|
|
13
|
+
],
|
|
14
|
+
})
|
|
15
|
+
export class HomeRoutingModule {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { SharedModule } from '../shared/shared.module';
|
|
4
|
+
|
|
5
|
+
import { HomeRoutingModule } from './home-routing.module';
|
|
6
|
+
import { HomeComponent } from './home.component';
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
imports: [
|
|
10
|
+
HomeRoutingModule,
|
|
11
|
+
SharedModule,
|
|
12
|
+
],
|
|
13
|
+
declarations: [
|
|
14
|
+
HomeComponent,
|
|
15
|
+
],
|
|
16
|
+
})
|
|
17
|
+
export class Module {}
|