@o3r/schematics 11.0.0-prerelease.9 → 11.1.0-prerelease.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "11.0.0-prerelease.9",
3
+ "version": "11.1.0-prerelease.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,13 +26,13 @@
26
26
  "o3r-environment": "./cli/environment.js"
27
27
  },
28
28
  "peerDependencies": {
29
- "@angular-devkit/architect": "~0.1703.0",
30
- "@angular-devkit/core": "~17.3.0",
31
- "@angular-devkit/schematics": "~17.3.0",
32
- "@angular/cli": "~17.3.0",
33
- "@o3r/telemetry": "^11.0.0-prerelease.9",
34
- "@schematics/angular": "~17.3.0",
35
- "eslint": "^8.42.0",
29
+ "@angular-devkit/architect": "~0.1800.0",
30
+ "@angular-devkit/core": "~18.0.0",
31
+ "@angular-devkit/schematics": "~18.0.0",
32
+ "@angular/cli": "~18.0.0",
33
+ "@o3r/telemetry": "^11.1.0-prerelease.0",
34
+ "@schematics/angular": "~18.0.0",
35
+ "eslint": "^8.57.0",
36
36
  "rxjs": "^7.8.1",
37
37
  "type-fest": "^4.10.2",
38
38
  "typescript": "~5.4.2"
@@ -44,6 +44,9 @@
44
44
  "@angular-devkit/core": {
45
45
  "optional": true
46
46
  },
47
+ "@angular/cli": {
48
+ "optional": true
49
+ },
47
50
  "@o3r/telemetry": {
48
51
  "optional": true
49
52
  },
@@ -63,48 +66,49 @@
63
66
  "tslib": "^2.6.2"
64
67
  },
65
68
  "devDependencies": {
66
- "@angular-devkit/build-angular": "~17.3.0",
67
- "@angular-devkit/core": "~17.3.0",
68
- "@angular-devkit/schematics": "~17.3.0",
69
- "@angular-eslint/eslint-plugin": "~17.5.0",
70
- "@angular/animations": "~17.3.0",
71
- "@angular/cli": "~17.3.0",
72
- "@angular/common": "~17.3.0",
73
- "@angular/compiler": "~17.3.0",
74
- "@angular/compiler-cli": "~17.3.0",
75
- "@angular/core": "~17.3.0",
76
- "@angular/platform-browser": "~17.3.0",
77
- "@angular/platform-browser-dynamic": "~17.3.0",
69
+ "@angular-devkit/build-angular": "~18.0.0",
70
+ "@angular-devkit/core": "~18.0.0",
71
+ "@angular-devkit/schematics": "~18.0.0",
72
+ "@angular-eslint/eslint-plugin": "~18.0.0",
73
+ "@angular/animations": "~18.0.0",
74
+ "@angular/cli": "~18.0.0",
75
+ "@angular/common": "~18.0.0",
76
+ "@angular/compiler": "~18.0.0",
77
+ "@angular/compiler-cli": "~18.0.0",
78
+ "@angular/core": "~18.0.0",
79
+ "@angular/platform-browser": "~18.0.0",
80
+ "@angular/platform-browser-dynamic": "~18.0.0",
78
81
  "@babel/core": "~7.24.0",
79
82
  "@babel/preset-typescript": "~7.24.0",
80
83
  "@compodoc/compodoc": "^1.1.19",
81
- "@nx/eslint": "~18.3.0",
82
- "@nx/eslint-plugin": "~18.3.0",
83
- "@nx/jest": "~18.3.0",
84
- "@nx/js": "~18.3.0",
85
- "@o3r/build-helpers": "^11.0.0-prerelease.9",
86
- "@o3r/eslint-plugin": "^11.0.0-prerelease.9",
87
- "@o3r/telemetry": "^11.0.0-prerelease.9",
88
- "@schematics/angular": "~17.3.0",
89
- "@stylistic/eslint-plugin-ts": "^1.5.4",
84
+ "@nx/eslint": "~19.3.0",
85
+ "@nx/eslint-plugin": "~19.3.0",
86
+ "@nx/jest": "~19.3.0",
87
+ "@nx/js": "~19.3.0",
88
+ "@o3r/build-helpers": "^11.1.0-prerelease.0",
89
+ "@o3r/eslint-plugin": "^11.1.0-prerelease.0",
90
+ "@o3r/telemetry": "^11.1.0-prerelease.0",
91
+ "@schematics/angular": "~18.0.0",
92
+ "@stylistic/eslint-plugin-ts": "^2.0.0",
90
93
  "@types/inquirer": "~8.2.10",
91
94
  "@types/jest": "~29.5.2",
92
95
  "@types/node": "^20.0.0",
93
96
  "@types/semver": "^7.3.13",
94
97
  "@typescript-eslint/eslint-plugin": "^7.2.0",
95
98
  "@typescript-eslint/parser": "^7.2.0",
99
+ "@typescript-eslint/utils": "~7.14.1",
96
100
  "cpy-cli": "^5.0.0",
97
101
  "eslint": "^8.57.0",
98
102
  "eslint-import-resolver-node": "^0.3.9",
99
- "eslint-plugin-jest": "~27.9.0",
100
- "eslint-plugin-jsdoc": "~48.2.1",
103
+ "eslint-plugin-jest": "~28.6.0",
104
+ "eslint-plugin-jsdoc": "~48.4.0",
101
105
  "eslint-plugin-prefer-arrow": "~1.2.3",
102
- "eslint-plugin-unicorn": "^51.0.1",
106
+ "eslint-plugin-unicorn": "^54.0.0",
103
107
  "jest": "~29.7.0",
104
108
  "jest-junit": "~16.0.0",
105
109
  "jsonc-eslint-parser": "~2.4.0",
106
110
  "jsonschema": "~1.4.1",
107
- "nx": "~18.3.0",
111
+ "nx": "~19.3.0",
108
112
  "rxjs": "^7.8.1",
109
113
  "ts-jest": "~29.1.2",
110
114
  "ts-node": "~10.9.2",
@@ -113,7 +117,7 @@
113
117
  "zone.js": "~0.14.2"
114
118
  },
