@eui/tools 6.2.36 → 6.2.37

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.37
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.2.37 (2022-11-21)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * 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))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.2.36 (2022-11-18)
2
11
 
3
12
  ##### 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.37",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -216,6 +216,15 @@ const generateDefault = ({fullName, targetPath, rootPackagePath, pkg, args = con
216
216
  }
217
217
  })
218
218
 
219
+ .then(() => {
220
+ if (
221
+ args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.DEFAULT &&
222
+ args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15
223
+ ) {
224
+ return tools.remove(path.join(targetPath, 'tslint.json'));
225
+ }
226
+ })
227
+
219
228
  .then(() => {
220
229
  tools.logSuccess();
221
230
  })
@@ -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