@o3r/schematics 11.6.0-prerelease.4 → 11.6.0-prerelease.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. package/cli/environment.js +1 -0
  2. package/package.json +28 -20
  3. package/schematics/ng-add/index.d.ts.map +1 -1
  4. package/schematics/ng-add/index.js +2 -2
  5. package/schematics/ng-add/schema.d.ts.map +1 -1
  6. package/src/interfaces/angular-workspace.d.ts.map +1 -1
  7. package/src/interfaces/index.d.ts +1 -1
  8. package/src/interfaces/index.d.ts.map +1 -1
  9. package/src/interfaces/index.js +1 -1
  10. package/src/interfaces/index.js.map +1 -1
  11. package/src/interfaces/rule-factories.d.ts.map +1 -1
  12. package/src/interfaces/schematic-option.d.ts.map +1 -1
  13. package/src/modules/index.d.ts +1 -1
  14. package/src/modules/index.d.ts.map +1 -1
  15. package/src/modules/index.js +1 -1
  16. package/src/modules/index.js.map +1 -1
  17. package/src/modules/modules.constants.d.ts.map +1 -1
  18. package/src/modules/modules.constants.js.map +1 -1
  19. package/src/modules/modules.display.rule.d.ts.map +1 -1
  20. package/src/modules/modules.display.rule.js +1 -2
  21. package/src/modules/modules.display.rule.js.map +1 -1
  22. package/src/modules/modules.helpers.d.ts +1 -1
  23. package/src/modules/modules.helpers.d.ts.map +1 -1
  24. package/src/modules/modules.helpers.js +5 -6
  25. package/src/modules/modules.helpers.js.map +1 -1
  26. package/src/public_api.d.ts +1 -1
  27. package/src/public_api.d.ts.map +1 -1
  28. package/src/public_api.js +1 -1
  29. package/src/public_api.js.map +1 -1
  30. package/src/rule-factories/add-imports/index.d.ts.map +1 -1
  31. package/src/rule-factories/add-imports/index.js +9 -5
  32. package/src/rule-factories/add-imports/index.js.map +1 -1
  33. package/src/rule-factories/check-packages-peers/index.d.ts.map +1 -1
  34. package/src/rule-factories/check-packages-peers/index.js +13 -12
  35. package/src/rule-factories/check-packages-peers/index.js.map +1 -1
  36. package/src/rule-factories/dev-tools/devtools-registration.d.ts +1 -3
  37. package/src/rule-factories/dev-tools/devtools-registration.d.ts.map +1 -1
  38. package/src/rule-factories/dev-tools/devtools-registration.js +34 -19
  39. package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -1
  40. package/src/rule-factories/eslint-fix/index.d.ts +1 -2
  41. package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
  42. package/src/rule-factories/eslint-fix/index.js +17 -18
  43. package/src/rule-factories/eslint-fix/index.js.map +1 -1
  44. package/src/rule-factories/get-test-frameworks/index.d.ts.map +1 -1
  45. package/src/rule-factories/get-test-frameworks/index.js +2 -2
  46. package/src/rule-factories/get-test-frameworks/index.js.map +1 -1
  47. package/src/rule-factories/index.d.ts +2 -3
  48. package/src/rule-factories/index.d.ts.map +1 -1
  49. package/src/rule-factories/index.js +2 -3
  50. package/src/rule-factories/index.js.map +1 -1
  51. package/src/rule-factories/ng-add/dependencies.d.ts +16 -1
  52. package/src/rule-factories/ng-add/dependencies.d.ts.map +1 -1
  53. package/src/rule-factories/ng-add/dependencies.js +32 -17
  54. package/src/rule-factories/ng-add/dependencies.js.map +1 -1
  55. package/src/rule-factories/ng-add/index.d.ts +1 -1
  56. package/src/rule-factories/ng-add/index.d.ts.map +1 -1
  57. package/src/rule-factories/ng-add/index.js +1 -1
  58. package/src/rule-factories/ng-add/index.js.map +1 -1
  59. package/src/rule-factories/ng-add/ng-add.helpers.d.ts +1 -1
  60. package/src/rule-factories/ng-add/ng-add.helpers.d.ts.map +1 -1
  61. package/src/rule-factories/ng-add/ng-add.helpers.js +22 -23
  62. package/src/rule-factories/ng-add/ng-add.helpers.js.map +1 -1
  63. package/src/rule-factories/ng-add/schematics-register.d.ts.map +1 -1
  64. package/src/rule-factories/ng-add/schematics-register.js +36 -28
  65. package/src/rule-factories/ng-add/schematics-register.js.map +1 -1
  66. package/src/rule-factories/remove-packages/index.d.ts.map +1 -1
  67. package/src/rule-factories/remove-packages/index.js +9 -9
  68. package/src/rule-factories/remove-packages/index.js.map +1 -1
  69. package/src/rule-factories/update-imports/list-of-vars.js.map +1 -1
  70. package/src/rule-factories/update-imports/update-imports-with-scope.d.ts.map +1 -1
  71. package/src/rule-factories/update-imports/update-imports-with-scope.js +3 -2
  72. package/src/rule-factories/update-imports/update-imports-with-scope.js.map +1 -1
  73. package/src/rule-factories/update-imports/update-ts-imports.d.ts.map +1 -1
  74. package/src/rule-factories/update-imports/update-ts-imports.js +3 -3
  75. package/src/rule-factories/update-imports/update-ts-imports.js.map +1 -1
  76. package/src/rule-factories/vscode-extensions/index.d.ts.map +1 -1
  77. package/src/rule-factories/vscode-extensions/index.js +5 -5
  78. package/src/rule-factories/vscode-extensions/index.js.map +1 -1
  79. package/src/tasks/eslint/index.d.ts +1 -1
  80. package/src/tasks/eslint/index.d.ts.map +1 -1
  81. package/src/tasks/eslint/index.js +2 -2
  82. package/src/tasks/eslint/index.js.map +1 -1
  83. package/src/tasks/link/index.d.ts.map +1 -1
  84. package/src/tasks/link/index.js.map +1 -1
  85. package/src/tasks/ng-add/index.d.ts.map +1 -1
  86. package/src/tasks/package-manager/interfaces.d.ts.map +1 -1
  87. package/src/tasks/package-manager/npm-exec.d.ts.map +1 -1
  88. package/src/tasks/package-manager/npm-exec.js.map +1 -1
  89. package/src/tasks/package-manager/npm-install.d.ts.map +1 -1
  90. package/src/tasks/package-manager/npm-install.js +1 -1
  91. package/src/tasks/package-manager/npm-install.js.map +1 -1
  92. package/src/tasks/package-manager/npm-run.d.ts.map +1 -1
  93. package/src/tasks/package-manager/npm-run.js.map +1 -1
  94. package/src/utility/ast.d.ts.map +1 -1
  95. package/src/utility/ast.js +12 -15
  96. package/src/utility/ast.js.map +1 -1
  97. package/src/utility/builder.d.ts.map +1 -1
  98. package/src/utility/builder.js.map +1 -1
  99. package/src/utility/collection.d.ts.map +1 -1
  100. package/src/utility/collection.js +2 -3
  101. package/src/utility/collection.js.map +1 -1
  102. package/src/utility/component.d.ts.map +1 -1
  103. package/src/utility/component.js +2 -2
  104. package/src/utility/component.js.map +1 -1
  105. package/src/utility/dependencies.d.ts +1 -1
  106. package/src/utility/dependencies.d.ts.map +1 -1
  107. package/src/utility/dependencies.js +4 -5
  108. package/src/utility/dependencies.js.map +1 -1
  109. package/src/utility/environment.d.ts.map +1 -1
  110. package/src/utility/environment.js.map +1 -1
  111. package/src/utility/error.d.ts.map +1 -1
  112. package/src/utility/error.js.map +1 -1
  113. package/src/utility/file-info.d.ts +1 -1
  114. package/src/utility/file-info.d.ts.map +1 -1
  115. package/src/utility/file-info.js +1 -1
  116. package/src/utility/file-info.js.map +1 -1
  117. package/src/utility/generation.d.ts +1 -1
  118. package/src/utility/generation.d.ts.map +1 -1
  119. package/src/utility/generation.js +2 -15
  120. package/src/utility/generation.js.map +1 -1
  121. package/src/utility/gitignore.d.ts.map +1 -1
  122. package/src/utility/gitignore.js +2 -2
  123. package/src/utility/gitignore.js.map +1 -1
  124. package/src/utility/index.d.ts +2 -2
  125. package/src/utility/index.d.ts.map +1 -1
  126. package/src/utility/index.js +2 -2
  127. package/src/utility/index.js.map +1 -1
  128. package/src/utility/loaders.d.ts +1 -1
  129. package/src/utility/loaders.d.ts.map +1 -1
  130. package/src/utility/loaders.js +6 -6
  131. package/src/utility/loaders.js.map +1 -1
  132. package/src/utility/logo.d.ts +1 -1
  133. package/src/utility/logo.d.ts.map +1 -1
  134. package/src/utility/logo.js.map +1 -1
  135. package/src/utility/matching-peers.d.ts +3 -1
  136. package/src/utility/matching-peers.d.ts.map +1 -1
  137. package/src/utility/matching-peers.js +8 -6
  138. package/src/utility/matching-peers.js.map +1 -1
  139. package/src/utility/migration/migration.d.ts.map +1 -1
  140. package/src/utility/migration/migration.js +3 -3
  141. package/src/utility/migration/migration.js.map +1 -1
  142. package/src/utility/modules.d.ts +1 -1
  143. package/src/utility/modules.d.ts.map +1 -1
  144. package/src/utility/modules.js +16 -16
  145. package/src/utility/modules.js.map +1 -1
  146. package/src/utility/monorepo.d.ts +9 -4
  147. package/src/utility/monorepo.d.ts.map +1 -1
  148. package/src/utility/monorepo.js +0 -2
  149. package/src/utility/monorepo.js.map +1 -1
  150. package/src/utility/package-manager-runner.d.ts +2 -3
  151. package/src/utility/package-manager-runner.d.ts.map +1 -1
  152. package/src/utility/package-manager-runner.js +1 -4
  153. package/src/utility/package-manager-runner.js.map +1 -1
  154. package/src/utility/package-version.d.ts +0 -1
  155. package/src/utility/package-version.d.ts.map +1 -1
  156. package/src/utility/package-version.js +3 -4
  157. package/src/utility/package-version.js.map +1 -1
  158. package/src/utility/question.d.ts.map +1 -1
  159. package/src/utility/question.js.map +1 -1
  160. package/src/utility/routes.d.ts.map +1 -1
  161. package/src/utility/routes.js +6 -6
  162. package/src/utility/routes.js.map +1 -1
  163. package/src/utility/sub-entry.d.ts.map +1 -1
  164. package/src/utility/sub-entry.js.map +1 -1
  165. package/src/utility/template-property.helper.d.ts.map +1 -1
  166. package/src/utility/template-property.helper.js +2 -2
  167. package/src/utility/template-property.helper.js.map +1 -1
  168. package/src/utility/update-imports.d.ts +1 -1
  169. package/src/utility/update-imports.d.ts.map +1 -1
  170. package/src/utility/update-imports.js +10 -14
  171. package/src/utility/update-imports.js.map +1 -1
  172. package/src/utility/update-pipes.d.ts.map +1 -1
  173. package/src/utility/update-pipes.js +5 -5
  174. package/src/utility/update-pipes.js.map +1 -1
  175. package/src/utility/wrapper.d.ts.map +1 -1
  176. package/src/utility/wrapper.js +12 -11
  177. package/src/utility/wrapper.js.map +1 -1
