@nrwl/workspace 14.8.7 → 14.9.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE +22 -22
  3. package/README.md +5 -26
  4. package/executors.json +4 -2
  5. package/generators.json +7 -52
  6. package/index.d.ts +4 -10
  7. package/index.js +4 -42
  8. package/index.js.map +1 -1
  9. package/migrations.json +20 -1
  10. package/package.json +33 -44
  11. package/presets/core.json +4 -9
  12. package/presets/npm.json +4 -12
  13. package/src/executors/counter/schema.json +1 -0
  14. package/src/executors/run-commands/schema.json +9 -1
  15. package/src/executors/run-script/schema.json +1 -0
  16. package/src/generators/ci-workflow/ci-workflow.d.ts +1 -1
  17. package/src/generators/ci-workflow/ci-workflow.js +13 -0
  18. package/src/generators/ci-workflow/ci-workflow.js.map +1 -1
  19. package/src/generators/ci-workflow/files/azure/azure-pipelines.yml__tmpl__ +0 -2
  20. package/src/generators/ci-workflow/files/bitbucket-pipelines/bitbucket-pipelines.yml__tmpl__ +36 -0
  21. package/src/generators/ci-workflow/files/circleci/.circleci/config.yml__tmpl__ +1 -4
  22. package/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ +3 -3
  23. package/src/generators/ci-workflow/files/gitlab/.gitlab-ci.yml__tmpl__ +47 -0
  24. package/src/generators/ci-workflow/schema.json +5 -3
  25. package/src/generators/convert-to-nx-project/convert-to-nx-project.d.ts +1 -2
  26. package/src/generators/convert-to-nx-project/convert-to-nx-project.js +62 -38
  27. package/src/generators/convert-to-nx-project/convert-to-nx-project.js.map +1 -1
  28. package/src/generators/convert-to-nx-project/schema.d.ts +2 -0
  29. package/src/generators/convert-to-nx-project/schema.json +11 -6
  30. package/src/generators/library/files/lib/__dot__babelrc__tmpl__ +1 -1
  31. package/src/generators/library/files/lib/tsconfig.lib.json +2 -2
  32. package/src/generators/library/library.d.ts +2 -1
  33. package/src/generators/library/library.js +44 -33
  34. package/src/generators/library/library.js.map +1 -1
  35. package/src/generators/library/schema.d.ts +1 -1
  36. package/src/generators/library/schema.json +9 -4
  37. package/src/generators/move/lib/create-project-configuration-in-new-destination.d.ts +3 -0
  38. package/src/generators/move/lib/{move-project-configuration.js → create-project-configuration-in-new-destination.js} +6 -9
  39. package/src/generators/move/lib/create-project-configuration-in-new-destination.js.map +1 -0
  40. package/src/generators/move/lib/{move-project.d.ts → move-project-files.d.ts} +1 -1
  41. package/src/generators/move/lib/{move-project.js → move-project-files.js} +4 -4
  42. package/src/generators/move/lib/move-project-files.js.map +1 -0
  43. package/src/generators/move/lib/update-cypress-config.js +8 -2
  44. package/src/generators/move/lib/update-cypress-config.js.map +1 -1
  45. package/src/generators/move/lib/update-default-project.js +4 -5
  46. package/src/generators/move/lib/update-default-project.js.map +1 -1
  47. package/src/generators/move/lib/update-implicit-dependencies.d.ts +0 -2
  48. package/src/generators/move/lib/update-implicit-dependencies.js +0 -2
  49. package/src/generators/move/lib/update-implicit-dependencies.js.map +1 -1
  50. package/src/generators/move/lib/update-imports.js +28 -18
  51. package/src/generators/move/lib/update-imports.js.map +1 -1
  52. package/src/generators/move/move.js +5 -4
  53. package/src/generators/move/move.js.map +1 -1
  54. package/src/generators/move/schema.json +2 -1
  55. package/src/generators/{workspace/files → new/files-integrated-repo}/__dot__gitignore +2 -2
  56. package/src/generators/{workspace/files → new/files-integrated-repo}/__dot__vscode/extensions.json__tmpl__ +1 -1
  57. package/src/generators/new/files-integrated-repo/package.json__tmpl__ +14 -0
  58. package/src/generators/new/files-package-based-repo/__dot__gitignore +39 -0
  59. package/src/generators/new/files-package-based-repo/__dot__vscode/extensions.json__tmpl__ +8 -0
  60. package/src/generators/new/files-package-based-repo/package.json__tmpl__ +13 -0
  61. package/src/generators/new/files-readme/README.md.template +21 -0
  62. package/src/generators/new/files-root-app/__dot__gitignore +39 -0
  63. package/src/generators/new/files-root-app/__dot__vscode/extensions.json__tmpl__ +6 -0
  64. package/src/generators/new/files-root-app/package.json__tmpl__ +14 -0
  65. package/src/generators/new/generate-preset.d.ts +4 -0
  66. package/src/generators/new/generate-preset.js +131 -0
  67. package/src/generators/new/generate-preset.js.map +1 -0
  68. package/src/generators/new/generate-workspace-files.d.ts +3 -0
  69. package/src/generators/{workspace/workspace.js → new/generate-workspace-files.js} +81 -72
  70. package/src/generators/new/generate-workspace-files.js.map +1 -0
  71. package/src/generators/new/new.d.ts +11 -6
  72. package/src/generators/new/new.js +41 -212
  73. package/src/generators/new/new.js.map +1 -1
  74. package/src/generators/new/schema.json +16 -7
  75. package/src/generators/npm-package/npm-package.js +3 -6
  76. package/src/generators/npm-package/npm-package.js.map +1 -1
  77. package/src/generators/preset/preset.d.ts +1 -2
  78. package/src/generators/preset/preset.js +57 -255
  79. package/src/generators/preset/preset.js.map +1 -1
  80. package/src/generators/preset/schema.d.ts +5 -1
  81. package/src/generators/preset/schema.json +34 -7
  82. package/src/generators/remove/lib/check-project-is-safe-to-remove.d.ts +3 -0
  83. package/src/generators/remove/lib/check-project-is-safe-to-remove.js +26 -0
  84. package/src/generators/remove/lib/check-project-is-safe-to-remove.js.map +1 -0
  85. package/src/generators/remove/lib/check-targets.d.ts +1 -1
  86. package/src/generators/remove/lib/check-targets.js +33 -29
  87. package/src/generators/remove/lib/check-targets.js.map +1 -1
  88. package/src/generators/remove/lib/remove-project-references-in-config.d.ts +3 -0
  89. package/src/generators/remove/lib/remove-project-references-in-config.js +22 -0
  90. package/src/generators/remove/lib/remove-project-references-in-config.js.map +1 -0
  91. package/src/generators/remove/lib/update-jest-config.js +10 -5
  92. package/src/generators/remove/lib/update-jest-config.js.map +1 -1
  93. package/src/generators/remove/lib/update-tsconfig.d.ts +2 -2
  94. package/src/generators/remove/lib/update-tsconfig.js +23 -15
  95. package/src/generators/remove/lib/update-tsconfig.js.map +1 -1
  96. package/src/generators/remove/remove.js +6 -4
  97. package/src/generators/remove/remove.js.map +1 -1
  98. package/src/generators/remove/schema.json +2 -1
  99. package/src/generators/run-commands/run-commands.js +3 -1
  100. package/src/generators/run-commands/run-commands.js.map +1 -1
  101. package/src/generators/run-commands/schema.json +2 -1
  102. package/src/generators/utils/insert-import.js +10 -5
  103. package/src/generators/utils/insert-import.js.map +1 -1
  104. package/src/generators/utils/insert-statement.js +8 -3
  105. package/src/generators/utils/insert-statement.js.map +1 -1
  106. package/src/generators/utils/presets.d.ts +6 -5
  107. package/src/generators/utils/presets.js +5 -4
  108. package/src/generators/utils/presets.js.map +1 -1
  109. package/src/generators/workspace-generator/schema.json +3 -2
  110. package/src/migrations/update-12-5-0/add-target-dependencies.js +2 -2
  111. package/src/migrations/update-12-5-0/add-target-dependencies.js.map +1 -1
  112. package/src/migrations/update-13-0-0/config-locations/config-locations.d.ts +1 -1
  113. package/src/migrations/update-13-0-0/config-locations/config-locations.js +19 -9
  114. package/src/migrations/update-13-0-0/config-locations/config-locations.js.map +1 -1
  115. package/src/migrations/update-13-0-0/set-default-base-if-not-set.js +2 -2
  116. package/src/migrations/update-13-0-0/set-default-base-if-not-set.js.map +1 -1
  117. package/src/migrations/update-13-10-0/update-tasks-runner.js +4 -3
  118. package/src/migrations/update-13-10-0/update-tasks-runner.js.map +1 -1
  119. package/src/migrations/update-13-2-0/set-parallel-default.js +2 -2
  120. package/src/migrations/update-13-2-0/set-parallel-default.js.map +1 -1
  121. package/src/migrations/update-13-6-0/remove-old-task-runner-options.js +3 -3
  122. package/src/migrations/update-13-6-0/remove-old-task-runner-options.js.map +1 -1
  123. package/src/migrations/update-14-0-0/change-npm-script-executor.js +1 -1
  124. package/src/migrations/update-14-0-0/change-npm-script-executor.js.map +1 -1
  125. package/src/migrations/update-14-0-0/change-nx-json-presets.js +3 -3
  126. package/src/migrations/update-14-0-0/change-nx-json-presets.js.map +1 -1
  127. package/src/migrations/update-14-2-0/enable-source-analysis.js +14 -13
  128. package/src/migrations/update-14-2-0/enable-source-analysis.js.map +1 -1
  129. package/src/migrations/update-14-8-0/change-run-commands-executor.js +1 -1
  130. package/src/migrations/update-14-8-0/change-run-commands-executor.js.map +1 -1
  131. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.d.ts +3 -0
  132. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js +15 -0
  133. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js.map +1 -0
  134. package/src/utilities/assets.d.ts +2 -2
  135. package/src/utilities/buildable-libs-utils.d.ts +18 -7
  136. package/src/utilities/buildable-libs-utils.js +28 -13
  137. package/src/utilities/buildable-libs-utils.js.map +1 -1
  138. package/src/utilities/plugins/plugin-capabilities.d.ts +1 -3
  139. package/src/utilities/plugins/plugin-capabilities.js +2 -75
  140. package/src/utilities/plugins/plugin-capabilities.js.map +1 -1
  141. package/src/utilities/run-tasks-in-serial.d.ts +6 -0
  142. package/src/utilities/run-tasks-in-serial.js +6 -0
  143. package/src/utilities/run-tasks-in-serial.js.map +1 -1
  144. package/src/utilities/set-default-collection.js +5 -5
  145. package/src/utilities/set-default-collection.js.map +1 -1
  146. package/src/utilities/ts-config.d.ts +5 -0
  147. package/src/utilities/ts-config.js +40 -0
  148. package/src/utilities/ts-config.js.map +1 -0
  149. package/src/utilities/typescript/compilation.d.ts +1 -1
  150. package/src/utilities/typescript/compilation.js +22 -12
  151. package/src/utilities/typescript/compilation.js.map +1 -1
  152. package/src/utilities/typescript/find-nodes.d.ts +5 -2
  153. package/src/utilities/typescript/find-nodes.js +7 -25
  154. package/src/utilities/typescript/find-nodes.js.map +1 -1
  155. package/src/utilities/typescript/get-source-nodes.d.ts +4 -1
  156. package/src/utilities/typescript/get-source-nodes.js +3 -0
  157. package/src/utilities/typescript/get-source-nodes.js.map +1 -1
  158. package/src/utilities/typescript.d.ts +8 -4
  159. package/src/utilities/typescript.js +21 -38
  160. package/src/utilities/typescript.js.map +1 -1
  161. package/src/utilities/version-utils.d.ts +3 -0
  162. package/src/utilities/version-utils.js +7 -12
  163. package/src/utilities/version-utils.js.map +1 -1
  164. package/src/utils/ast-utils.d.ts +0 -123
  165. package/src/utils/ast-utils.js +5 -546
  166. package/src/utils/ast-utils.js.map +1 -1
  167. package/src/utils/cli-config-utils.d.ts +4 -3
  168. package/src/utils/cli-config-utils.js +4 -45
  169. package/src/utils/cli-config-utils.js.map +1 -1
  170. package/src/utils/lint.d.ts +0 -32
  171. package/src/utils/lint.js +0 -262
  172. package/src/utils/lint.js.map +1 -1
  173. package/src/utils/project-type.d.ts +1 -3
  174. package/src/utils/project-type.js +1 -8
  175. package/src/utils/project-type.js.map +1 -1
  176. package/src/utils/rules/add-install-task.d.ts +1 -1
  177. package/src/utils/rules/add-install-task.js +2 -2
  178. package/src/utils/rules/add-install-task.js.map +1 -1
  179. package/src/utils/rules/deleteFile.d.ts +1 -1
  180. package/src/utils/rules/format-files.js +0 -19
  181. package/src/utils/rules/format-files.js.map +1 -1
  182. package/src/utils/rules/workspace.d.ts +1 -1
  183. package/src/utils/strings.d.ts +12 -0
  184. package/src/utils/strings.js +12 -0
  185. package/src/utils/strings.js.map +1 -1
  186. package/src/utils/testing-utils.d.ts +1 -1
  187. package/src/utils/testing-utils.js +6 -6
  188. package/src/utils/testing-utils.js.map +1 -1
  189. package/src/utils/testing.d.ts +1 -1
  190. package/src/utils/versions.d.ts +3 -4
  191. package/src/utils/versions.js +6 -5
  192. package/src/utils/versions.js.map +1 -1
  193. package/src/utils/workspace.d.ts +1 -1
  194. package/src/generators/convert-to-nx-project/utils/get-project-configuration-path.d.ts +0 -2
  195. package/src/generators/convert-to-nx-project/utils/get-project-configuration-path.js +0 -9
  196. package/src/generators/convert-to-nx-project/utils/get-project-configuration-path.js.map +0 -1
  197. package/src/generators/move/lib/move-project-configuration.d.ts +0 -3
  198. package/src/generators/move/lib/move-project-configuration.js.map +0 -1
  199. package/src/generators/move/lib/move-project.js.map +0 -1
  200. package/src/generators/preset/files/pnpm-workspace/pnpm-workspace.yaml +0 -2
  201. package/src/generators/remove/lib/remove-project-config.d.ts +0 -8
  202. package/src/generators/remove/lib/remove-project-config.js +0 -32
  203. package/src/generators/remove/lib/remove-project-config.js.map +0 -1
  204. package/src/generators/utils/decorate-angular-cli.js__tmpl__ +0 -69
  205. package/src/generators/workspace/files/README.md__tmpl__ +0 -186
  206. package/src/generators/workspace/files/__dot__prettierignore +0 -4
  207. package/src/generators/workspace/files/package.json__tmpl__ +0 -18
  208. package/src/generators/workspace/schema.d.ts +0 -15
  209. package/src/generators/workspace/schema.json +0 -77
  210. package/src/generators/workspace/workspace.d.ts +0 -7
  211. package/src/generators/workspace/workspace.js.map +0 -1
  212. package/src/tslint/nxEnforceModuleBoundariesRule.d.ts +0 -14
  213. package/src/tslint/nxEnforceModuleBoundariesRule.js +0 -177
  214. package/src/tslint/nxEnforceModuleBoundariesRule.js.map +0 -1
  215. package/src/utilities/ast-utils.d.ts +0 -22
  216. package/src/utilities/ast-utils.js +0 -182
  217. package/src/utilities/ast-utils.js.map +0 -1
  218. package/src/utilities/create-package-json.d.ts +0 -10
  219. package/src/utilities/create-package-json.js +0 -87
  220. package/src/utilities/create-package-json.js.map +0 -1
  221. package/src/utilities/executor-options-utils.d.ts +0 -13
  222. package/src/utilities/executor-options-utils.js +0 -36
  223. package/src/utilities/executor-options-utils.js.map +0 -1
  224. package/src/utilities/generate-globs.d.ts +0 -6
  225. package/src/utilities/generate-globs.js +0 -75
  226. package/src/utilities/generate-globs.js.map +0 -1
  227. package/src/utilities/prettier.d.ts +0 -6
  228. package/src/utilities/prettier.js +0 -38
  229. package/src/utilities/prettier.js.map +0 -1
  230. package/src/utils/app-root.d.ts +0 -1
  231. package/src/utils/app-root.js +0 -8
  232. package/src/utils/app-root.js.map +0 -1
  233. package/src/utils/graph-utils.d.ts +0 -5
  234. package/src/utils/graph-utils.js +0 -116
  235. package/src/utils/graph-utils.js.map +0 -1
  236. package/src/utils/rules/check-project-exists.d.ts +0 -10
  237. package/src/utils/rules/check-project-exists.js +0 -24
  238. package/src/utils/rules/check-project-exists.js.map +0 -1
  239. package/src/utils/rules/move-npm-packages.d.ts +0 -11
  240. package/src/utils/rules/move-npm-packages.js +0 -76
  241. package/src/utils/rules/move-npm-packages.js.map +0 -1
  242. package/src/utils/rules/rename-npm-packages.d.ts +0 -10
  243. package/src/utils/rules/rename-npm-packages.js +0 -81
  244. package/src/utils/rules/rename-npm-packages.js.map +0 -1
  245. package/src/utils/rules/rename-package-imports.d.ts +0 -10
  246. package/src/utils/rules/rename-package-imports.js +0 -58
  247. package/src/utils/rules/rename-package-imports.js.map +0 -1
  248. package/src/utils/rules/to-js.d.ts +0 -8
  249. package/src/utils/rules/to-js.js +0 -77
  250. package/src/utils/rules/to-js.js.map +0 -1
  251. package/src/utils/rules/update-karma-conf.d.ts +0 -8
  252. package/src/utils/rules/update-karma-conf.js +0 -36
  253. package/src/utils/rules/update-karma-conf.js.map +0 -1
  254. package/src/utils/runtime-lint-utils.d.ts +0 -80
  255. package/src/utils/runtime-lint-utils.js +0 -307
  256. package/src/utils/runtime-lint-utils.js.map +0 -1
  257. package/src/utils/update-packages-in-package-json.d.ts +0 -3
  258. package/src/utils/update-packages-in-package-json.js +0 -56
  259. package/src/utils/update-packages-in-package-json.js.map +0 -1
  260. package/src/utils/update-task.d.ts +0 -2
  261. package/src/utils/update-task.js +0 -83
  262. package/src/utils/update-task.js.map +0 -1
  263. /package/src/generators/{workspace/files → library/files/root}/tsconfig.base.json +0 -0
  264. /package/src/generators/{workspace/files → new/files-integrated-repo}/__dot__editorconfig +0 -0
  265. /package/src/generators/{workspace/files → new/files-integrated-repo}/tools/generators/.gitkeep +0 -0
  266. /package/src/generators/{workspace/files → new/files-integrated-repo}/tools/tsconfig.tools.json +0 -0
