@o3r/schematics 10.0.0-prerelease.99 → 10.1.0-prerelease.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/README.md +2 -1
  2. package/package.json +8 -8
  3. package/schematics/ng-add/index.d.ts.map +1 -1
  4. package/schematics/ng-add/index.js +28 -27
  5. package/src/modules/modules.display.rule.js.map +1 -1
  6. package/src/modules/modules.helpers.js.map +1 -1
  7. package/src/rule-factories/add-imports/index.js.map +1 -1
  8. package/src/rule-factories/check-packages-peers/index.js.map +1 -1
  9. package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -1
  10. package/src/rule-factories/eslint-fix/index.js.map +1 -1
  11. package/src/rule-factories/get-test-frameworks/index.js.map +1 -1
  12. package/src/rule-factories/ng-add/dependencies.d.ts +78 -0
  13. package/src/rule-factories/ng-add/dependencies.d.ts.map +1 -0
  14. package/src/rule-factories/ng-add/dependencies.js +156 -0
  15. package/src/rule-factories/ng-add/dependencies.js.map +1 -0
  16. package/src/rule-factories/ng-add/index.d.ts +3 -36
  17. package/src/rule-factories/ng-add/index.d.ts.map +1 -1
  18. package/src/rule-factories/ng-add/index.js +4 -218
  19. package/src/rule-factories/ng-add/index.js.map +1 -1
  20. package/src/rule-factories/ng-add/ng-add.helpers.d.ts +22 -0
  21. package/src/rule-factories/ng-add/ng-add.helpers.d.ts.map +1 -0
  22. package/src/rule-factories/ng-add/ng-add.helpers.js +162 -0
  23. package/src/rule-factories/ng-add/ng-add.helpers.js.map +1 -0
  24. package/src/rule-factories/ng-add/schematics-register.d.ts +17 -0
  25. package/src/rule-factories/ng-add/schematics-register.d.ts.map +1 -0
  26. package/src/rule-factories/ng-add/schematics-register.js +64 -0
  27. package/src/rule-factories/ng-add/schematics-register.js.map +1 -0
  28. package/src/rule-factories/remove-packages/index.js.map +1 -1
  29. package/src/rule-factories/update-imports/update-imports-with-scope.js.map +1 -1
  30. package/src/rule-factories/update-imports/update-ts-imports.js.map +1 -1
  31. package/src/rule-factories/vscode-extensions/index.js.map +1 -1
  32. package/src/rules/install.d.ts +8 -4
  33. package/src/rules/install.d.ts.map +1 -1
  34. package/src/rules/install.js +10 -8
  35. package/src/rules/install.js.map +1 -1
  36. package/src/tasks/ng-add/index.d.ts +1 -0
  37. package/src/tasks/ng-add/index.d.ts.map +1 -1
  38. package/src/tasks/ng-add/index.js +1 -0
  39. package/src/tasks/ng-add/index.js.map +1 -1
  40. package/src/tasks/package-manager/add-dev-dependency.d.ts +1 -0
  41. package/src/tasks/package-manager/add-dev-dependency.d.ts.map +1 -1
  42. package/src/tasks/package-manager/add-dev-dependency.js +1 -0
  43. package/src/tasks/package-manager/add-dev-dependency.js.map +1 -1
  44. package/src/utility/ast.js.map +1 -1
  45. package/src/utility/builder.js.map +1 -1
  46. package/src/utility/collection.d.ts.map +1 -1
  47. package/src/utility/collection.js +1 -1
  48. package/src/utility/collection.js.map +1 -1
  49. package/src/utility/component.js.map +1 -1
  50. package/src/utility/dependencies.js +1 -1
  51. package/src/utility/dependencies.js.map +1 -1
  52. package/src/utility/environment.js.map +1 -1
  53. package/src/utility/file-info.js.map +1 -1
  54. package/src/utility/generation.js.map +1 -1
  55. package/src/utility/gitignore.js.map +1 -1
  56. package/src/utility/loaders.d.ts +6 -1
  57. package/src/utility/loaders.d.ts.map +1 -1
  58. package/src/utility/loaders.js +10 -2
  59. package/src/utility/loaders.js.map +1 -1
  60. package/src/utility/matching-peers.d.ts.map +1 -1
  61. package/src/utility/matching-peers.js +1 -1
  62. package/src/utility/matching-peers.js.map +1 -1
  63. package/src/utility/modules.js.map +1 -1
  64. package/src/utility/monorepo.js.map +1 -1
  65. package/src/utility/package-manager-runner.js.map +1 -1
  66. package/src/utility/package-version.js.map +1 -1
  67. package/src/utility/routes.js.map +1 -1
  68. package/src/utility/sub-entry.js.map +1 -1
  69. package/src/utility/template-property.helper.js.map +1 -1
  70. package/src/utility/update-imports.js.map +1 -1
  71. package/src/utility/update-pipes.js.map +1 -1
  72. package/src/utility/wrapper.d.ts.map +1 -1
  73. package/src/utility/wrapper.js +48 -3
  74. package/src/utility/wrapper.js.map +1 -1