@@ -5,8 +5,8 @@ exports.findFirstNodeOfKind = findFirstNodeOfKind;
5
5
  exports.findLastNodeOfKind = findLastNodeOfKind;
6
6
  exports.parseImportsFromFile = parseImportsFromFile;
7
7
  exports.getExportedSymbolsFromFile = getExportedSymbolsFromFile;
8
- const ts = require("typescript");
9
8
  const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
9
+ const ts = require("typescript");
10
10
  /**
11
11
  * Find the first node with the specific syntax kind
12
12
  * @param sourceFile Typescript file
@@ -18,12 +18,7 @@ function findFirstNodeOfKind(sourceFile, searchKind, node) {
18
18
  let ret = null;
19
19
  currentNode.forEachChild((n) => {
20
20
  if (!ret) {
21
- if (n.kind === searchKind) {
22
- ret = n;
23
- }
24
- else {
25
- ret = findFirstNodeOfKind(sourceFile, searchKind, n);
26
- }
21
+ ret = n.kind === searchKind ? n : findFirstNodeOfKind(sourceFile, searchKind, n);
27
22
  }
28
23
  });
29
24
  return ret;
@@ -44,7 +39,7 @@ function findLastNodeOfKind(sourceFile, searchKind, node) {
44
39
  else {
45
40
  const found = findLastNodeOfKind(sourceFile, searchKind, n);
46
41
  if (found) {
47
- ret = !ret ? found : (found.pos > ret.pos ? found : ret);
42
+ ret = ret ? (found.pos > ret.pos ? found : ret) : found;
48
43
  }
49
44
  }
50
45
  });
@@ -58,12 +53,12 @@ function parseImportsFromFile(sourceFile) {
58
53
  // First we look for all imports lines targeting an Otter package for which we know a mapping
59
54
  return (0, ast_utils_1.findNodes)(sourceFile, ts.SyntaxKind.ImportDeclaration).map((nodeImp) => {
60
55
  const imp = nodeImp;
61
- const importFrom = imp.moduleSpecifier.getText().replace(/['"]/g, '');
56
+ const importFrom = imp.moduleSpecifier.getText().replace(/["']/g, '');
62
57
  // We retrieve all the symbols listed in the import statement
63
58
  const namedImport = imp.importClause && imp.importClause.getChildAt(0);
64
- const imports = namedImport && ts.isNamedImports(namedImport) ?
65
- namedImport.elements.map((element) => element.getText()) :
66
- [];
59
+ const imports = namedImport && ts.isNamedImports(namedImport)
60
+ ? namedImport.elements.map((element) => element.getText())
61
+ : [];
67
62
  return { node: imp, symbols: imports, module: importFrom };
68
63
  });
69
64
  }
@@ -193,7 +188,7 @@ const addInterfaceToClassTransformerFactory = (interfaceToAdd, classIdentifier =
193
188
  const interfaceToImplements = (0, exports.generateImplementsExpressionWithTypeArguments)(interfaceToAdd);
194
189
  const newImplementsClauses = implementsClauses
195
190
  ? factory.updateHeritageClause(implementsClauses, [
196
- ...implementsClauses.types.filter((interfaceNode) => !interfacesToRemove.size
191
+ ...implementsClauses.types.filter((interfaceNode) => interfacesToRemove.size === 0
197
192
  || (ts.isIdentifier(interfaceNode.expression)
198
193
  && !interfacesToRemove.has(interfaceNode.expression.escapedText.toString()))),
199
194
  ...interfaceToImplements
@@ -263,7 +258,9 @@ const getSimpleUpdatedMethod = (node, factory, methodName, blockStatements) => {
263
258
  const originalMethod = node.members.find((0, exports.findMethodByName)(methodName));
264
259
  return originalMethod
265
260
  ? factory.updateMethodDeclaration(originalMethod, ts.getModifiers(originalMethod), originalMethod.asteriskToken, originalMethod.name, originalMethod.questionToken, originalMethod.typeParameters, originalMethod.parameters, originalMethod.type, originalMethod.body
266
- ? factory.updateBlock(originalMethod.body, originalMethod.body.statements.concat(blockStatements)) : factory.createBlock(blockStatements, true)) : factory.createMethodDeclaration([factory.createToken(ts.SyntaxKind.PublicKeyword)], undefined, factory.createIdentifier(methodName), undefined, undefined, [], undefined, factory.createBlock(blockStatements, true));
261
+ ? factory.updateBlock(originalMethod.body, originalMethod.body.statements.concat(blockStatements))
262
+ : factory.createBlock(blockStatements, true))
263
+ : factory.createMethodDeclaration([factory.createToken(ts.SyntaxKind.PublicKeyword)], undefined, factory.createIdentifier(methodName), undefined, undefined, [], undefined, factory.createBlock(blockStatements, true));
267
264
  };
268
265
  exports.getSimpleUpdatedMethod = getSimpleUpdatedMethod;
269
266
  /**
@@ -286,7 +283,7 @@ exports.isTestBedConfiguration = isTestBedConfiguration;
286
283
  const addImportsAndCodeBlockStatementAtSpecInitializationTransformerFactory = (imports, code) => (ctx) => (rootNode) => {
287
284
  const { factory } = ctx;
288
285
  const visit = (node) => {
289
- if (ts.isBlock(node) && !!node.statements.find(exports.isTestBedConfiguration)) {
286
+ if (ts.isBlock(node) && node.statements.some((statement) => (0, exports.isTestBedConfiguration)(statement))) {
290
287
  return factory.updateBlock(node, node.statements
291
288
  .reduce((acc, statement) => {
292
289
  if ((0, exports.isTestBedConfiguration)(statement)) {
@@ -1 +1 @@
1
- {"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../src/utility/ast.ts"],"names":[],"mappings":";;;AAS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,CAAC,CAAC,EAAE,CACpD,CACJ,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;AAtDS,QAAA,qEAAqE,yEAsD9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../src/utility/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE7E;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,KAAK,UAAQ,GAAG,gBAAgB,CAO5J"}
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../src/utility/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAEvB;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,KAAK,UAAQ,GAAG,gBAAgB,CAO5J"}
@@ -1 +1 @@
1
- {"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/utility/builder.ts"],"names":[],"mappings":";;AAUA,0CAOC;AAfD;;;;;;;GAOG;AACH,SAAgB,eAAe,CAAC,gBAAkC,EAAE,QAAgB,EAAE,cAAqC,EAAE,KAAK,GAAG,KAAK;IACxI,gBAAgB,CAAC,SAAS,KAAK,EAAE,CAAC;IAClC,IAAI,gBAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,oBAAoB,QAAQ,gBAAgB,CAAC,CAAC;IAChE,CAAC;IACD,gBAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC;IACtD,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/utility/builder.ts"],"names":[],"mappings":";;AAaA,0CAOC;AAfD;;;;;;;GAOG;AACH,SAAgB,eAAe,CAAC,gBAAkC,EAAE,QAAgB,EAAE,cAAqC,EAAE,KAAK,GAAG,KAAK;IACxI,gBAAgB,CAAC,SAAS,KAAK,EAAE,CAAC;IAClC,IAAI,gBAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,oBAAoB,QAAQ,gBAAgB,CAAC,CAAC;IAChE,CAAC;IACD,gBAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC;IACtD,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/utility/collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE1E;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,GAAG,eAAe,CAO5G;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC1C,CAAC,SAAS,mBAAmB,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,eAAe,GAAG,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAAG,CAAC,CAoBrM;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,gBAAgB,GAAG,CAAC,GAAG,SAAS,CAUxK"}
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/utility/collection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,eAAe,CAAC;AAEvB;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,GAAG,eAAe,CAO5G;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,mBAAmB,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,EAC7G,SAAS,EAAE,eAAe,GAAG,IAAI,EACjC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC7C,CAAC,CAoBH;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,gBAAgB,GAAG,CAAC,GAAG,SAAS,CASxK"}
@@ -39,7 +39,7 @@ function getDefaultOptionsForSchematic(workspace, collection, schematicName, opt
39
39
  return acc;
40
40
  }
41
41
  return Object.entries(schematics)
42
- .filter(([key, _]) => new RegExp(key.replace(/[*]/g, '.*')).test(`${collection}:${schematicName}`))
42
+ .filter(([key, _]) => new RegExp(key.replace(/\*/g, '.*')).test(`${collection}:${schematicName}`))
43
43
  .sort(([a], [b]) => (a.match(/\*/g)?.length || 0) - (b.match(/\*/g)?.length || 0))