@@ -1,8 +1,7 @@
1
1
  export declare const nxVersion: any;
2
- export declare const angularCliVersion = "~14.2.0";
3
- export declare const typescriptVersion = "~4.8.2";
4
- export declare const prettierVersion = "^2.6.2";
5
- export declare const tslintVersion = "~6.1.0";
2
+ export declare const typescriptVersion = "~4.9.5";
6
3
  export declare const typescriptESLintVersion = "^5.36.1";
7
4
  export declare const eslintVersion = "~8.15.0";
8
5
  export declare const eslintConfigPrettierVersion = "8.1.0";
6
+ export declare const angularCliVersion = "~15.2.0";
7
+ export declare const prettierVersion = "^2.6.2";
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.eslintConfigPrettierVersion = exports.eslintVersion = exports.typescriptESLintVersion = exports.tslintVersion = exports.prettierVersion = exports.typescriptVersion = exports.angularCliVersion = exports.nxVersion = void 0;
3
+ exports.prettierVersion = exports.angularCliVersion = exports.eslintConfigPrettierVersion = exports.eslintVersion = exports.typescriptESLintVersion = exports.typescriptVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
- exports.angularCliVersion = '~14.2.0';
6
- exports.typescriptVersion = '~4.8.2';
7
- exports.prettierVersion = '^2.6.2';
8
- exports.tslintVersion = '~6.1.0';
5
+ exports.typescriptVersion = '~4.9.5';
9
6
  exports.typescriptESLintVersion = '^5.36.1';
