@eui/tools 6.2.36 → 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.
@@ -1 +1 @@
1
- 6.2.36
1
+ 6.2.38
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
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
+ * * *
10
+ ## 6.2.37 (2022-11-21)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * csdr cli add eslint config to new v15 frontend pkg - force cli analytics - MWP-9039 [MWP-9039](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9039) ([7d0c1563](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/7d0c15636228c1c07fd06a31981d94859bca94da))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.2.36 (2022-11-18)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.36",
3
+ "version": "6.2.38",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -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);
@@ -216,6 +220,15 @@ const generateDefault = ({fullName, targetPath, rootPackagePath, pkg, args = con
216
220
  }
217
221
  })
218
222
 
223
+ .then(() => {
224
+ if (
225
+ args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.DEFAULT &&
226
+ args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15
227
+ ) {
228
+ return tools.remove(path.join(targetPath, 'tslint.json'));
229
+ }
230
+ })
231
+
219
232
  .then(() => {
220
233
  tools.logSuccess();
221
234
  })
@@ -64,7 +64,10 @@ module.exports.prompt = () => {
64
64
  ],
65
65
  default: constants.DEFAULT_CONFIG.pkgFrontendType,
66
66
  when: function (answers) {
67
- return (answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND);
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',
@@ -0,0 +1,3 @@
1
+ {
2
+ "@eui/deps-base": "^13.0.0"
3
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "extends": "../../.eslintrc.json",
3
+ "ignorePatterns": [
4
+ "!**/*",
5
+ "**/*.d.ts",
6
+ "dist"
7
+ ],
8
+ "overrides": [
9
+ {
10
+ "files": [
11
+ "*.ts"
12
+ ],
13
+ "parserOptions": {
14
+ "createDefaultProgram": true
15
+ },
16
+ "rules": {
17
+ "@angular-eslint/component-selector": [
18
+ "error",
19
+ {
20
+ "type": "element",
21
+ "prefix": "@module.scope.string@",
22
+ "style": "kebab-case"
23
+ }
24
+ ],
25
+ "@angular-eslint/directive-selector": [
26
+ "error",
27
+ {
28
+ "type": "attribute",
29
+ "prefix": "@module.scope.string@",
30
+ "style": "camelCase"
31
+ }
32
+ ],
33
+ "@typescript-eslint/ban-ts-comment": "off",
34
+ "@typescript-eslint/ban-types": "error",
35
+ "@typescript-eslint/consistent-type-definitions": "off",
36
+ "@typescript-eslint/dot-notation": "off",
37
+ "@typescript-eslint/explicit-member-accessibility": [
38
+ "off",
39
+ {
40
+ "accessibility": "explicit"
41
+ }
42
+ ],
43
+ "@typescript-eslint/no-inferrable-types": "off",
44
+ "@typescript-eslint/no-unused-vars": "off",
45
+ "@typescript-eslint/no-var-requires": "error",
46
+ "@typescript-eslint/require-await": "error",
47
+ "id-blacklist": "off",
48
+ "id-match": "off",
49
+ "max-len": [
50
+ "error",
51
+ {
52
+ "code": 160
53
+ }
54
+ ],
55
+ "no-duplicate-case": "error",
56
+ "no-duplicate-imports": "off",
57
+ "no-invalid-this": "error",
58
+ "no-multiple-empty-lines": [
59
+ "error",
60
+ {
61
+ "max": 1
62
+ }
63
+ ],
64
+ "no-new-func": "error",
65
+ "no-template-curly-in-string": "error",
66
+ "no-underscore-dangle": "off",
67
+ "no-var": "off",
68
+ "prefer-const": "off",
69
+ "comma-dangle": "off"
70
+ }
71
+ },
72
+ {
73
+ "files": [
74
+ "*.html"
75
+ ],
76
+ "rules": {}
77
+ }
78
+ ]
79
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "extends": "../../tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/lib",
5
+ "target": "ES2022",
6
+ "module": "ES2022",
7
+ "moduleResolution": "node",
8
+ "declaration": true,
9
+ "sourceMap": true,
10
+ "inlineSources": true,
11
+ "emitDecoratorMetadata": true,
12
+ "experimentalDecorators": true,
13
+ "importHelpers": true,
14
+ "types": [],
15
+ "lib": [
16
+ "ES2022",
17
+ "dom"
18
+ ]
19
+ },
20
+ "angularCompilerOptions": {
21
+ "annotateForClosureCompiler": true,
22
+ "skipTemplateCodegen": true,
23
+ "strictMetadataEmit": true,
24
+ "fullTemplateTypeCheck": true,
25
+ "strictInjectionParameters": true,
26
+ "enableResourceInlining": true
27
+ },
28
+ "exclude": [
29
+ "src/test.ts",
30
+ "**/*.spec.ts"
31
+ ]
32
+ }
@@ -71,7 +71,7 @@ export class ModuleComponent implements OnInit, OnDestroy {
71
71
  try {
72
72
  this.elementSetupService.init()
73
73
  .pipe(take(1))
74
- .subscribe((loadStatus: { success: boolean, error?: string }) => {
74
+ .subscribe((loadStatus: { success: boolean; error?: string }) => {
75
75
  if (!loadStatus.success) {
76
76
  this.setStatus(ElementStatus.Error);
77
77
  console.error(`[ELEMENT: ${this.config.global.elementName}] `, loadStatus.error);
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import { InjectionToken } from '@angular/core';
2
3
  import { ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store';
3
4
  import * as fromRouter from '@ngrx/router-store';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  /**
2
3
  * This file includes polyfills needed by Angular and is loaded before the app.
3
4
  * You can add your own extra polyfills to this file.
@@ -216,22 +216,29 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
216
216
  if (project.csdrFullSkeleton) {
217
217
  if (euiVersion === '13.x') {
218
218
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV13);
219
+ tools.logInfo(`----using angularProjectDefFullSkeletonV13`);
219
220
  } else if (euiVersion === '14.x' || euiVersion === '15.x') {
220
221
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV14);
222
+ tools.logInfo(`----using angularProjectDefFullSkeletonV14`);
221
223
  } else {
222
224
  projectDef = JSON.stringify(angularProjectDefFullSkeleton);
225
+ tools.logInfo(`----using angularProjectDefFullSkeleton`);
223
226
  }
224
227
 
225
228
  } else {
226
229
  if (euiVersion === '13.x') {
227
230
  projectDef = JSON.stringify(angularProjectDefV13);
231
+ tools.logInfo(`----using angularProjectDefV13`);
228
232
  } else if (euiVersion === '14.x' || euiVersion === '15.x') {
229
- projectDef = JSON.stringify(angularProjectDefV14);
233
+ projectDef = JSON.stringify(angularProjectDefV14);
234
+ tools.logInfo(`----using angularProjectDefV14`);
230
235
  } else {
231
236
  if (project.build && project.build.csdrFileReplacement === true) {
232
237
  projectDef = JSON.stringify(angularProjectLightDef);
238
+ tools.logInfo(`----using angularProjectLightDef`);
233
239
  } else {
234
240
  projectDef = JSON.stringify(angularProjectDef);
241
+ tools.logInfo(`----using angularProjectDef`);
235
242
  }
236
243
  }
237
244
  }
@@ -4,7 +4,10 @@ module.exports.angularConfigDef = {
4
4
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
5
5
  "version": 1,
6
6
  "newProjectRoot": "apps",
7
- "projects": {}
7
+ "projects": {},
8
+ "cli": {
9
+ "analytics": false
10
+ }
8
11
  };
9
12
 
10
13