44
44
  .map(([_, value]) => value)
45
45
  .reduce((config, value) => ({ ...config, ...value }), acc);
@@ -53,11 +53,10 @@ function getDefaultOptionsForSchematic(workspace, collection, schematicName, opt
53
53
  */
54
54
  function getSchematicOptions(config, context) {
55
55
  const schematicName = `${context.schematic.description.collection.name}:${context.schematic.description.name}`;
56
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
57
56
  const options = config.schematics && Object.entries(config.schematics)
58
57
  .filter(([name]) => new RegExp(name.replace(/\*/g, '.*')).test(schematicName))
59
58
  .sort(([a], [b]) => ((a.match(/\*/g)?.length || 0) - (b.match(/\*/g)?.length || 0)))
60
59
  .reduce((acc, [, opts]) => ({ ...acc, ...opts }), {});
61
- return options && Object.keys(options).length ? options : config.schematics?.['*:*'];
60
+ return options && Object.keys(options).length > 0 ? options : config.schematics?.['*:*'];
62
61
  }
63
62
  //# sourceMappingURL=collection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../src/utility/collection.ts"],"names":[],"mappings":";;AASA,oEAOC;AAWD,sEAqBC;AAQD,kDAUC;AA/DD;;;;;GAKG;AACH,SAAgB,4BAA4B,CAAC,SAA0B,EAAE,UAAkB;IACzF,SAAS,CAAC,GAAG,KAAK,EAAE,CAAC;IACrB,SAAS,CAAC,GAAG,CAAC,oBAAoB,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC/D,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACzD,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,6BAA6B,CACyB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AG,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,EAAS,CAAC,CAAC;IAE/D,OAAO,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC;AAC3F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAA6D,MAAM,OAAO,CAAC;AAGpG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,EAAE,CAAC,IAAI,KAAG,IAAI,IAAI,gBAEW,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,SAAU,EAAE,CAAC,IAAI,KAAG,IAAI,IAAI,gBAEa,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,kBAAkB,qBAAsB,EAAE,CAAC,gBAAgB,YAAwE,CAAC;AAEjJ;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qBAAsB,EAAE,CAAC,gBAAgB,YAEA,CAAC;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,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,IAAI,CA4B/B,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EACL,gBAAgB,EAGjB,MAAM,OAAO,CAAC;AAKf;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,EAAE,CAAC,IAAI,KAAG,IAAI,IAAI,gBAEW,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,SAAU,EAAE,CAAC,IAAI,KAAG,IAAI,IAAI,gBAEa,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,kBAAkB,qBAAsB,EAAE,CAAC,gBAAgB,YAAkG,CAAC;AAE3K;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qBAAsB,EAAE,CAAC,gBAAgB,YAE0B,CAAC;AAEpG,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;;;;;CA2DrF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kDAAkD,YACpD,MAAM,EAAE,KAChB,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,IAAI,CA4B/B,CAAC"}
@@ -22,14 +22,14 @@ exports.isO3rClassDecorator = isO3rClassDecorator;
22
22
  * Returns true if `classDeclaration` is an Otter component
23
23
  * @param classDeclaration
24
24
  */
25
- const isNgClassComponent = (classDeclaration) => (ts.getDecorators(classDeclaration) || []).some(exports.isNgClassDecorator);
25
+ const isNgClassComponent = (classDeclaration) => (ts.getDecorators(classDeclaration) || []).some((decorator) => (0, exports.isNgClassDecorator)(decorator));
26
26
  exports.isNgClassComponent = isNgClassComponent;
27
27
  /**
28
28
  * Returns true if `classDeclaration` is an Otter component
29
29
  * @param classDeclaration
30
30
  */
31
31
  const isO3rClassComponent = (classDeclaration) => (0, exports.isNgClassComponent)(classDeclaration)
32
- && (ts.getDecorators(classDeclaration) || []).some(exports.isO3rClassDecorator);
32
+ && (ts.getDecorators(classDeclaration) || []).some((decorator) => (0, exports.isO3rClassDecorator)(decorator));
33
33
  exports.isO3rClassComponent = isO3rClassComponent;
34
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);
35
35
  exports.askConfirmationToConvertComponent = askConfirmationToConvertComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/utility/component.ts"],"names":[],"mappings":";;;AACA,iCAAiC;AACjC,+BAAoG;AACpG,mCAAsC;AAEtC;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAA4B,EAAE,CAC5E,IAAA,wBAAkB,EAAC,IAAI,CAAC;OACrB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,WAAW,CAAC;AAF1D,QAAA,kBAAkB,sBAEwC;AAEvE;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CAAC,IAAa,EAA4B,EAAE,CAC7E,IAAA,wBAAkB,EAAC,IAAI,CAAC;OACrB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,cAAc,CAAC;AAF7D,QAAA,mBAAmB,uBAE0C;AAE1E;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,gBAAqC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,0BAAkB,CAAC,CAAC;AAApI,QAAA,kBAAkB,sBAAkH;AAEjJ;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CAAC,gBAAqC,EAAE,EAAE,CAC3E,IAAA,0BAAkB,EAAC,gBAAgB,CAAC;OACjC,CAAC,EAAE,CAAC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8B7D"}