10
7
  exports.eslintVersion = '~8.15.0';
11
8
  exports.eslintConfigPrettierVersion = '8.1.0';
9
+ // TODO: remove when preset generation is reworked and
10
+ // deps are not installed from workspace
11
+ exports.angularCliVersion = '~15.2.0';
12
+ exports.prettierVersion = '^2.6.2';
12
13
  //# sourceMappingURL=versions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAElD,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,aAAa,GAAG,QAAQ,CAAC;AACzB,QAAA,uBAAuB,GAAG,SAAS,CAAC;AACpC,QAAA,aAAa,GAAG,SAAS,CAAC;AAC1B,QAAA,2BAA2B,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAElD,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,uBAAuB,GAAG,SAAS,CAAC;AACpC,QAAA,aAAa,GAAG,SAAS,CAAC;AAC1B,QAAA,2BAA2B,GAAG,OAAO,CAAC;AAEnD,sDAAsD;AACtD,wCAAwC;AAC3B,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAG,QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Tree, Rule } from '@angular-devkit/schematics';
1
+ import type { Tree, Rule } from '@angular-devkit/schematics';
2
2
  import { JsonArray, JsonObject, workspaces } from '@angular-devkit/core';
3
3
  import { ProjectDefinition, TargetDefinition } from '@angular-devkit/core/src/workspace';