115
119
  "engines": {
116
- "node": ">=18.0.0"
120
+ "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
117
121
  },
118
122
  "schematics": "./collection.json",
119
123
  "contributors": [
@@ -144,6 +148,7 @@
144
148
  },
145
149
  {
146
150
  "name": "Stephane Dalle",
151
+ "url": "https://github.com/sdalle-1A",
147
152
  "email": "sdalle-1A@users.noreply.github.com"
148
153
  },
149
154
  {
@@ -178,7 +183,10 @@
178
183
  }
179
184
  ],
180
185
  "bugs": "https://github.com/AmadeusITGroup/otter/issues",
181
- "repository": "https://github.com/AmadeusITGroup/otter",
186
+ "repository": {
187
+ "type": "git",
188
+ "url": "git+https://github.com/AmadeusITGroup/otter.git"
189
+ },
182
190
  "license": "BSD-3-Clause",
183
191
  "homepage": "https://amadeusitgroup.github.io/otter/"
184
192
  }
@@ -9,10 +9,10 @@ const path = require("node:path");
9
9
  */
10
10
  function ngAddFn(options) {
11
11
  const schematicsDependencies = ['@angular-devkit/architect', '@angular-devkit/schematics', '@angular-devkit/core', '@schematics/angular', 'globby'];
12
- return async () => {
12
+ return async (_, context) => {
13
13
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
14
14
  const { getExternalDependenciesVersionRange, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
15
- const dependencies = Object.entries(getExternalDependenciesVersionRange(schematicsDependencies, packageJsonPath)).reduce((acc, [dep, range]) => {
15
+ const dependencies = Object.entries(getExternalDependenciesVersionRange(schematicsDependencies, packageJsonPath, context.logger)).reduce((acc, [dep, range]) => {
16
16
  acc[dep] = {
17
17
  inManifest: [{
18
18
  range,
@@ -21,7 +21,7 @@ function ngAddFn(options) {
21
21
  };
22
22
  return acc;
23
23
  }, {});
24
- Object.entries(getExternalDependenciesVersionRange(schematicsDependencies, packageJsonPath))
24
+ Object.entries(getExternalDependenciesVersionRange(schematicsDependencies, packageJsonPath, context.logger))
25
25
  .forEach(([dep, range]) => {
26
26
  dependencies[dep] = {
27
27
  inManifest: [{
@@ -1,4 +1,4 @@
1
- import { Rule } from '@angular-devkit/schematics';
1
+ import type { Rule } from '@angular-devkit/schematics';
2
2
  /**
3
3
  * Rule to add imports to a file
4
4
  * @param filePath
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAKlD;;;;GAIG;AACH,eAAO,MAAM,cAAc,aACf,MAAM,WACP;IACP,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,EAAE,KACF,IAkBF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAKvD;;;;GAIG;AACH,eAAO,MAAM,cAAc,aACf,MAAM,WACP;IACP,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,EAAE,KACF,IAkBF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { SchematicContext, Tree } from '@angular-devkit/schematics';
1
+ import type { SchematicContext, Tree } from '@angular-devkit/schematics';
2
2
  /**
3
3
  * List peer deps packages of the given package, display a warning if version mismatch, error if peer dep is missing
4
4
  * @param packageName The package to check peer deps for
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AA4FpE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,UACrC,IAAI,6FAKnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AA4FzE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,UACrC,IAAI,6FAKnB"}
@@ -1,4 +1,4 @@
1
- import { Rule, type TaskId } from '@angular-devkit/schematics';
1
+ import { type Rule, type TaskId } from '@angular-devkit/schematics';
2
2
  import { LinterOptions } from '../../tasks/index';
3
3
  interface ApplyEslintFixOption extends LinterOptions {
4
4
  /** List of task to wait to run the linter */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAoB,KAAK,MAAM,EAAQ,MAAM,4BAA4B,CAAC;AAEvG,OAAO,EAAiB,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEjE,UAAU,oBAAqB,SAAQ,aAAa;IAClD,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,SAAM,EAAE,SAAS,GAAE,MAAM,EAAW,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAqEnH"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,IAAI,EAAoB,KAAK,MAAM,EAAa,MAAM,4BAA4B,CAAC;AAEjH,OAAO,EAAiB,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEjE,UAAU,oBAAqB,SAAQ,aAAa;IAClD,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,SAAM,EAAE,SAAS,GAAE,MAAM,EAAW,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAqEnH"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuG;AACvG,yCAA0C;AAC1C,6CAAiE;AAOjE;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,UAAU,GAAG,GAAG,EAAE,YAAsB,CAAC,IAAI,CAAC,EAAE,OAA8B;IAC3G,IAAI,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAA,iBAAI,GAAE,CAAC;IAChB,CAAC;IAED,MAAM,aAAa,GAAkB;QACnC,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,IAAI;QAClB,GAAG,OAAO;KACX,CAAC;IAEF,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO;aA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CAAC,IAAI,CAAC;+GACqF,CAAC,CAAC;QAC7G,CAAC;QAED,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,GAAgB,EAAE,QAAQ,EAAE,EAAE;YAChE,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/G,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACpB,CAAC;YAED,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,IAAI,GAAG,EAAU,CAAC,CAAC;QAEtB,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACf,OAAO,CAAC,OAAO,CACb,IAAI,qBAAa,CACf,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EACjB,SAAS,EACT,UAAU,EACV,aAAa,CACd,EACD,OAAO,EAAE,iBAAiB,CAC3B,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AArED,wCAqEC"}
@@ -1,5 +1,4 @@
1
1
  import { Rule } from '@angular-devkit/schematics';
2
- import { NodeDependencyType } from '@schematics/angular/utility/dependencies';
3
2
  import type { NgAddPackageOptions } from '../../tasks/index';
4
3
  /**
5
4
  * Install via `ng add` a list of npm packages.
@@ -10,13 +9,4 @@ import type { NgAddPackageOptions } from '../../tasks/index';
10
9
  export declare function ngAddPackages(packages: string[], options?: Omit<NgAddPackageOptions, 'version'> & {
11
10
  version?: string | (string | undefined)[];
12
11
  }, packageJsonPath?: string): Rule;
13
- /**
14
- * Look for the peer dependencies and run ng add on the package requested version
15
- * @param packages list of the name of the packages needed
16
- * @param packageJsonPath path to package json that needs the peer to be resolved
17
- * @param type how to install the dependency (dev, peer for a library or default for an application)
18
- * @param options
19
- * @param parentPackageInfo for logging purposes
20
- */
21
- export declare function ngAddPeerDependencyPackages(packages: string[], packageJsonPath: string, type: NodeDependencyType | undefined, options: NgAddPackageOptions, parentPackageInfo?: string): Rule;
22
12
  //# sourceMappingURL=ng-add.helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-add.helpers.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/ng-add.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,IAAI,EAA+B,MAAM,4BAA4B,CAAC;AAG/G,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAK9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;CAAE,EAAE,eAAe,SAAkB,GAAG,IAAI,CA0HzL;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,gCAAiD,EAC5I,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,CAAC,EAAE,MAAM,QAgBzD"}
1
+ {"version":3,"file":"ng-add.helpers.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/ng-add.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,IAAI,EAA+B,MAAM,4BAA4B,CAAC;AAO/G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;CAAE,EAAE,eAAe,SAAkB,GAAG,IAAI,CA0HzL"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ngAddPeerDependencyPackages = exports.ngAddPackages = void 0;
3
+ exports.ngAddPackages = void 0;
4
4
  const schematics_1 = require("@angular-devkit/schematics");
5
5
  const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const dependencies_1 = require("@schematics/angular/utility/dependencies");
@@ -136,27 +136,4 @@ function ngAddPackages(packages, options, packageJsonPath = '/package.json') {
136
136
  ]);
137
137
  }
138
138
  exports.ngAddPackages = ngAddPackages;
139
- /**
140
- * Look for the peer dependencies and run ng add on the package requested version
141
- * @param packages list of the name of the packages needed
142
- * @param packageJsonPath path to package json that needs the peer to be resolved
143
- * @param type how to install the dependency (dev, peer for a library or default for an application)
144
- * @param options
145
- * @param parentPackageInfo for logging purposes
146
- */
147
- function ngAddPeerDependencyPackages(packages, packageJsonPath, type = dependencies_1.NodeDependencyType.Default, options, parentPackageInfo) {
148
- if (!packages.length) {
149
- return schematics_1.noop;
150
- }
151
- const dependencies = (0, index_1.getNodeDependencyList)((0, index_1.getExternalDependenciesVersionRange)(packages, packageJsonPath), type);
152
- return ngAddPackages(dependencies.map(({ name }) => name), {
153
- ...options,
154
- skipConfirmation: true,
155
- version: dependencies.map(({ version }) => version),
156
- parentPackageInfo,
157
- dependencyType: type,
158
- workingDirectory: options.workingDirectory
159
- });
160
- }
161
- exports.ngAddPeerDependencyPackages = ngAddPeerDependencyPackages;
162
139
  //# sourceMappingURL=ng-add.helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-add.helpers.js","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/ng-add.helpers.ts"],"names":[],"mappings":";;;AAAA,2DAA+G;AA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MAAM,IAAA,oBAAa,EAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;YAEvD,MAAM,aAAa,GAAG,iBAAiB;iBACpC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;iBAC9F,MAAM,CAAC,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,EAAE,EAAE;gBAC3C,IAAI,CAAC,eAAe,EAAE,CAAC;oBACrB,OAAO,CAAC,MAAM,CAAC,IAAI,CACjB,mCAAmC,WAAW,2BAA2B,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,iBAAiB,GAAI,QAAQ,CAAC,WAAW,CAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBACjL,CAAC;gBACD,OAAO,CAAC,CAAC,eAAe,CAAC;YAC3B,CAAC,CAAC;iBACD,GAAG,CAAC,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,IAAA,8BAAiB,EAAC,WAAW,EAAE,QAAQ,EAAE,UAAU,CAAC,eAAgB,CAAC,CAAC,CAAC,CAAC;YACrH,OAAO,IAAA,kBAAK,EAAC,aAAa,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AA1HD,sCA0HC"}
@@ -1,5 +1,3 @@
1
- import { TaskConfiguration, TaskConfigurationGenerator } from '@angular-devkit/schematics';
2
- import { NodePackageTaskOptions } from '@angular-devkit/schematics/tasks/package-manager/options';
3
1
  import type { NodeDependencyType } from '@schematics/angular/utility/dependencies';
4
2
  /**
5
3
  * Options to be passed to the ng add task
@@ -22,12 +20,4 @@ export interface NgAddPackageOptions {
22
20
  /** Flag to skip the execution of ng add and only install the package. Used mostly for external packages */
23
21
  skipNgAddSchematicRun?: boolean;
24
22
  }
25
- /** @deprecated use {@link setupDependencies} instead, will be removed in V11 */
26
- export declare class NodePackageNgAddTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
27
- packageName: string;
28
- options?: NgAddPackageOptions | undefined;
29
- quiet: boolean;
30
- constructor(packageName: string, options?: NgAddPackageOptions | undefined);
31
- toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
32
- }
33
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tasks/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAmB,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,yBAAyB;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,kBAAkB;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IAEpC,2GAA2G;IAC3G,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,gFAAgF;AAChF,qBAAa,oBAAqB,YAAW,0BAA0B,CAAC,sBAAsB,CAAC;IAG1E,WAAW,EAAE,MAAM;IAAS,OAAO,CAAC;IAFhD,KAAK,UAAS;gBAEF,WAAW,EAAE,MAAM,EAAS,OAAO,CAAC,iCAAqB;IAErE,eAAe,IAAI,iBAAiB,CAAC,sBAAsB,CAAC;CAgBpE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tasks/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,yBAAyB;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,kBAAkB;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IAEpC,2GAA2G;IAC3G,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC"}
@@ -1,31 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodePackageNgAddTask = void 0;
4
- const options_1 = require("@angular-devkit/schematics/tasks/package-manager/options");
5
- const package_manager_runner_1 = require("../../utility/package-manager-runner");
6
- /** @deprecated use {@link setupDependencies} instead, will be removed in V11 */
7
- class NodePackageNgAddTask {
8
- constructor(packageName, options) {
9
- this.packageName = packageName;
10
- this.options = options;
11
- this.quiet = false;
12
- }
13
- toConfiguration() {
14
- const cmdArguments = [
15
- this.options?.skipConfirmation ? '--skip-confirmation' : '',
16
- this.options?.projectName ? `--projectName=${this.options.projectName}` : ''
17
- ];
18
- return {
19
- name: options_1.NodePackageName,
20
- options: {
21
- command: 'ng add',
22
- quiet: this.quiet,
23
- workingDirectory: this.options?.workingDirectory,
24
- packageName: `ng add ${this.packageName}${this.options?.version ? '@' + this.options.version : ''} ${cmdArguments.join(' ')}`,
25
- packageManager: (0, package_manager_runner_1.getPackageManager)()
26
- }
27
- };
28
- }
29
- }
30
- exports.NodePackageNgAddTask = NodePackageNgAddTask;
31
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tasks/ng-add/index.ts"],"names":[],"mappings":";;;AACA,sFAAmH;AAEnH,iFAAyE;AA8BzE,gFAAgF;AAChF,MAAa,oBAAoB;IAG/B,YAAmB,WAAmB,EAAS,OAA6B;QAAzD,gBAAW,GAAX,WAAW,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAsB;QAFrE,UAAK,GAAG,KAAK,CAAC;IAE0D,CAAC;IAEzE,eAAe;QACpB,MAAM,YAAY,GAAG;YACnB,IAAI,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE;YAC3D,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,iBAAiB,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE;SAC7E,CAAC;QACF,OAAO;YACL,IAAI,EAAE,yBAAe;YACrB,OAAO,EAAE;gBACP,OAAO,EAAE,QAAQ;gBACjB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,gBAAgB,EAAE,IAAI,CAAC,OAAO,EAAE,gBAAgB;gBAChD,WAAW,EAAE,UAAU,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;gBAC7H,cAAc,EAAE,IAAA,0CAAiB,GAAE;aACpC;SAC2C,CAAC;IACjD,CAAC;CACF;AArBD,oDAqBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tasks/ng-add/index.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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AAC;AAE1E,eAAO,MAAM,iCAAiC,wBACyG,CAAC;AAExJ,qBAAa,gBAAiB,SAAQ,KAAK;gBAC7B,aAAa,EAAE,MAAM;CAOlC;AAED;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,SAAU,IAAI,iBAAiB,MAAM;;;;;CA4DrF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kDAAkD,YACpD,MAAM,EAAE,KAChB,GAAG,kBAAkB,CAAC,OAAO,CA4B/B,CAAC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addImportsIntoComponentDecoratorTransformerFactory = exports.getO3rComponentInfoOrThrowIfNotFound = exports.NoOtterComponent = exports.askConfirmationToConvertComponent = exports.isO3rClassComponent = exports.isNgClassComponent = exports.isO3rClassDecorator = exports.isNgClassDecorator = void 0;
4
- const prompt_1 = require("@angular/cli/src/utilities/prompt");
5
4
  const ts = require("typescript");
6
5
  const ast_1 = require("./ast");
7
6
  const error_1 = require("./error");
@@ -32,7 +31,7 @@ exports.isNgClassComponent = isNgClassComponent;
32
31
  const isO3rClassComponent = (classDeclaration) => (0, exports.isNgClassComponent)(classDeclaration)
33
32
  && (ts.getDecorators(classDeclaration) || []).some(exports.isO3rClassDecorator);
34
33
  exports.isO3rClassComponent = isO3rClassComponent;
35
- const askConfirmationToConvertComponent = () => (0, prompt_1.askConfirmation)('Component found is not an Otter component. Would you like to convert it?', true);
34
+ const askConfirmationToConvertComponent = async () => (await Promise.resolve().then(() => require('@angular/cli/src/utilities/prompt'))).askConfirmation('Component found is not an Otter component. Would you like to convert it?', true);
36
35
  exports.askConfirmationToConvertComponent = askConfirmationToConvertComponent;
37
36
  class NoOtterComponent extends Error {
38
37
  constructor(componentPath) {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":";;;AACA,8DAAoE;AACpE,iCAAiC;AACjC,+BAAoG;AAC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,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAgC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,SAAS,CAAC;oBAC/H,OAAO,CAAC,wBAAwB,CAAC,SAAS,EAAE,OAAO,CAAC,4BAA4B,CAC9E,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,EACrF,IAAI,CACL,CAAC;iBACH,EAAE,IAAI,CAAC;aACT,CACF,CACF,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC,CAAC;IACF,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AACvC,CAAC,CAAC;AA9BW,QAAA,kDAAkD,sDA8B7D"}
@@ -1,11 +1,13 @@
1
1
  import { NodeDependency, NodeDependencyType } from '@schematics/angular/utility/dependencies';
2
+ import { logging } from '@angular-devkit/core';
2
3
  /**
3
- * Method to extract the provided package version range from a package.json file
4
- * @param packageNames list of package we want to retrieve the version
5
- * @param packageJsonPath Path to the package.json to refer to
6
- * @returns The version range value retrieved from the provided package.json file
4
+ * Method to extract the provided package version range from a package.json file
5
+ * @param packageNames list of package we want to retrieve the version
6
+ * @param packageJsonPath Path to the package.json to refer to
7
+ * @param logger logger
8
+ * @returns The version range value retrieved from the provided package.json file
7
9
  */
8
- export declare function getExternalDependenciesVersionRange<T extends string>(packageNames: T[], packageJsonPath: string): Record<T, string>;
10
+ export declare function getExternalDependenciesVersionRange<T extends string>(packageNames: T[], packageJsonPath: string, logger: logging.LoggerApi): Record<T, string>;
9
11
  /**
10
12
  * Method used to build the list of node dependencies to be installed
11
13
  * @param dependenciesVersions map of dependency and its associated required version
@@ -1 +1 @@
1
- {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAE9F;;;;;GAKG;AACH,wBAAgB,mCAAmC,CAAC,CAAC,SAAS,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAMnI;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,kBAAkB,GAAG,cAAc,EAAE,CAE3I"}
1
+ {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C;;;;;;GAMG;AACH,wBAAgB,mCAAmC,CAAC,CAAC,SAAS,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAc9J;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,kBAAkB,GAAG,cAAc,EAAE,CAE3I"}
@@ -3,15 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getNodeDependencyList = exports.getExternalDependenciesVersionRange = void 0;
4
4
  const fs = require("node:fs");
5
5
  /**
6
- * Method to extract the provided package version range from a package.json file
7
- * @param packageNames list of package we want to retrieve the version
8
- * @param packageJsonPath Path to the package.json to refer to
9
- * @returns The version range value retrieved from the provided package.json file
6
+ * Method to extract the provided package version range from a package.json file
7
+ * @param packageNames list of package we want to retrieve the version
8
+ * @param packageJsonPath Path to the package.json to refer to
9
+ * @param logger logger
10
+ * @returns The version range value retrieved from the provided package.json file
10
11
  */
11
- function getExternalDependenciesVersionRange(packageNames, packageJsonPath) {
12
+ function getExternalDependenciesVersionRange(packageNames, packageJsonPath, logger) {
12
13
  const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
13
14
  return packageNames.reduce((acc, packageName) => {
14
- acc[packageName] = packageJsonContent.peerDependencies?.[packageName] || packageJsonContent.generatorDependencies?.[packageName] || packageJsonContent.dependencies?.[packageName] || 'latest';
15
+ acc[packageName] =
16
+ packageJsonContent.generatorDependencies?.[packageName] ||
17
+ packageJsonContent.peerDependencies?.[packageName] ||
18
+ packageJsonContent.dependencies?.[packageName] ||
19
+ packageJsonContent.devDependencies?.[packageName];
20
+ if (!acc[packageName]) {
21
+ logger.warn(`Unable to retrieve version for ${packageName} in ${packageJsonPath}. Version set to "latest".`);
22
+ acc[packageName] = 'latest';
23
+ }
15
24
  return acc;
16
25
  }, {});
17
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAG9B;;;;;GAKG;AACH,SAAgB,mCAAmC,CAAmB,YAAiB,EAAE,eAAuB;IAC9G,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAC,CAAC;IAC7F,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAA+B,EAAE,WAAW,EAAE,EAAE;QAC1E,GAAG,CAAC,WAAW,CAAC,GAAG,kBAAkB,CAAC,gBAAgB,EAA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CAAC,IAAI,CAAC,kCAAkC,WAAW,OAAO,eAAe,4BAA4B,CAAC,CAAC;YAC7G,GAAG,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC;QAC9B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAsB,CAAC;AAC9B,CAAC;AAdD,kFAcC;AAED;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAmB,oBAAuC,EAAE,IAAwB;IACvH,OAAO,MAAM,CAAC,OAAO,CAAS,oBAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;AACzH,CAAC;AAFD,sDAEC"}
@@ -17,15 +17,15 @@ exports.OTTER_ITEM_TYPES = [
17
17
  /** List of the default destination paths for each generated entity */
18
18
  exports.TYPES_DEFAULT_FOLDER = {
19
19
  // eslint-disable-next-line @typescript-eslint/naming-convention
20
- '@o3r/core:component': { app: 'src/components', lib: 'components/src' },
20
+ '@o3r/core:component': { app: 'src/components', lib: 'src/components' },
21
21
  // eslint-disable-next-line @typescript-eslint/naming-convention
22
22
  '@o3r/core:page': { app: 'src/app' },
23
23
  // eslint-disable-next-line @typescript-eslint/naming-convention
24
- '@o3r/core:service': { app: 'src/services', lib: 'services/src' },
24
+ '@o3r/core:service': { app: 'src/services', lib: 'src/services' },
25
25
  // eslint-disable-next-line @typescript-eslint/naming-convention
26
- '@o3r/core:store': { app: 'src/store', lib: 'store/src' },
26
+ '@o3r/core:store': { app: 'src/store', lib: 'src/store' },
27
27
  // eslint-disable-next-line @typescript-eslint/naming-convention
28
- '@o3r/core:schematics-update': { app: 'src/schematics', lib: 'schematics/src' },
28
+ '@o3r/core:schematics-update': { app: 'src/schematics', lib: 'src/schematics' },
29
29
  // eslint-disable-next-line @typescript-eslint/naming-convention
30
30
  '@o3r/testing:playwright-scenario': { app: 'e2e-playwright/scenarios' },
31
31
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -20,7 +20,7 @@ const loaders_1 = require("./loaders");
20
20
  function getAppModuleFilePath(tree, context, projectName) {
21
21
  const workspaceProject = projectName ? (0, loaders_1.getWorkspaceConfig)(tree)?.projects[projectName] : undefined;
22
22
  // exit if not an application
23
- if (!workspaceProject) {
23
+ if (!workspaceProject || workspaceProject.projectType !== 'application') {
24
24
  context.logger.debug('Aborted. App module file path will be searched only in application project.');
25
25
  return undefined;
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../../../src/utility/modules.ts"],"names":[],"mappings":";;;AAAA,2DAAuG;AACvG,iCAAiC;AACjC,qEAK+C;AAC/C,+DAAgE;AAChE,8BAA8B;AAC9B,mCAA0C;AAC1C,kCAAkC;AAClC,+BAAiD;AACjD,uCAA+C;AAG/C;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAAyB,EAAE,WAA2B;IACrG,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,IAAA,4BAAkB,EAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACnG,6BAA6B;IAC7B,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAC;QACpG,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,YAAY,GAAW,gBAAgB,CAAC,SAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,gBAAgB,CAAC,SAAU,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;IACjI,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAE,CAAC,QAAQ,EAAE,CAAC;IAErD,MAAM,2BAA2B,GAAG,QAAQ,CAAC,KAAK,CAAC,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