@@ -1,5 +1,5 @@
1
- import { NodeDependency, NodeDependencyType } from '@schematics/angular/utility/dependencies';
2
1
  import { logging } from '@angular-devkit/core';
2
+ import { NodeDependency, NodeDependencyType } from '@schematics/angular/utility/dependencies';
3
3
  /**
4
4
  * Method to extract the provided package version range from a package.json file
5
5
  * @param packageNames list of package we want to retrieve the 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;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"}
1
+ {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,kBAAkB,EACnB,MAAM,0CAA0C,CAAC;AAKlD;;;;;;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,CAa9J;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"}
@@ -13,11 +13,10 @@ const fs = require("node:fs");
13
13
  function getExternalDependenciesVersionRange(packageNames, packageJsonPath, logger) {
14
14
  const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
15
15
  return packageNames.reduce((acc, packageName) => {
16
- acc[packageName] =
17
- packageJsonContent.generatorDependencies?.[packageName] ||
18
- packageJsonContent.peerDependencies?.[packageName] ||
19
- packageJsonContent.dependencies?.[packageName] ||
20
- packageJsonContent.devDependencies?.[packageName];
16
+ acc[packageName] = packageJsonContent.generatorDependencies?.[packageName]
17
+ || packageJsonContent.peerDependencies?.[packageName]
18
+ || packageJsonContent.dependencies?.[packageName]
19
+ || packageJsonContent.devDependencies?.[packageName];
21
20
  if (!acc[packageName]) {
22
21
  logger.warn(`Unable to retrieve version for ${packageName} in ${packageJsonPath}. Version set to "latest".`);
23
22
  acc[packageName] = 'latest';
@@ -1 +1 @@
1
- {"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":";;AAYA,kFAcC;AAQD,sDAEC;AApCD,8BAA8B;AAK9B;;;;;;GAMG;AACH,SAAgB,mCAAmC,CAAmB,YAAiB,EAAE,eAAuB,EAAE,MAAyB;IACzI,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CAAoE,CAAC;IAC/J,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAA+B,EAAE,WAAW,EAAE,EAAE;QAC1E,GAAG,CAAC,WAAW,CAAC;YACd,kBAAkB,CAAC,qBAAqB,EAAE,CAAC,WAAW,CAAC;gBACvD,kBAAkB,CAAC,gBAAgB,EAA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CAAC;eAClD,kBAAkB,CAAC,YAAY,EAAE,CAAC,WAAW,CAAC;eAC9C,kBAAkB,CAAC,eAAe,EAAE,CAAC,WAAW,CAAC,CAAC;QACrD,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACtB,MAAM,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;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,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAC3H,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/utility/environment.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAmB9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,cAWvC,CAAC"}
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/utility/environment.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAmB9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,cAWvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/utility/environment.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,8BAA8B;AAC9B,iCAAiC;AACjC,qEAA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AAE,CAAC,CAAC,CAAC,OAAiB,CAAC,CAAC,CAAC,SAAS;KAC9I,CAAC;IACF,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAC9F,CAAC,CAAC;AAnBW,QAAA,kBAAkB,sBAmB7B;AAEF;;;GAGG;AACI,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC9C,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAA,0BAAkB,GAAE,CAAC;IAClH,OAAO;6BACoB,MAAM,CAAC,YAAY;yBACvB,MAAM,CAAC,QAAQ;wBAChB,MAAM,CAAC,OAAO;kBACpB,QAAQ,CAAC,OAAO,IAAI,WAAW;0BACvB,kBAAkB,CAAC,IAAI;6BACpB,kBAAkB,CAAC,OAAO,IAAI,WAAW;mBACnD,SAAS,CAAC,OAAO,IAAI,WAAW;CAClD,CAAC;AACF,CAAC,CAAC;AAXW,QAAA,2BAA2B,+BAWtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/utility/error.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;gBACxB,KAAK,EAAE,GAAG;CAQvB"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/utility/error.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;gBACxB,KAAK,EAAE,GAAG;CAQvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utility/error.ts"],"names":[],"mappings":";;;AAAA,+CAA4D;AAE5D;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK;IACpC,YAAY,KAAU;QACpB,KAAK,CACH,KAAK,CAAC,QAAQ,EAAY;cACxB,mKAAmK;cACnK,8GAA8G;cAC9G,IAAA,yCAA2B,GAAE,CAChC,CAAC;IACJ,CAAC;CACF;AATD,kCASC"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utility/error.ts"],"names":[],"mappings":";;;AAAA,+CAEuB;AAEvB;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK;IACpC,YAAY,KAAU;QACpB,KAAK,CACH,KAAK,CAAC,QAAQ,EAAY;cACxB,mKAAmK;cACnK,8GAA8G;cAC9G,IAAA,yCAA2B,GAAE,CAChC,CAAC;IACJ,CAAC;CACF;AATD,kCASC"}
@@ -29,5 +29,5 @@ export declare function getModuleIndex(sourceFile: ts.SourceFile, sourceContent:
29
29
  * @param context
30
30
  * @param projectName
31
31
  */