4
4
  export declare function getWorkspace(tree: Tree, path?: string): Promise<workspaces.WorkspaceDefinition>;
@@ -1,2 +0,0 @@
1
- import { ProjectConfiguration } from '@nrwl/devkit';
2
- export declare function getProjectConfigurationPath(configuration: ProjectConfiguration): string;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getProjectConfigurationPath = void 0;
4
- const path_1 = require("path");
5
- function getProjectConfigurationPath(configuration) {
6
- return (0, path_1.join)(configuration.root, 'project.json');
7
- }
8
- exports.getProjectConfigurationPath = getProjectConfigurationPath;
9
- //# sourceMappingURL=get-project-configuration-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-project-configuration-path.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/convert-to-nx-project/utils/get-project-configuration-path.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAE5B,SAAgB,2BAA2B,CACzC,aAAmC;IAEnC,OAAO,IAAA,WAAI,EAAC,aAAa,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AAClD,CAAC;AAJD,kEAIC"}
@@ -1,3 +0,0 @@
1
- import { ProjectConfiguration, Tree } from '@nrwl/devkit';
2
- import { NormalizedSchema } from '../schema';
3
- export declare function moveProjectConfiguration(tree: Tree, schema: NormalizedSchema, projectConfig: ProjectConfiguration): void;
@@ -1 +0,0 @@
1
- {"version":3,"file":"move-project-configuration.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/move-project-configuration.ts"],"names":[],"mappings":";;;AAAA,yCAMsB;AAGtB,SAAgB,wBAAwB,CACtC,IAAU,EACV,MAAwB,EACxB,aAAmC;IAEnC,IAAI,aAAa,CAAC,IAAI,EAAE;QACtB,aAAa,CAAC,IAAI,GAAG,MAAM,CAAC,cAAc,CAAC;KAC5C;IAED,MAAM,YAAY,GAAG,IAAA,4BAAmB,EAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IACnE,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IACpD,MAAM,gBAAgB,GAAG,aAAa,CAAC,OAAO,CAC5C,IAAI,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,GAAG,CAAC,EACnC,MAAM,CAAC,yBAAyB,CACjC,CAAC;IAEF,SAAS;IACT,MAAM,UAAU,GAAyB,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAEtE,8BAA8B;IAC9B,IAAA,mCAA0B,EAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAErD,8CAA8C;IAC9C,IAAA,gCAAuB,EACrB,IAAI,EACJ,MAAM,CAAC,cAAc,EACrB,UAAU,EACV,YAAY,CACb,CAAC;AACJ,CAAC;AA7BD,4DA6BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"move-project.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/move-project.ts"],"names":[],"mappings":";;;AAAA,yCAAgF;AAChF,+BAAsC;AAGtC;;;;GAIG;AACH,SAAgB,WAAW,CACzB,IAAU,EACV,MAAwB,EACxB,OAA6B;IAE7B,IAAA,6BAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE;QAChD,oHAAoH;QACpH,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,0BAA0B,GAAG,IAAA,eAAQ,EAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAChE,MAAM,WAAW,GAAG,IAAA,WAAI,EACtB,MAAM,CAAC,yBAAyB,EAChC,0BAA0B,CAC3B,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACL,CAAC;AAhBD,kCAgBC"}
@@ -1,2 +0,0 @@
1
- packages:
2
- - 'packages/**'
@@ -1,8 +0,0 @@
1
- import { Schema } from '../schema';
2
- import { Tree } from '@nrwl/devkit';
3
- /**
4
- * Deletes the project from the workspace file
5
- *
6
- * @param schema The options provided to the schematic
7
- */
8
- export declare function removeProjectConfig(tree: Tree, schema: Schema): void;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeProjectConfig = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- const devkit_2 = require("@nrwl/devkit");
6
- /**
7
- * Deletes the project from the workspace file
8
- *
9
- * @param schema The options provided to the schematic
10
- */
11
- function removeProjectConfig(tree, schema) {
12
- (0, devkit_2.removeProjectConfiguration)(tree, schema.projectName);
13
- // Unset default project if deleting the default project
14
- const workspaceConfiguration = (0, devkit_2.readWorkspaceConfiguration)(tree);
15
- if (workspaceConfiguration.defaultProject &&
16
- workspaceConfiguration.defaultProject === schema.projectName) {
17
- const workspacePath = (0, devkit_2.getWorkspacePath)(tree);
18
- delete workspaceConfiguration.defaultProject;
19
- console.warn(`Default project was removed in ${workspacePath} because it was "${schema.projectName}". If you want a default project you should define a new one.`);
20
- (0, devkit_1.updateWorkspaceConfiguration)(tree, workspaceConfiguration);
21
- }
22
- // Remove implicit dependencies onto removed project
23
- (0, devkit_1.getProjects)(tree).forEach((project, projectName) => {
24
- if (project.implicitDependencies &&
25
- project.implicitDependencies.some((projectName) => projectName === schema.projectName)) {
26
- project.implicitDependencies = project.implicitDependencies.filter((projectName) => projectName !== schema.projectName);
27
- (0, devkit_1.updateProjectConfiguration)(tree, projectName, project);
28
- }
29
- });
30
- }
31
- exports.removeProjectConfig = removeProjectConfig;
32
- //# sourceMappingURL=remove-project-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-project-config.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/remove/lib/remove-project-config.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AACtB,yCAIsB;AAEtB;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,IAAU,EAAE,MAAc;IAC5D,IAAA,mCAA0B,EAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAErD,wDAAwD;IACxD,MAAM,sBAAsB,GAAG,IAAA,mCAA0B,EAAC,IAAI,CAAC,CAAC;IAChE,IACE,sBAAsB,CAAC,cAAc;QACrC,sBAAsB,CAAC,cAAc,KAAK,MAAM,CAAC,WAAW,EAC5D;QACA,MAAM,aAAa,GAAG,IAAA,yBAAgB,EAAC,IAAI,CAAC,CAAC;QAC7C,OAAO,sBAAsB,CAAC,cAAc,CAAC;QAC7C,OAAO,CAAC,IAAI,CACV,kCAAkC,aAAa,oBAAoB,MAAM,CAAC,WAAW,+DAA+D,CACrJ,CAAC;QAEF,IAAA,qCAA4B,EAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;KAC5D;IAED,oDAAoD;IACpD,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE;QACjD,IACE,OAAO,CAAC,oBAAoB;YAC5B,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAC/B,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,CACpD,EACD;YACA,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAChE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,CACpD,CAAC;YACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;SACxD;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAhCD,kDAgCC"}
@@ -1,69 +0,0 @@
1
- /**
2
- * This file decorates the Angular CLI with the Nx CLI to enable features such as computation caching
3
- * and faster execution of tasks.
4
- *
5
- * It does this by:
6
- *
7
- * - Patching the Angular CLI to warn you in case you accidentally use the undecorated ng command.
8
- * - Symlinking the ng to nx command, so all commands run through the Nx CLI
9
- * - Updating the package.json postinstall script to give you control over this script
10
- *
11
- * The Nx CLI decorates the Angular CLI, so the Nx CLI is fully compatible with it.
12
- * Every command you run should work the same when using the Nx CLI, except faster.
13
- *
14
- * Because of symlinking you can still type `ng build/test/lint` in the terminal. The ng command, in this case,
15
- * will point to nx, which will perform optimizations before invoking ng. So the Angular CLI is always invoked.
16
- * The Nx CLI simply does some optimizations before invoking the Angular CLI.
17
- *
18
- * To opt out of this patch:
19
- * - Replace occurrences of nx with ng in your package.json
20
- * - Remove the script from your postinstall script in your package.json
21
- * - Delete and reinstall your node_modules
22
- */
23
-
24
- const fs = require('fs');
25
- const os = require('os');
26
- const cp = require('child_process');
27
- const isWindows = os.platform() === 'win32';
28
- let output;
29
- try {
30
- output = require('@nrwl/workspace').output;
31
- } catch (e) {
32
- console.warn('Angular CLI could not be decorated to enable computation caching. Please ensure @nrwl/workspace is installed.');
33
- process.exit(0);
34
- }
35
-
36
- /**
37
- * Symlink of ng to nx, so you can keep using `ng build/test/lint` and still
38
- * invoke the Nx CLI and get the benefits of computation caching.
39
- */
40
- function symlinkNgCLItoNxCLI() {
41
- try {
42
- const ngPath = './node_modules/.bin/ng';
43
- const nxPath = './node_modules/.bin/nx';
44
- if (isWindows) {
45
- /**
46
- * This is the most reliable way to create symlink-like behavior on Windows.
47
- * Such that it works in all shells and works with npx.
48
- */
49
- ['', '.cmd', '.ps1'].forEach(ext => {
50
- if (fs.existsSync(nxPath + ext)) fs.writeFileSync(ngPath + ext, fs.readFileSync(nxPath + ext));
51
- });
52
- } else {
53
- // If unix-based, symlink
54
- cp.execSync(`ln -sf ./nx ${ngPath}`);
55
- }
56
- }
57
- catch(e) {
58
- output.error({ title: 'Unable to create a symlink from the Angular CLI to the Nx CLI:' + e.message });
59
- throw e;
60
- }
61
- }
62
-
63
- try {
64
- symlinkNgCLItoNxCLI();
65
- require('nx/src/adapter/decorate-cli').decorateCli();
66
- output.log({ title: 'Angular CLI has been decorated to enable computation caching.' });
67
- } catch(e) {
68
- output.error({ title: 'Decoration of the Angular CLI did not complete successfully' });
69
- }
@@ -1,186 +0,0 @@
1
- <% if(cli === 'angular' || preset === 'angular') { %>
2
-
3
- # <%= formattedNames.className %>
4
-
5
- This project was generated using [Nx](https://nx.dev).
6
-
7
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="450"></p>
8
-
9
- 🔎 **Smart, Fast and Extensible Build System**
10
-
11
- ## Quick Start & Documentation
12
-
13
- [Nx Documentation](https://nx.dev/getting-started/intro)
14
-
15
- [Mental model is a good starting point for those who like to understand things theoretically first.](https://nx.dev/concepts/mental-model)
16
-
17
- [Interactive Tutorial](https://nx.dev/getting-started/angular-tutorial)
18
-
19
- ## Adding capabilities to your workspace
20
-
21
- Nx supports many plugins which add capabilities for developing different types of applications and different tools.
22
-
23
- These capabilities include generating applications, libraries, etc as well as the devtools to test, and build projects as well.
24
-
25
- Below are our core plugins:
26
-
27
- - [Angular](https://angular.io)
28
- - `ng add @nrwl/angular`
29
- - [React](https://reactjs.org)
30
- - `ng add @nrwl/react`
31
- - Web (no framework frontends)
32
- - `ng add @nrwl/web`
33
- - [Nest](https://nestjs.com)
34
- - `ng add @nrwl/nest`
35
- - [Express](https://expressjs.com)
36
- - `ng add @nrwl/express`
37
- - [Node](https://nodejs.org)
38
- - `ng add @nrwl/node`
39
-
40
- There are also many [community plugins](https://nx.dev/community) you could add.
41
-
42
- ## Generate an application
43
-
44
- Run `ng g @nrwl/angular:app my-app` to generate an application.
45
-
46
- > You can use any of the plugins above to generate applications as well.
47
-
48
- When using Nx, you can create multiple applications and libraries in the same workspace.
49
-
50
- ## Generate a library
51
-
52
- Run `ng g @nrwl/angular:lib my-lib` to generate a library.
53
-
54
- > You can also use any of the plugins above to generate libraries as well.
55
-
56
- Libraries are shareable across libraries and applications. They can be imported from `@<%= name %>/mylib`.
57
-
58
- ## Development server
59
-
60
- Run `ng serve my-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
61
-
62
- ## Code scaffolding
63
-
64
- Run `ng g component my-component --project=my-app` to generate a new component.
65
-
66
- ## Build
67
-
68
- Run `ng build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
69
-
70
- ## Running unit tests
71
-
72
- Run `ng test my-app` to execute the unit tests via [Jest](https://jestjs.io).
73
-
74
- Run `nx affected:test` to execute the unit tests affected by a change.
75
-
76
- ## Running end-to-end tests
77
-
78
- Run `ng e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
79
-
80
- Run `nx affected:e2e` to execute the end-to-end tests affected by a change.
81
-
82
- ## Understand your workspace
83
-
84
- Run `nx graph` to see a diagram of the dependencies of your projects.
85
-
86
- ## Further help
87
-
88
- Visit the [Nx Documentation](https://nx.dev/angular) to learn more.
89
-
90
-
91
-
92
-
93
- <% } else { %>
94
-
95
- # <%= formattedNames.className %>
96
-
97
- This project was generated using [Nx](https://nx.dev).
98
-
99
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="450"></p>
100
-
101
- 🔎 **Smart, Fast and Extensible Build System**
102
-
103
- ## Adding capabilities to your workspace
104
-
105
- Nx supports many plugins which add capabilities for developing different types of applications and different tools.
106
-
107
- These capabilities include generating applications, libraries, etc as well as the devtools to test, and build projects as well.
108
-
109
- Below are our core plugins:
110
-
111
- - [React](https://reactjs.org)
112
- - `npm install --save-dev @nrwl/react`
113
- - Web (no framework frontends)
114
- - `npm install --save-dev @nrwl/web`
115
- - [Angular](https://angular.io)
116
- - `npm install --save-dev @nrwl/angular`
117
- - [Nest](https://nestjs.com)
118
- - `npm install --save-dev @nrwl/nest`
119
- - [Express](https://expressjs.com)
120
- - `npm install --save-dev @nrwl/express`
121
- - [Node](https://nodejs.org)
122
- - `npm install --save-dev @nrwl/node`
123
-
124
- There are also many [community plugins](https://nx.dev/community) you could add.
125
-
126
- ## Generate an application
127
-
128
- Run `nx g @nrwl/react:app my-app` to generate an application.
129
-
130
- > You can use any of the plugins above to generate applications as well.
131
-
132
- When using Nx, you can create multiple applications and libraries in the same workspace.
133
-
134
- ## Generate a library
135
-
136
- Run `nx g @nrwl/react:lib my-lib` to generate a library.
137
-
138
- > You can also use any of the plugins above to generate libraries as well.
139
-
140
- Libraries are shareable across libraries and applications. They can be imported from `@<%= name %>/mylib`.
141
-
142
- ## Development server
143
-
144
- Run `nx serve my-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
145
-
146
- ## Code scaffolding
147
-
148
- Run `nx g @nrwl/react:component my-component --project=my-app` to generate a new component.
149
-
150
- ## Build
151
-
152
- Run `nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
153
-
154
- ## Running unit tests
155
-
156
- Run `nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).
157
-
158
- Run `nx affected:test` to execute the unit tests affected by a change.
159
-
160
- ## Running end-to-end tests
161
-
162
- Run `nx e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
163
-
164
- Run `nx affected:e2e` to execute the end-to-end tests affected by a change.
165
-
166
- ## Understand your workspace
167
-
168
- Run `nx graph` to see a diagram of the dependencies of your projects.
169
-
170
- ## Further help
171
-
172
- Visit the [Nx Documentation](https://nx.dev) to learn more.
173
-
174
- <% } %>
175
-
176
- ## ☁ Nx Cloud
177
-
178
- ### Distributed Computation Caching & Distributed Task Execution
179
-
180
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-cloud-card.png"></p>
181
-
182
- Nx Cloud pairs with Nx in order to enable you to build and test code more rapidly, by up to 10 times. Even teams that are new to Nx can connect to Nx Cloud and start saving time instantly.
183
-
184
- Teams using Nx gain the advantage of building full-stack applications with their preferred framework alongside Nx’s advanced code generation and project dependency graph, plus a unified experience for both frontend and backend developers.
185
-
186
- Visit [Nx Cloud](https://nx.app/) to learn more.
@@ -1,4 +0,0 @@
1
- # Add files here to ignore them from prettier formatting
2
-
3
- /dist
4
- /coverage
@@ -1,18 +0,0 @@
1
- {
2
- "name": "<%= formattedNames.fileName %>",
3
- "version": "0.0.0",
4
- "license": "MIT",
5
- "scripts": {
6
- },
7
- "private": true,
8
- "dependencies": {
9
- },
10
- "devDependencies": {
11
- <% if(cli === 'angular') { %>"@angular/cli": "<%= angularCliVersion %>",<% } %>
12
- "nx": "<%= nxVersion %>",
13
- "@nrwl/cli": "<%= nxVersion %>",
14
- "@nrwl/workspace": "<%= nxVersion %>",
15
- "typescript": "<%= typescriptVersion %>",
16
- "prettier": "<%= prettierVersion %>"
17
- }
18
- }
@@ -1,15 +0,0 @@
1
- import { PackageManager } from '@nrwl/devkit';
2
-
3
- export interface Schema {
4
- name: string;
5
- directory: string;
6
- npmScope?: string;
7
- skipInstall?: boolean;
8
- skipGit?: boolean;
9
- style?: string;
10
- commit?: { name: string; email: string; message?: string };
11
- cli: 'nx' | 'angular';
12
- preset: string;
13
- defaultBase: string;
14
- packageManager?: PackageManager;
15
- }
@@ -1,77 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SchematicsNxNgNew",
4
- "cli": "nx",
5
- "title": "Create an empty workspace",
6
- "description": "Create an empty workspace.",
7
- "type": "object",
8
- "properties": {
9
- "name": {
10
- "description": "The name of the workspace.",
11
- "type": "string",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-prompt": "What name would you like to use for the workspace?"
17
- },
18
- "style": {
19
- "description": "The file extension to be used for style files.",
20
- "type": "string",
21
- "default": "css",
22
- "x-prompt": {
23
- "message": "Which stylesheet format would you like to use?",
24
- "type": "list",
25
- "items": [
26
- { "value": "css", "label": "CSS" },
27
- {
28
- "value": "scss",
29
- "label": "SASS(.scss) [ http://sass-lang.com ]"
30
- },
31
- {
32
- "value": "styl",
33
- "label": "Stylus(.styl)[ http://stylus-lang.com ]"
34
- },
35
- {
36
- "value": "less",
37
- "label": "LESS [ http://lesscss.org ]"
38
- }
39
- ]
40
- }
41
- },
42
- "directory": {
43
- "type": "string",
44
- "format": "path",
45
- "description": "The directory name to create the workspace in.",
46
- "default": ""
47
- },
48
- "preset": {
49
- "type": "string",
50
- "description": "Preset of the workspace."
51
- },
52
- "npmScope": {
53
- "type": "string",
54
- "description": "Npm scope for importing libs."
55
- },
56
- "defaultBase": {
57
- "type": "string",
58
- "description": "Default base branch for affected."
59
- },
60
- "skipInstall": {
61
- "description": "Skip installing dependency packages.",
62
- "type": "boolean",
63
- "default": false
64
- },
65
- "packageManager": {
66
- "description": "The package manager used to install dependencies.",
67
- "type": "string",
68
- "enum": ["npm", "yarn", "pnpm"]
69
- },
70
- "cli": {
71
- "description": "CLI used for generating code and running tasks",
72
- "type": "string",
73
- "enum": ["nx", "angular"],
74
- "default": "nx"
75
- }
76
- }
77
- }
@@ -1,7 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- import { Schema } from './schema';
3
- export declare const DEFAULT_NRWL_PRETTIER_CONFIG: {
4
- singleQuote: boolean;
5
- };
6
- export declare function workspaceGenerator(host: Tree, options: Schema): Promise<void>;
7
- export declare const workspaceSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/workspace/workspace.ts"],"names":[],"mappings":";;;;AAAA,yCAWsB;AAEtB,mDAK8B;AAC9B,2BAAkC;AAClC,+BAA8C;AAE9C,8CAA0C;AAC1C,+DAAiE;AAEpD,QAAA,4BAA4B,GAAG;IAC1C,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,SAAS,kBAAkB,CAAC,IAAU,EAAE,OAAe;IACrD,MAAM,WAAW,GAAG,IAAA,iBAAY,EAC9B,IAAA,WAAQ,EAAC,SAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,iCAAiC,CAAC,CAC7E,CAAC,QAAQ,EAAE,CAAC;IACb,IAAI,CAAC,KAAK,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,SAAS,EAAE,yBAAyB,CAAC,EAAE,WAAW,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAU,EAAE,OAAe;IACpD,IAAA,mBAAU,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE;QAC5D,IAAI,OAAO,CAAC,MAAM,KAAK,gBAAM,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,KAAK,gBAAM,CAAC,GAAG,EAAE;YACnE,yBAAyB,CAAC,IAAI,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC,oBAAoB,CAAC;YACjC,OAAO,IAAI,CAAC,cAAc,CAAC;YAC3B,OAAO,IAAI,CAAC,kBAAkB,CAAC;YAC/B,OAAO,IAAI,CAAC,eAAe,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAA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CAAC;AAEzE,SAAS,yBAAyB,CAAC,GAAQ,EAAE,GAAW,EAAE,KAAa;IACrE,MAAM,IAAI,qBAAQ,GAAG,CAAE,CAAC;IACxB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAC7B,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACjB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAC9B,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAe;IACvC,IAAI,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,IAAA,gCAAiB,GAAE,CAAC;IAC7D,qCACE,QAAQ,EAAE,OAAO,CAAC,IAAI,IACnB,OAAO,KACV,WAAW,IACX;AACJ,CAAC"}
@@ -1,14 +0,0 @@
1
- import * as Lint from 'tslint';
2
- import { IOptions } from 'tslint';
3
- import * as ts from 'typescript';
4
- import type { NxJsonConfiguration } from '@nrwl/devkit';
5
- import { MappedProjectGraph } from '../utils/runtime-lint-utils';
6
- import { TargetProjectLocator } from 'nx/src/utils/target-project-locator';
7
- export declare class Rule extends Lint.Rules.AbstractRule {
8
- private readonly projectPath?;
9
- private readonly projectGraph?;
10
- private readonly targetProjectLocator?;
11
- private readonly workspaceLayout?;
12
- constructor(options: IOptions, projectPath?: string, projectGraph?: MappedProjectGraph, targetProjectLocator?: TargetProjectLocator, workspaceLayout?: NxJsonConfiguration['workspaceLayout']);
13
- apply(sourceFile: ts.SourceFile): Lint.RuleFailure[];
14
- }