package/README.md CHANGED
@@ -17,7 +17,8 @@ This module provides basic utilities and generic rules (install, lint) reused in
17
17
  ng add @o3r/schematics
18
18
  ```
19
19
 
20
- > **Warning**: this module requires [@o3r/core](https://www.npmjs.com/package/@o3r/core) to be installed.
20
+ > [!WARNING]
21
+ > This module requires [@o3r/core](https://www.npmjs.com/package/@o3r/core) to be installed.
21
22
 
22
23
  ## Description
23
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "10.0.0-prerelease.99",
3
+ "version": "10.1.0-prerelease.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,12 +30,12 @@
30
30
  "@angular-devkit/core": "~17.2.0",
31
31
  "@angular-devkit/schematics": "~17.2.0",
32
32
  "@angular/cli": "~17.2.0",
33
- "@o3r/telemetry": "^10.0.0-prerelease.99",
33
+ "@o3r/telemetry": "^10.1.0-prerelease.0",
34
34
  "@schematics/angular": "~17.2.0",
35
35
  "eslint": "^8.42.0",
36
36
  "rxjs": "^7.8.1",
37
37
  "type-fest": "^4.10.2",
38
- "typescript": "~5.2.2"
38
+ "typescript": "~5.3.3"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@angular-devkit/architect": {
@@ -78,9 +78,9 @@
78
78
  "@nx/eslint-plugin": "~18.0.2",
79
79
  "@nx/jest": "~18.0.2",
80
80
  "@nx/js": "~18.0.2",
81
- "@o3r/build-helpers": "^10.0.0-prerelease.99",
82
- "@o3r/eslint-plugin": "^10.0.0-prerelease.99",
83
- "@o3r/telemetry": "^10.0.0-prerelease.99",
81
+ "@o3r/build-helpers": "^10.1.0-prerelease.0",
82
+ "@o3r/eslint-plugin": "^10.1.0-prerelease.0",
83
+ "@o3r/telemetry": "^10.1.0-prerelease.0",
84
84
  "@schematics/angular": "~17.2.0",
85
85
  "@stylistic/eslint-plugin-ts": "^1.5.4",
86
86
  "@types/jest": "~29.5.2",
@@ -92,7 +92,7 @@
92
92
  "eslint": "^8.42.0",
93
93
  "eslint-import-resolver-node": "^0.3.4",
94
94
  "eslint-plugin-jest": "~27.9.0",
95
- "eslint-plugin-jsdoc": "~48.1.0",
95
+ "eslint-plugin-jsdoc": "~48.2.0",
96
96
  "eslint-plugin-prefer-arrow": "~1.2.3",
97
97
  "eslint-plugin-unicorn": "^51.0.0",
98
98
  "jest": "~29.7.0",
@@ -104,7 +104,7 @@
104
104
  "ts-jest": "~29.1.1",
105
105
  "ts-node": "~10.9.1",
106
106
  "type-fest": "^4.10.2",
107
- "typescript": "~5.2.2",
107
+ "typescript": "~5.3.3",
108
108
  "zone.js": "~0.14.2"
109
109
  },
110
110
  "engines": {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAM/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAmCtD;;GAEG;AACH,eAAO,MAAM,KAAK,0CAAiD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAKvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAqCtD;;GAEG;AACH,eAAO,MAAM,KAAK,0CAAiD,CAAC"}
@@ -1,44 +1,45 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
- const fs = require("node:fs");
4
+ const schematics_1 = require("@o3r/schematics");
5
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
5
6
  const path = require("node:path");
6
- const rxjs_1 = require("rxjs");
7
- const public_api_1 = require("../../src/public_api");
7
+ const schematics_2 = require("@o3r/schematics");
8
8
  /**
9
9
  * Add Otter schematics to an Angular Project
10
10
  * @param options schematics options
11
11
  */
12
12
  function ngAddFn(options) {
13
13
  const schematicsDependencies = ['@angular-devkit/architect', '@angular-devkit/schematics', '@angular-devkit/core', '@schematics/angular', 'globby'];
14
- return () => async (tree, context) => {
15
- context.logger.info('Running ng add for schematics');
14
+ return () => async () => {
16
15
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
17
- const treePackageJson = tree.readJson('./package.json');
18
- const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
19
- const getDependencyVersion = (dependency) => packageJsonContent?.dependencies?.[dependency] || packageJsonContent?.peerDependencies?.[dependency];
20
- const workspaceProject = options.projectName ? (0, public_api_1.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
21
- const workingDirectory = workspaceProject?.root || '.';
22
- let packageName = '';
23
- for (const dependency of schematicsDependencies) {
24
- const version = getDependencyVersion(dependency);
25
- context.logger.info(`Installing ${dependency}${version || ''}`);
26
- treePackageJson.devDependencies = { ...treePackageJson.devDependencies, [dependency]: version };
27
- packageName = `${packageName} ${dependency}${version ? '@' + version : ''}`;
28
- }
29
- context.addTask(new public_api_1.AddDevInstall({
30
- hideOutput: false,
31
- packageName,
32
- workingDirectory,
33
- quiet: false
34
- }));
35
- await (0, rxjs_1.lastValueFrom)(context.engine.executePostTasks());
36
- tree.overwrite('./package.json', JSON.stringify(treePackageJson));
37
- return () => tree;
16
+ const dependencies = Object.entries((0, schematics_1.getExternalDependenciesVersionRange)(schematicsDependencies, packageJsonPath)).reduce((acc, [dep, range]) => {
17
+ acc[dep] = {
18
+ inManifest: [{
19
+ range,
20
+ types: [dependencies_1.NodeDependencyType.Dev]
21
+ }]
22
+ };
23
+ return acc;
24
+ }, {});
25
+ Object.entries((0, schematics_1.getExternalDependenciesVersionRange)(schematicsDependencies, packageJsonPath))
26
+ .forEach(([dep, range]) => {
27
+ dependencies[dep] = {
28
+ inManifest: [{
29
+ range,
30
+ types: [dependencies_1.NodeDependencyType.Dev]
31
+ }]
32
+ };
33
+ });
34
+ return (0, schematics_1.setupDependencies)({
35
+ projectName: options.projectName,
36
+ dependencies,
37
+ skipInstall: false
38
+ });
38
39
  };
39
40
  }
40
41
  /**
41
42
  * Add Otter schematics to an Angular Project
42
43
  */
43
- exports.ngAdd = (0, public_api_1.createSchematicWithMetricsIfInstalled)(ngAddFn);
44
+ exports.ngAdd = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngAddFn);
44
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules.display.rule.js","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":";;;AACA,qCAA8B;AAC9B,2DAA2G;AAC3G,4CAAiF;AACjF,uDAAkG;AAsBlG;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,OAA2C;IAE/E,MAAM,cAAc,GAAG,OAAO,EAAE,cAAc,IAAI,iDAA6B,CAAC;IAChF,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,wCAAoB,CAAC;IAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,MAAM,GAA2B,EAAE,CAAC,qCAAiB,CAAC,EAAE,aAAa,EAAE,CAAC;QAE9E,MAAM,eAAe,GAAG,IAAA,0BAAkB,EAAC,IAAI,CAAC,CAAC;QACjD,IAAI;YACF,MAAM,OAAO,GAAG,MAAM,IAAA,sDAAoC,EAAC,OAAO,EAAE;gBAClE,cAAc;gBACd,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,uBAAuB;gBACpD,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,eAAe;aAChB,CAAC,CAAC;YACH,MAAM,OAAO,GAAG,OAAO;iBACpB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,cAAc,IAAI,GAAG,CAAC,QAAQ,EAAE,Q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3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":";;;AACA,qEAAqE;AACrE,+DAAwF;AACxF,iCAAiC;AAEjC;;;;GAIG;AACI,MAAM,cAAc,GAAG,CAC5B,QAAgB,EAChB,OAGG,EACG,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IAC3B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;QAC1B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,qCAAqC,QAAQ,kBAAkB,CAAC,CAAC;QACrF,OAAO;KACR;IACD,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CACpC,QAAQ,EACR,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACvB,EAAE,CAAC,YAAY,CAAC,MAAM,EACtB,IAAI,CACL,CAAC;IACF,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,GAAa,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CACjF,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,wBAAY,EAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CACtF,EAAE,EAAE,CAAC,CAAC;IACP,IAAA,8BAAqB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAxBW,QAAA,cAAc,kBAwBzB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":";;;AACA,qEAAqE;AACrE,+DAAwF;AACxF,iCAAiC;AAEjC;;;;GAI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CAAC,EAAE,CAAC,CAAC;QACjB,MAAM,CAAC,KAAK,CAAC,wDAAwD,WAAW,yCAAyC,CAAC,CAAC;QAC3H,iBAAiB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,cAAc,eAAe,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACnH,MAAM,IAAI,mBAAW,CAAC,2BAA2B,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,CAAC,iBAAiB,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;QAC9D,MAAM,CAAC,IAAI,CAAC,eAAe,WAAW,iCAAiC,CAAC,CAAC;IAC3E,CAAC;AAEH,CAAC;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC/C,8BAA8B,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC;QACrF,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAND,8CAMC"}
@@ -1 +1 @@
1
- {"version":3,"file":"devtools-registration.js","sourceRoot":"","sources":["../../../../src/rule-factories/dev-tools/devtools-registration.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AACzD,iCAAiC;AACjC,qEAAiF;AACjF,+CAA+I;AAE/I,2CAAkF;AAClF,+DAAyF;AAczF,MAAM,cAAc,GAAG,CAAC,OAA+B,EAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IAClF,MAAM,cAAc,GAAG,IAAA,4BAAoB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChF,IAAI,CAAC,cAAc,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AE,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CACzB,uBAAuB,OAAO,CAAC,UAAU,mDAAmD,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,qCAAqC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,CACtL;KACF,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACpB,CAAC,CAAC;AAtBW,QAAA,6BAA6B,iCAsBxC"}
1
+ {"version":3,"file":"devtools-registration.js","sourceRoot":"","sources":["../../../../src/rule-factories/dev-tools/devtools-registration.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AACzD,iCAAiC;AACjC,qEAAiF;AACjF,+CAA+I;AAE/I,2CAAkF;AAClF,+DAAyF;AAczF,MAAM,cAAc,GAAG,CAAC,OAA+B,EAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IAClF,MAAM,cAAc,GAAG,IAAA,4BAAoB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChF,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAE,CAAC,QAAQ,EAAE,CAAC;IAChE,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CACpC,cAAc,EACd,iBAAiB,EACjB,EAAE,CAAC,YAAY,CAAC,MAAM,EACtB,IAAI,CACL,CAAC;IAEF,IAAI,IAAA,sBAAU,EAAC,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QACpE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAChD,MAAM,EAAE,WAAW,EAAE,GAAG,IAAA,sBAAc,EAAC,UAAU,EAAE,iBAAiB,CAAC,CA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AM,EAAE,CAAC,MAAM,CAAC;IAChB,SAAS,EAAE,CAAC,cAAc,CAAC;CAC5B,CAAC;AAEF;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,gBAAwC,EAAE,OAAyB;IAClG,IAAI,gBAAgB,EAAE;QACpB,MAAM,aAAa,GAAG,IAAA,2BAAmB,EAAC,gBAAgB,EAAE,OAAO,CAAC,EAAE,aAAa,CAAC;QACpF,IAAI,aAAa,EAAE;YACjB,OAAO,aAAa,CAAC;SACtB;KACF;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;SACnC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACvB,IAAI;gBACF,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,GAAG,eAAe,CAAC,CAAC;aACjD;YAAC,MAAM;gBACN,OAAO,KAAK,CAAC;aACd;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,EAAE,CAAC,CAAC,CAA4B,CAAC;AACvC,CAAC;AAjBD,4CAiBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/get-test-frameworks/index.ts"],"names":[],"mappings":";;;AAEA,+CAA0D;AAG1D,MAAM,eAAe,GAA8C;IACjE,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,SAAS,EAAE,CAAC,cAAc,CAAC;CAC5B,CAAC;AAEF;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,gBAAwC,EAAE,OAAyB;IAClG,IAAI,gBAAgB,EAAE,CAAC;QACrB,MAAM,aAAa,GAAG,IAAA,2BAAmB,EAAC,gBAAgB,EAAE,OAAO,CAAC,EAAE,aAAa,CAAC;QACpF,IAAI,aAAa,EAAE,CAAC;YAClB,OAAO,aAAa,CAAC;QACvB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;SACnC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACvB,IAAI,CAAC;gBACH,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,GAAG,eAAe,CAAC,CAAC;YAClD,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,EAAE,CAAC,CAAC,CAA4B,CAAC;AACvC,CAAC;AAjBD,4CAiBC"}
@@ -0,0 +1,78 @@
1
+ import { Rule, type TaskId, Tree } from '@angular-devkit/schematics';
2
+ import { NodeDependencyType } from '@schematics/angular/utility/dependencies';
3
+ import { SupportedPackageManagers } from '../../utility';
4
+ /**
5
+ * Options to be passed to the ng add task
6
+ */
7
+ export interface NgAddSchematicOptions {
8
+ /** Name of the project */
9
+ projectName?: string | null;
10
+ /** Skip the run of the linter*/
11
+ skipLinter?: boolean;
12
+ /** Skip the install process */
13
+ skipInstall?: boolean;
14
+ [x: string]: any;
15
+ }
16
+ export interface DependencyInManifest {
17
+ /**
18
+ * Range of the dependency
19
+ * @default 'latest'
20
+ */
21
+ range?: string;
22
+ /**
23
+ * Types of the dependency
24
+ * @default [NodeDependencyType.Default]
25
+ */
26
+ types?: NodeDependencyType[];
27
+ }
28
+ export interface DependencyToAdd {
29
+ /** Enforce this dependency to be applied to Workspace's manifest only */
30
+ toWorkspaceOnly?: boolean;
31
+ /** List of dependency to register in manifest */
32
+ inManifest: DependencyInManifest[];
33
+ /** ng-add schematic option dedicated to the package */
34
+ ngAddOptions?: NgAddSchematicOptions;
35
+ /** Determine if the dependency require to be installed */
36
+ requireInstall?: boolean;
37
+ }
38
+ export interface SetupDependenciesOptions {
39
+ /** Map of dependencies to install */
40
+ dependencies: Record<string, DependencyToAdd>;
41
+ /**
42
+ * Pattern of list of the dependency for which the ng-add run process is required
43
+ */
44
+ ngAddToRun?: (RegExp | string)[];
45
+ /**
46
+ * Will skip install in the end of the package.json update.
47
+ * if `undefined`, the installation will be process only if a ngAdd run is required.
48
+ * If `true` the install will not run in any case
49
+ * @default undefined
50
+ */
51
+ skipInstall?: boolean;
52
+ /** Project Name */
53
+ projectName?: string;
54
+ /** default ng-add schematic option */
55
+ ngAddOptions?: NgAddSchematicOptions;
56
+ /** Enforce install package manager */
57
+ packageManager?: SupportedPackageManagers;
58
+ /** Task will run after the given task ID (if specified) */
59
+ runAfterTasks?: TaskId[];
60
+ /** Callback to run after the task ID is calculated */
61
+ scheduleTaskCallback?: (taskIds?: TaskId[]) => void;
62
+ }
63
+ /**
64
+ * Retrieve the package install configuration
65
+ * This is a workaround to ng-add to add the dependency to the sub-package
66
+ * @param packageJsonPath Path to the module package.json file
67
+ * @param tree Tree to read the file
68
+ * @param projectName Name of the project
69
+ * @param devDependencyOnly If true, the dependency will be added as devDependency
70
+ */
71
+ export declare const getPackageInstallConfig: (packageJsonPath: string, tree: Tree, projectName?: string, devDependencyOnly?: boolean) => Record<string, DependencyToAdd>;
72
+ /**
73
+ * Setup dependency to a repository.
74
+ * Will run manually the ngAdd schematics according to the parameters and install the packages if required
75
+ * @param options
76
+ */
77
+ export declare const setupDependencies: (options: SetupDependenciesOptions) => Rule;
78
+ //# sourceMappingURL=dependencies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAa,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAI9E,OAAO,EAAyE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAIhI;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,0BAA0B;IAC1B,WAAW,CA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AAM,EAAE,eAAe,CAgB9J,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,YAAa,wBAAwB,KAAG,IA4HrE,CAAC"}
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setupDependencies = exports.getPackageInstallConfig = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
6
+ const path = require("node:path");
7
+ const semver = require("semver");
8
+ const utility_1 = require("../../utility");
9
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
10
+ const node_fs_1 = require("node:fs");
11
+ /**
12
+ * Retrieve the package install configuration
13
+ * This is a workaround to ng-add to add the dependency to the sub-package
14
+ * @param packageJsonPath Path to the module package.json file
15
+ * @param tree Tree to read the file
16
+ * @param projectName Name of the project
17
+ * @param devDependencyOnly If true, the dependency will be added as devDependency
18
+ */
19
+ const getPackageInstallConfig = (packageJsonPath, tree, projectName, devDependencyOnly) => {
20
+ if (!projectName) {
21
+ return {};
22
+ }
23
+ const packageJson = JSON.parse((0, node_fs_1.readFileSync)(packageJsonPath, { encoding: 'utf-8' }));
24
+ const workspaceProject = projectName ? (0, utility_1.getWorkspaceConfig)(tree)?.projects[projectName] : undefined;
25
+ return {
26
+ [packageJson.name]: {
27
+ inManifest: [{
28
+ range: `~${packageJson.version}`,
29
+ types: devDependencyOnly ? [dependencies_1.NodeDependencyType.Dev] : (0, utility_1.getProjectNewDependenciesTypes)(workspaceProject)
30
+ }],
31
+ requireInstall: true
32
+ }
33
+ };
34
+ };
35
+ exports.getPackageInstallConfig = getPackageInstallConfig;
36
+ /**
37
+ * Setup dependency to a repository.
38
+ * Will run manually the ngAdd schematics according to the parameters and install the packages if required
39
+ * @param options
40
+ */
41
+ const setupDependencies = (options) => {
42
+ return () => {
43
+ const ngAddToRun = new Set(Object.keys(options.dependencies)
44
+ .filter((dep) => options.ngAddToRun?.some((pattern) => typeof pattern === 'string' ? pattern === dep : pattern.test(dep))));
45
+ const requiringInstallList = new Set(Object.entries(options.dependencies).filter(([, { requireInstall }]) => requireInstall).map(([dep]) => dep));
46
+ const isInstallNeeded = () => options.skipInstall !== undefined ? !options.skipInstall : (ngAddToRun.size > 0 || requiringInstallList.size > 0);
47
+ const editPackageJson = (packageJsonPath, packageToInstall, dependency, updateLists) => {
48
+ return (tree, context) => {
49
+ if (!tree.exists(packageJsonPath)) {
50
+ context.logger.warn(`The file ${packageJsonPath} does not exist, the dependency ${packageToInstall} will not be added`);
51
+ return tree;
52
+ }
53
+ const packageJsonContent = tree.readJson(packageJsonPath);
54
+ dependency.inManifest.forEach(({ range, types }) => {
55
+ (types || [dependencies_1.NodeDependencyType.Default]).forEach((depType) => {
56
+ if (packageJsonContent[depType]?.[packageToInstall]) {
57
+ if (range && semver.validRange(range)) {
58
+ const currentMinimalVersion = semver.minVersion(packageJsonContent[depType]?.[packageToInstall]);
59
+ const myRangeMinimalVersion = semver.minVersion(range);
60
+ if (currentMinimalVersion && myRangeMinimalVersion && semver.gt(myRangeMinimalVersion, currentMinimalVersion)) {
61
+ context.logger.debug(`The dependency ${packageToInstall} (${depType}@${range}) will be added in ${packageJsonPath}`);
62
+ packageJsonContent[depType][packageToInstall] = range;
63
+ }
64
+ else {
65
+ if (updateLists) {
66
+ ngAddToRun.delete(packageToInstall);
67
+ requiringInstallList.delete(packageToInstall);
68
+ }
69
+ context.logger.debug(`The dependency ${packageToInstall} (${depType}) is already in ${packageJsonPath}, it will not be added.`);
70
+ context.logger.debug(`Because its range is inferior or included to the current one (${range} < ${packageJsonContent[depType][packageToInstall]}) in targeted ${packageJsonPath}`);
71
+ }
72
+ }
73
+ else {
74
+ if (updateLists) {
75
+ ngAddToRun.delete(packageToInstall);
76
+ requiringInstallList.delete(packageToInstall);
77
+ }
78
+ context.logger.warn(`The dependency ${packageToInstall} (${depType}) will not added ` +
79
+ `because there is already this dependency with a defined range (${packageJsonContent[depType][packageToInstall]}) in targeted ${packageJsonPath}`);
80
+ }
81
+ }
82
+ else {
83
+ packageJsonContent[depType] ||= {};
84
+ packageJsonContent[depType][packageToInstall] = range;
85
+ context.logger.debug(`The dependency ${packageToInstall} (${depType}@${range}) will be added in ${packageJsonPath}`);
86
+ }
87
+ packageJsonContent[depType] = Object.keys(packageJsonContent[depType])
88
+ .sort()
89
+ .reduce((acc, key) => {
90
+ acc[key] = packageJsonContent[depType][key];
91
+ return acc;
92
+ }, {});
93
+ });
94
+ });
95
+ const content = JSON.stringify(packageJsonContent, null, 2);
96
+ tree.overwrite(packageJsonPath, content);
97
+ return tree;
98
+ };
99
+ };
100
+ const addDependencies = (tree) => {
101
+ const workspaceConfig = (0, utility_1.getWorkspaceConfig)(tree);
102
+ const workspaceProject = options.projectName && workspaceConfig?.projects?.[options.projectName] || undefined;
103
+ const projectDirectory = workspaceProject?.root;
104
+ return (0, schematics_1.chain)(Object.entries(options.dependencies)
105
+ .map(([packageName, dependencyDetails]) => {
106
+ const shouldRunInSubPackage = projectDirectory && !dependencyDetails.toWorkspaceOnly;
107
+ const rootPackageRule = editPackageJson('package.json', packageName, dependencyDetails, !shouldRunInSubPackage);
108
+ if (shouldRunInSubPackage) {
109
+ return (0, schematics_1.chain)([
110
+ rootPackageRule,
111
+ editPackageJson(path.posix.join(projectDirectory, 'package.json'), packageName, dependencyDetails, true)
112
+ ]);
113
+ }
114
+ return rootPackageRule;
115
+ }));
116
+ };
117
+ const runNgAddSchematics = (_, context) => {
118
+ const packageManager = options.packageManager || (0, utility_1.getPackageManager)();
119
+ const installId = isInstallNeeded() ? [context.addTask(new tasks_1.NodePackageInstallTask({ packageManager, quiet: true }), options.runAfterTasks)] : undefined;
120
+ if (installId !== undefined) {
121
+ context.logger.debug(`Schedule the installation of the workspace (${ngAddToRun.size > 0 ? 'for: ' + [...ngAddToRun].join(', ') : options.skipInstall ? 'skipped' : 'forced'})`);
122
+ }
123
+ const getOptions = (packageName, schema) => {
124
+ const schemaOptions = schema?.description.schemaJson?.properties;
125
+ return Object.fromEntries(Object.entries({ projectName: options.projectName, ...options.ngAddOptions, ...options.dependencies[packageName].ngAddOptions })
126
+ .filter(([key]) => !schemaOptions || !!schemaOptions[key]));
127
+ };
128
+ const finalTaskId = [...ngAddToRun]
129
+ .map((packageName) => {
130
+ let schematic;
131
+ try {
132
+ const collection = context.engine.createCollection(packageName);
133
+ schematic = collection.createSchematic('ng-add');
134
+ }
135
+ catch (e) {
136
+ context.logger.warn(`The package ${packageName} was not installed, the options check will be skipped`, e);
137
+ }
138
+ const schematicOptions = getOptions(packageName, schematic);
139
+ return { packageName, schematicOptions };
140
+ })
141
+ .reduce((ids, { packageName, schematicOptions }) => {
142
+ context.logger.debug(`Schedule the schematic ng-add for ${packageName}`);
143
+ return [...ids, context.addTask(new tasks_1.RunSchematicTask(packageName, 'ng-add', schematicOptions), ids)];
144
+ }, [...(installId || []), ...(options.runAfterTasks || [])]);
145
+ if (options.scheduleTaskCallback) {
146
+ options.scheduleTaskCallback(finalTaskId);
147
+ }
148
+ };
149
+ return (0, schematics_1.chain)([
150
+ addDependencies,
151
+ runNgAddSchematics
152
+ ]);
153
+ };
154
+ };
155
+ exports.setupDependencies = setupDependencies;
156
+ //# sourceMappingURL=dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/dependencies.ts"],"names":[],"mappings":";;;AAAA,2DAAuF;AACvF,2EAA8E;AAC9E,kCAAkC;AAElC,iCAAiC;AACjC,2CAAgI;AAChI,4DAA4F;AAC5F,qCAAuC;AAoEvC;;;;;;;GAOG;AACI,MAAM,uBAAuB,GAAG,CAAC,eAAuB,EAAE,IAAU,EAAE,WAAoB,EAAE,iBAA2B,EAAmC,EAAE;IACjK,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,e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AC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAE/D,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;gBACjC,OAAO,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC,CAAC;QAEF,OAAO,IAAA,kBAAK,EAAC;YACX,eAAe;YACf,kBAAkB;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;AAEJ,CAAC,CAAC;AA5HW,QAAA,iBAAiB,qBA4H5B"}
@@ -1,37 +1,4 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { NodeDependencyType } from '@schematics/angular/utility/dependencies';
3
- import type { PackageJson } from 'type-fest';
4
- import type { SchematicOptionObject } from '../../interfaces/index';
5
- import type { NgAddPackageOptions } from '../../tasks/index';
6
- /**
7
- * Install via `ng add` a list of npm packages.
8
- * @param packages List of packages to be installed via `ng add`
9
- * @param options install options
10
- * @param packageJsonPath path of the package json of the project where they will be installed
11
- */
12
- export declare function ngAddPackages(packages: string[], options?: Omit<NgAddPackageOptions, 'version'> & {
13
- version?: string | (string | undefined)[];
14
- }, packageJsonPath?: string): Rule;
15
- /**
16
- * Look for the peer dependencies and run ng add on the package requested version
17
- * @param packages list of the name of the packages needed
18
- * @param packageJsonPath path to package json that needs the peer to be resolved
19
- * @param type how to install the dependency (dev, peer for a library or default for an application)
20
- * @param options
21
- * @param parentPackageInfo for logging purposes
22
- */
23
- export declare function ngAddPeerDependencyPackages(packages: string[], packageJsonPath: string, type: NodeDependencyType | undefined, options: NgAddPackageOptions, parentPackageInfo?: string): Rule;
24
- /**
25
- * Register the given package in the Angular CLI schematics
26
- * @param packageJson PackageJson of the project containing the collection to add to the project
27
- * @param angularJsonFile Path to the Angular.json file. Will use the workspace root's angular.json if not specified
28
- */
29
- export declare function registerPackageCollectionSchematics(packageJson: PackageJson, angularJsonFile?: string): Rule;
30
- /**
31
- * Setup schematics default params in angular.json
32
- * @param schematicsDefaultParams default params to setup by schematic
33
- * @param overrideValue Define if the given value should override the one already defined in the workspace
34
- * @param angularJsonFile Path to the Angular.json file. Will use the workspace root's angular.json if not specified
35
- */
36
- export declare function setupSchematicsDefaultParams(schematicsDefaultParams: Record<string, SchematicOptionObject>, overrideValue?: boolean, angularJsonFile?: string): Rule;
1
+ export * from './schematics-register';
2
+ export * from './dependencies';
3
+ export * from './ng-add.helpers';
37
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,IAAI,EAA+B,MAAM,4BAA4B,CAAC;AAE/G,OAAO,EAAuB,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAInG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,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;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAY5G;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,EAAE,aAAa,UAAQ,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAgClK"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}