32
- export declare function getFileInfo(tree: Tree, context: SchematicContext, projectName?: string | undefined): FileInfo;
32
+ export declare function getFileInfo(tree: Tree, context: SchematicContext, projectName?: string): FileInfo;
33
33
  //# sourceMappingURL=file-info.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-info.d.ts","sourceRoot":"","sources":["../../../src/utility/file-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,uCAAuC;IACvC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC,4CAA4C;IAC5C,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,SAAS,CAAC;IAEtC,8CAA8C;IAC9C,iBAAiB,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,SAAS,CAAC;IAEzC,6BAA6B;IAC7B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;IAEpB,gFAAgF;IAChF,YAAY,EAAE,OAAO,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ex(sourceFile, sourceContent) {
26
26
  }
27
27
  else {
28
28
  const index = sourceContent.indexOf(`@${decorator.name}`);
29
- if (index >= 0) {
29
+ if (index !== -1) {
30
30
  return {
31
31
  ngModulesMetadata: undefined,
32
32
  moduleIndex: index,
@@ -1 +1 @@
1
- {"version":3,"file":"file-info.js","sourceRoot":"","sources":["../../../src/utility/file-info.ts"],"names":[],"mappings":";;AAiCA,wCA8BC;AAQD,kCAmCC;AAzGD,qEAA6E;AAC7E,iCAAiC;AACjC,uCAAiD;AAyBjD;;;;GAIG;AACH,SAAgB,cAAc,CAAC,UAAyB,EAAE,aAAqB;IAC7E,MAAM,UAAU,GAAG;QACjB,EAAC,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAC;QACvC,EAAC,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAC;KACxC,CAAC;IACF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,cAAc,GAAG,IAAA,gCAAoB,EAAC,UAAU,EAAE,SAAS,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QACzF,IAAI,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;YACtB,OAAO;gBACL,iBAAiB,EAAE,cAA2B;gBAC9C,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;gBAChE,YAAY,EAAE,SAAS,CAAC,YAAY;aACrC,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;YAC1D,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;gBACf,OAAO;oBACL,iBAAiB,EAAE,SAAS;oBAC5B,WAAW,EAAE,KAAK;oBAClB,YAAY,EAAE,SAAS,CAAC,YAAY;iBACrC,CAAC;YACJ,CAAC;QACH,CA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,QAAQ,CAAC,iBAAiB,GAAG,WAAW,CAAC,iBAAiB,CAAC;IAC3D,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;IAC/C,QAAQ,CAAC,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAEjD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -2,7 +2,7 @@ import type { Tree } from '@angular-devkit/schematics';
2
2
  /** Type of generated item */
3
3
  export type GeneratedItemType = '@o3r/core:component' | '@o3r/core:page' | '@o3r/core:service' | '@o3r/core:store' | '@o3r/core:schematics-update' | '@o3r/testing:playwright-scenario' | '@o3r/testing:playwright-sanity';
4
4
  /** List of Otter items types */
5
- export declare const OTTER_ITEM_TYPES: GeneratedItemType[];
5
+ export declare const OTTER_ITEM_TYPES: ["@o3r/core:component", "@o3r/core:page", "@o3r/core:service", "@o3r/core:store", "@o3r/core:schematics-update", "@o3r/testing:playwright-scenario", "@o3r/testing:playwright-sanity"];
6
6
  /** List of the default destination paths for each generated entity */
7
7
  export declare const TYPES_DEFAULT_FOLDER: {
8
8
  [key in GeneratedItemType]: {
@@ -1 +1 @@
1
- {"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../../../src/utility/generation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAKvD,6BAA6B;AAC7B,MAAM,MAAM,iBAAiB,GAC3B,qBAAqB,GACrB,gBAAgB,GAChB,mBAAmB,GACnB,iBAAiB,GACjB,6BAA6B,GAC7B,kCAAkC,GAClC,gCAAgC,CAAC;AAEnC,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,EAAE,iBAAiB,EAQ/C,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,EAAE;KAAG,GAAG,IAAI,iBAAiB,GAAI;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAC;CAe7F,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAuBnJ"}
1
+ {"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../../../src/utility/generation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAWpC,6BAA6B;AAC7B,MAAM,MAAM,iBAAiB,GAC3B,qBAAqB,GACrB,gBAAgB,GAChB,mBAAmB,GACnB,iBAAiB,GACjB,6BAA6B,GAC7B,kCAAkC,GAClC,gCAAgC,CAAC;AAEnC,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,wLAQW,CAAC;AAEzC,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,EAAE;KAAG,GAAG,IAAI,iBAAiB,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE;CAQ9F,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAmBnJ"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TYPES_DEFAULT_FOLDER = exports.OTTER_ITEM_TYPES = void 0;
4
4
  exports.getDestinationPath = getDestinationPath;
5
+ const collection_1 = require("./collection");
5
6
  const error_1 = require("./error");
6
7
  const loaders_1 = require("./loaders");
7
- const collection_1 = require("./collection");
8
8
  /** List of Otter items types */
9
9
  exports.OTTER_ITEM_TYPES = [
10
10
  '@o3r/core:component',
@@ -17,19 +17,12 @@ exports.OTTER_ITEM_TYPES = [
17
17
  ];
18
18
  /** List of the default destination paths for each generated entity */
19
19
  exports.TYPES_DEFAULT_FOLDER = {
20
- // eslint-disable-next-line @typescript-eslint/naming-convention
21
20
  '@o3r/core:component': { app: 'src/components', lib: 'src/components' },
22
- // eslint-disable-next-line @typescript-eslint/naming-convention
23
21
  '@o3r/core:page': { app: 'src/app' },
24
- // eslint-disable-next-line @typescript-eslint/naming-convention
25
22
  '@o3r/core:service': { app: 'src/services', lib: 'src/services' },
26
- // eslint-disable-next-line @typescript-eslint/naming-convention
27
23
  '@o3r/core:store': { app: 'src/store', lib: 'src/store' },
28
- // eslint-disable-next-line @typescript-eslint/naming-convention
29
24
  '@o3r/core:schematics-update': { app: 'src/schematics', lib: 'src/schematics' },
30
- // eslint-disable-next-line @typescript-eslint/naming-convention
31
25
  '@o3r/testing:playwright-scenario': { app: 'e2e-playwright/scenarios' },
32
- // eslint-disable-next-line @typescript-eslint/naming-convention
33
26
  '@o3r/testing:playwright-sanity': { app: 'e2e-playwright/sanity' }
34
27
  };
35
28
  /**
@@ -43,16 +36,10 @@ function getDestinationPath(typeOfItem, directory, tree, project) {
43
36
  if (directory) {
44
37
  return directory;
45
38
  }
46
- /**
47
- * @param generatorName
48
- * @param propTree
49
- * @param propProject
50
- */
51
39
  const getSchematicsProperty = (generatorName, propTree, propProject) => {
52
40
  const workspace = (0, loaders_1.getWorkspaceConfig)(propTree);
53
41
  const [collection, schematicName] = generatorName.split(':');
54
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
55
- return workspace && (0, collection_1.getDefaultOptionsForSchematic)(workspace, collection, schematicName, { projectName: propProject || undefined }) || null;
42
+ return ((workspace && (0, collection_1.getDefaultOptionsForSchematic)(workspace, collection, schematicName, { projectName: propProject || undefined })) || null); // TODO: Check why `getDefaultOptionsForSchematic` expect a type matching `WorkspaceLayout`
56
43
  };
57
44
  const config = getSchematicsProperty(typeOfItem, tree, project);
58
45
  if (config && config.path) {
@@ -1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E,CAAA;CAAC,EAAE,gEA2BrG"}
1
+ {"version":3,"file":"gitignore.d.ts","sourceRoot":"","sources":["../../../src/utility/gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAEpC;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,gEA2BvG"}
@@ -11,9 +11,9 @@ function ignorePatterns(tree, patternsToAdd) {
11
11
  const isGitIgnorePresent = tree.exists(gitIgnoreFileName);
12
12
  let gitIgnoreFileContent = isGitIgnorePresent ? tree.readText(gitIgnoreFileName) : '';
13
13
  const filteredPatternsToAdd = patternsToAdd
14
- .map(({ description, patterns }) => ({ description, patterns: patterns.filter((pattern) => !new RegExp('^' + pattern.replace(/([*/\\.])/g, '\\$1')).test(gitIgnoreFileContent)) }))
14
+ .map(({ description, patterns }) => ({ description, patterns: patterns.filter((pattern) => !new RegExp('^' + pattern.replace(/([*./\\])/g, '\\$1')).test(gitIgnoreFileContent)) }))
15
15
  .filter(({ patterns }) => patterns.length);
16
- if (!filteredPatternsToAdd.length) {
16
+ if (filteredPatternsToAdd.length === 0) {
17
17
  return tree;
18
18
  }
19
19
  gitIgnoreFileContent += '\n' + filteredPatternsToAdd
@@ -1 +1 @@
1
- {"version":3,"file":"gitignore.js","sourceRoot":"","sources":["../../../src/utility/gitignore.ts"],"names":[],"mappings":";;AAOA,wCA2BC;AAhCD;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAU,EAAE,aAA2D;IACpG,MAAM,iBAAiB,GAAG,aAAa,CAAC;IACxC,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1D,IAAI,oBAAoB,GAAG,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,C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CAAC;IACrD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './ast';
2
+ export * from './builder';
2
3
  export * from './collection';
3
4
  export * from './component';
4
5
  export * from './dependencies';
@@ -10,6 +11,7 @@ export * from './gitignore';
10
11
  export * from './loaders';
11
12
  export * from './logo';
12
13
  export * from './matching-peers';
14
+ export * from './migration/migration';
13
15
  export * from './modules';
14
16
  export * from './monorepo';
15
17
  export * from './package-manager-runner';
@@ -20,7 +22,5 @@ export * from './sub-entry';
20
22
  export * from './template-property.helper';
21
23
  export * from './update-imports';
22
24
  export * from './update-pipes';
23
- export * from './builder';
24
25
  export * from './wrapper';
25
- export * from './migration/migration';
26
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./ast"), exports);
5
+ tslib_1.__exportStar(require("./builder"), exports);
5
6
  tslib_1.__exportStar(require("./collection"), exports);
6
7
  tslib_1.__exportStar(require("./component"), exports);
7
8
  tslib_1.__exportStar(require("./dependencies"), exports);
@@ -13,6 +14,7 @@ tslib_1.__exportStar(require("./gitignore"), exports);
13
14
  tslib_1.__exportStar(require("./loaders"), exports);
14
15
  tslib_1.__exportStar(require("./logo"), exports);
15
16
  tslib_1.__exportStar(require("./matching-peers"), exports);
17
+ tslib_1.__exportStar(require("./migration/migration"), exports);
16
18
  tslib_1.__exportStar(require("./modules"), exports);
17
19
  tslib_1.__exportStar(require("./monorepo"), exports);
18
20
  tslib_1.__exportStar(require("./package-manager-runner"), exports);
@@ -23,7 +25,5 @@ tslib_1.__exportStar(require("./sub-entry"), exports);
23
25
  tslib_1.__exportStar(require("./template-property.helper"), exports);
24
26
  tslib_1.__exportStar(require("./update-imports"), exports);
25
27
  tslib_1.__exportStar(require("./update-pipes"), exports);
26
- tslib_1.__exportStar(require("./builder"), exports);
27
28
  tslib_1.__exportStar(require("./wrapper"), exports);
28
- tslib_1.__exportStar(require("./migration/migration"), exports);
29
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,uDAA6B;AAC7B,sDAA4B;AAC5B,yDAA+B;AAC/B,wDAA8B;AAC9B,kDAAwB;AACxB,sDAA4B;AAC5B,uDAA6B;AAC7B,sDAA4B;AAC5B,oDAA0B;AAC1B,iDAAuB;AACvB,2DAAiC;AACjC,oDAA0B;AAC1B,qDAA2B;AAC3B,mEAAyC;AACzC,4DAAkC;AAClC,qDAA2B;AAC3B,mDAAyB;AACzB,sDAA4B;AAC5B,qEAA2C;AAC3C,2DAAiC;AACjC,yDAA+B;AAC/B,oDAA0B;AAC1B,oDAA0B;AAC1B,gEAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,oDAA0B;AAC1B,uDAA6B;AAC7B,sDAA4B;AAC5B,yDAA+B;AAC/B,wDAA8B;AAC9B,kDAAwB;AACxB,sDAA4B;AAC5B,uDAA6B;AAC7B,sDAA4B;AAC5B,oDAA0B;AAC1B,iDAAuB;AACvB,2DAAiC;AACjC,gEAAsC;AACtC,oDAA0B;AAC1B,qDAA2B;AAC3B,mEAAyC;AACzC,4DAAkC;AAClC,qDAA2B;AAC3B,mDAAyB;AACzB,sDAA4B;AAC5B,qEAA2C;AAC3C,2DAAiC;AACjC,yDAA+B;AAC/B,oDAA0B"}
@@ -46,8 +46,8 @@ export declare function getProjectNewDependenciesTypes(project?: WorkspaceProjec
46
46
  export declare function getTemplateFolder(rootPath: string, currentPath: string, templateFolder?: string): string;
47
47
  /**
48
48
  * Get the path of all the files in the Tree
49
- * @param basePath Base path from which starting the list
50
49
  * @param tree Schematics file tree
50
+ * @param basePath Base path from which starting the list
51
51
  * @param excludes Array of globs to be ignored
52
52
  * @param recursive determine if the function will walk through the sub folders
53
53
  */
@@ -1 +1 @@
1
- {"version":3,"file":"loaders.d.ts","sourceRoot":"","sources":["../../../src/utility/loaders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAuB,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAG9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAiB7E;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EAAE,iBAAiB,GAAE,MAAM,EAAsC,eAInK;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE,mBAAmB,SAAkB,GAAG,eAAe,GAAG,IAAI,CAKzJ;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,eAAe,SAAkB,gEAGzG;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,GAOlD,WAAW,CACtC;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,CAAC,EAAE,gBA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ED;;;;GAIG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,YAEhF;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,YAE1E;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,IAAI,YAE7D"}
@@ -13,16 +13,16 @@ exports.getFilesWithExtensionFromTree = getFilesWithExtensionFromTree;
13
13
  exports.getFilesFromRootOfWorkspaceProjects = getFilesFromRootOfWorkspaceProjects;
14
14
  exports.getFilesFromWorkspaceProjects = getFilesFromWorkspaceProjects;
15
15
  exports.getSourceFilesFromWorkspaceProjects = getSourceFilesFromWorkspaceProjects;
16
+ const path = require("node:path");
16
17
  const schematics_1 = require("@angular-devkit/schematics");
17
18
  const dependencies_1 = require("@schematics/angular/utility/dependencies");
18
19
  const minimatch_1 = require("minimatch");
19
- const path = require("node:path");
20
20
  function findFilesInTreeRec(memory, directory, fileMatchesCriteria, ignoreDirectories) {
21
- if (ignoreDirectories.some(i => directory.path.split(path.posix.sep).includes(i))) {
21
+ if (ignoreDirectories.some((i) => directory.path.split(path.posix.sep).includes(i))) {
22
22
  return memory;
23
23
  }
24
24
  directory.subfiles
25
- .filter(fileMatchesCriteria)
25
+ .filter((file) => fileMatchesCriteria(file))
26
26
  .forEach((file) => memory.add(directory.file(file)));
27
27
  directory.subdirs
28
28
  .forEach((dir) => findFilesInTreeRec(memory, directory.dir(dir), fileMatchesCriteria, ignoreDirectories));
@@ -90,18 +90,18 @@ function getProjectNewDependenciesTypes(project) {
90
90
  * @param templateFolder Folder containing the templates
91
91
  */
92
92
  function getTemplateFolder(rootPath, currentPath, templateFolder = 'templates') {
93
- const templateFolderPath = path.resolve(currentPath, templateFolder).replace(/[\\]/g, '/');
93
+ const templateFolderPath = path.resolve(currentPath, templateFolder).replace(/\\/g, '/');
94
94
  return path.relative(rootPath, templateFolderPath);
95
95
  }
96
96
  /**
97
97
  * Get the path of all the files in the Tree
98
- * @param basePath Base path from which starting the list
99
98
  * @param tree Schematics file tree
99
+ * @param basePath Base path from which starting the list
100
100
  * @param excludes Array of globs to be ignored
101
101
  * @param recursive determine if the function will walk through the sub folders
102
102
  */
103
103
  function getAllFilesInTree(tree, basePath = '/', excludes = [], recursive = true) {
104
- if (excludes.length && excludes.some((e) => (0, minimatch_1.minimatch)(basePath, e, { dot: true }))) {
104
+ if (excludes.some((e) => (0, minimatch_1.minimatch)(basePath, e, { dot: true }))) {
105
105
  return [];
106
106
  }
107
107
  return [