@nrwl/workspace 16.0.0-beta.0 → 16.0.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (380) hide show
  1. package/executors.json +3 -27
  2. package/generators.d.ts +1 -6
  3. package/generators.js +2 -13
  4. package/generators.js.map +1 -1
  5. package/generators.json +2 -106
  6. package/index.d.ts +1 -24
  7. package/index.js +1 -54
  8. package/index.js.map +1 -1
  9. package/package.json +7 -53
  10. package/tasks-runners/default.d.ts +1 -1
  11. package/tasks-runners/default.js +2 -3
  12. package/tasks-runners/default.js.map +1 -1
  13. package/testing.d.ts +1 -2
  14. package/testing.js +2 -8
  15. package/testing.js.map +1 -1
  16. package/README.md +0 -61
  17. package/migrations.json +0 -159
  18. package/src/core/file-utils.d.ts +0 -1
  19. package/src/core/file-utils.js +0 -5
  20. package/src/core/file-utils.js.map +0 -1
  21. package/src/core/project-graph.d.ts +0 -1
  22. package/src/core/project-graph.js +0 -5
  23. package/src/core/project-graph.js.map +0 -1
  24. package/src/executors/counter/counter.impl.d.ts +0 -12
  25. package/src/executors/counter/counter.impl.js +0 -48
  26. package/src/executors/counter/counter.impl.js.map +0 -1
  27. package/src/executors/counter/schema.json +0 -20
  28. package/src/executors/run-commands/compat.d.ts +0 -2
  29. package/src/executors/run-commands/compat.js +0 -6
  30. package/src/executors/run-commands/compat.js.map +0 -1
  31. package/src/executors/run-commands/run-commands.impl.d.ts +0 -3
  32. package/src/executors/run-commands/run-commands.impl.js +0 -7
  33. package/src/executors/run-commands/run-commands.impl.js.map +0 -1
  34. package/src/executors/run-commands/schema.json +0 -150
  35. package/src/executors/run-script/compat.d.ts +0 -2
  36. package/src/executors/run-script/compat.js +0 -6
  37. package/src/executors/run-script/compat.js.map +0 -1
  38. package/src/executors/run-script/run-script.impl.d.ts +0 -3
  39. package/src/executors/run-script/run-script.impl.js +0 -7
  40. package/src/executors/run-script/run-script.impl.js.map +0 -1
  41. package/src/executors/run-script/schema.json +0 -27
  42. package/src/generators/ci-workflow/ci-workflow.d.ts +0 -6
  43. package/src/generators/ci-workflow/ci-workflow.js +0 -46
  44. package/src/generators/ci-workflow/ci-workflow.js.map +0 -1
  45. package/src/generators/ci-workflow/files/azure/azure-pipelines.yml__tmpl__ +0 -58
  46. package/src/generators/ci-workflow/files/bitbucket-pipelines/bitbucket-pipelines.yml__tmpl__ +0 -36
  47. package/src/generators/ci-workflow/files/circleci/.circleci/config.yml__tmpl__ +0 -73
  48. package/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ +0 -29
  49. package/src/generators/ci-workflow/files/gitlab/.gitlab-ci.yml__tmpl__ +0 -47
  50. package/src/generators/ci-workflow/schema.json +0 -38
  51. package/src/generators/convert-to-nx-project/convert-to-nx-project.d.ts +0 -6
  52. package/src/generators/convert-to-nx-project/convert-to-nx-project.js +0 -86
  53. package/src/generators/convert-to-nx-project/convert-to-nx-project.js.map +0 -1
  54. package/src/generators/convert-to-nx-project/schema.d.ts +0 -7
  55. package/src/generators/convert-to-nx-project/schema.json +0 -38
  56. package/src/generators/library/files/lib/README.md +0 -14
  57. package/src/generators/library/files/lib/__dot__babelrc__tmpl__ +0 -3
  58. package/src/generators/library/files/lib/package.json__tmpl__ +0 -4
  59. package/src/generators/library/files/lib/src/index.ts__tmpl__ +0 -1
  60. package/src/generators/library/files/lib/src/lib/__fileName__.spec.ts__tmpl__ +0 -7
  61. package/src/generators/library/files/lib/src/lib/__fileName__.ts__tmpl__ +0 -3
  62. package/src/generators/library/files/lib/tsconfig.json +0 -13
  63. package/src/generators/library/files/lib/tsconfig.lib.json +0 -10
  64. package/src/generators/library/files/root/tsconfig.base.json +0 -20
  65. package/src/generators/library/library.d.ts +0 -15
  66. package/src/generators/library/library.js +0 -170
  67. package/src/generators/library/library.js.map +0 -1
  68. package/src/generators/library/schema.d.ts +0 -23
  69. package/src/generators/library/schema.json +0 -112
  70. package/src/generators/move/lib/check-destination.d.ts +0 -11
  71. package/src/generators/move/lib/check-destination.js +0 -24
  72. package/src/generators/move/lib/check-destination.js.map +0 -1
  73. package/src/generators/move/lib/create-project-configuration-in-new-destination.d.ts +0 -3
  74. package/src/generators/move/lib/create-project-configuration-in-new-destination.js +0 -17
  75. package/src/generators/move/lib/create-project-configuration-in-new-destination.js.map +0 -1
  76. package/src/generators/move/lib/move-project-files.d.ts +0 -8
  77. package/src/generators/move/lib/move-project-files.js +0 -22
  78. package/src/generators/move/lib/move-project-files.js.map +0 -1
  79. package/src/generators/move/lib/normalize-schema.d.ts +0 -3
  80. package/src/generators/move/lib/normalize-schema.js +0 -17
  81. package/src/generators/move/lib/normalize-schema.js.map +0 -1
  82. package/src/generators/move/lib/update-build-targets.d.ts +0 -6
  83. package/src/generators/move/lib/update-build-targets.js +0 -54
  84. package/src/generators/move/lib/update-build-targets.js.map +0 -1
  85. package/src/generators/move/lib/update-cypress-config.d.ts +0 -10
  86. package/src/generators/move/lib/update-cypress-config.js +0 -39
  87. package/src/generators/move/lib/update-cypress-config.js.map +0 -1
  88. package/src/generators/move/lib/update-default-project.d.ts +0 -10
  89. package/src/generators/move/lib/update-default-project.js +0 -21
  90. package/src/generators/move/lib/update-default-project.js.map +0 -1
  91. package/src/generators/move/lib/update-eslintrc-json.d.ts +0 -8
  92. package/src/generators/move/lib/update-eslintrc-json.js +0 -44
  93. package/src/generators/move/lib/update-eslintrc-json.js.map +0 -1
  94. package/src/generators/move/lib/update-implicit-dependencies.d.ts +0 -6
  95. package/src/generators/move/lib/update-implicit-dependencies.js +0 -20
  96. package/src/generators/move/lib/update-implicit-dependencies.js.map +0 -1
  97. package/src/generators/move/lib/update-imports.d.ts +0 -8
  98. package/src/generators/move/lib/update-imports.js +0 -159
  99. package/src/generators/move/lib/update-imports.js.map +0 -1
  100. package/src/generators/move/lib/update-jest-config.d.ts +0 -10
  101. package/src/generators/move/lib/update-jest-config.js +0 -35
  102. package/src/generators/move/lib/update-jest-config.js.map +0 -1
  103. package/src/generators/move/lib/update-package-json.d.ts +0 -8
  104. package/src/generators/move/lib/update-package-json.js +0 -22
  105. package/src/generators/move/lib/update-package-json.js.map +0 -1
  106. package/src/generators/move/lib/update-project-root-files.d.ts +0 -10
  107. package/src/generators/move/lib/update-project-root-files.js +0 -44
  108. package/src/generators/move/lib/update-project-root-files.js.map +0 -1
  109. package/src/generators/move/lib/update-readme.d.ts +0 -8
  110. package/src/generators/move/lib/update-readme.js +0 -22
  111. package/src/generators/move/lib/update-readme.js.map +0 -1
  112. package/src/generators/move/lib/update-storybook-config.d.ts +0 -10
  113. package/src/generators/move/lib/update-storybook-config.js +0 -44
  114. package/src/generators/move/lib/update-storybook-config.js.map +0 -1
  115. package/src/generators/move/lib/utils.d.ts +0 -22
  116. package/src/generators/move/lib/utils.js +0 -43
  117. package/src/generators/move/lib/utils.js.map +0 -1
  118. package/src/generators/move/move.d.ts +0 -5
  119. package/src/generators/move/move.js +0 -48
  120. package/src/generators/move/move.js.map +0 -1
  121. package/src/generators/move/schema.d.ts +0 -13
  122. package/src/generators/move/schema.json +0 -47
  123. package/src/generators/new/files-integrated-repo/__dot__editorconfig +0 -13
  124. package/src/generators/new/files-integrated-repo/__dot__gitignore +0 -39
  125. package/src/generators/new/files-integrated-repo/__dot__vscode/extensions.json__tmpl__ +0 -9
  126. package/src/generators/new/files-integrated-repo/package.json__tmpl__ +0 -14
  127. package/src/generators/new/files-integrated-repo/tools/generators/.gitkeep +0 -0
  128. package/src/generators/new/files-integrated-repo/tools/tsconfig.tools.json +0 -12
  129. package/src/generators/new/files-package-based-repo/__dot__gitignore +0 -39
  130. package/src/generators/new/files-package-based-repo/__dot__vscode/extensions.json__tmpl__ +0 -8
  131. package/src/generators/new/files-package-based-repo/package.json__tmpl__ +0 -13
  132. package/src/generators/new/files-readme/README.md.template +0 -21
  133. package/src/generators/new/files-root-app/__dot__gitignore +0 -39
  134. package/src/generators/new/files-root-app/__dot__vscode/extensions.json__tmpl__ +0 -6
  135. package/src/generators/new/files-root-app/package.json__tmpl__ +0 -14
  136. package/src/generators/new/generate-preset.d.ts +0 -4
  137. package/src/generators/new/generate-preset.js +0 -129
  138. package/src/generators/new/generate-preset.js.map +0 -1
  139. package/src/generators/new/generate-workspace-files.d.ts +0 -3
  140. package/src/generators/new/generate-workspace-files.js +0 -170
  141. package/src/generators/new/generate-workspace-files.js.map +0 -1
  142. package/src/generators/new/new.d.ts +0 -26
  143. package/src/generators/new/new.js +0 -73
  144. package/src/generators/new/new.js.map +0 -1
  145. package/src/generators/new/schema.json +0 -77
  146. package/src/generators/npm-package/files/index.js.template +0 -1
  147. package/src/generators/npm-package/npm-package.d.ts +0 -6
  148. package/src/generators/npm-package/npm-package.js +0 -42
  149. package/src/generators/npm-package/npm-package.js.map +0 -1
  150. package/src/generators/npm-package/schema.json +0 -21
  151. package/src/generators/preset/files/angular/app.module.d.ts +0 -0
  152. package/src/generators/preset/files/angular/app.module.js +0 -1
  153. package/src/generators/preset/files/angular/app.module.js.map +0 -1
  154. package/src/generators/preset/files/angular/app.module.ts +0 -0
  155. package/src/generators/preset/preset.d.ts +0 -4
  156. package/src/generators/preset/preset.js +0 -150
  157. package/src/generators/preset/preset.js.map +0 -1
  158. package/src/generators/preset/schema.d.ts +0 -17
  159. package/src/generators/preset/schema.json +0 -92
  160. package/src/generators/remove/lib/__fixtures__/jest-project.config.d.ts +0 -14
  161. package/src/generators/remove/lib/__fixtures__/jest-project.config.js +0 -18
  162. package/src/generators/remove/lib/__fixtures__/jest-project.config.js.map +0 -1
  163. package/src/generators/remove/lib/__fixtures__/jest.config.d.ts +0 -0
  164. package/src/generators/remove/lib/__fixtures__/jest.config.js +0 -9
  165. package/src/generators/remove/lib/__fixtures__/jest.config.js.map +0 -1
  166. package/src/generators/remove/lib/check-dependencies.d.ts +0 -7
  167. package/src/generators/remove/lib/check-dependencies.js +0 -27
  168. package/src/generators/remove/lib/check-dependencies.js.map +0 -1
  169. package/src/generators/remove/lib/check-project-is-safe-to-remove.d.ts +0 -3
  170. package/src/generators/remove/lib/check-project-is-safe-to-remove.js +0 -26
  171. package/src/generators/remove/lib/check-project-is-safe-to-remove.js.map +0 -1
  172. package/src/generators/remove/lib/check-targets.d.ts +0 -10
  173. package/src/generators/remove/lib/check-targets.js +0 -72
  174. package/src/generators/remove/lib/check-targets.js.map +0 -1
  175. package/src/generators/remove/lib/remove-project-references-in-config.d.ts +0 -3
  176. package/src/generators/remove/lib/remove-project-references-in-config.js +0 -22
  177. package/src/generators/remove/lib/remove-project-references-in-config.js.map +0 -1
  178. package/src/generators/remove/lib/remove-project.d.ts +0 -5
  179. package/src/generators/remove/lib/remove-project.js +0 -15
  180. package/src/generators/remove/lib/remove-project.js.map +0 -1
  181. package/src/generators/remove/lib/update-jest-config.d.ts +0 -6
  182. package/src/generators/remove/lib/update-jest-config.js +0 -64
  183. package/src/generators/remove/lib/update-jest-config.js.map +0 -1
  184. package/src/generators/remove/lib/update-tsconfig.d.ts +0 -8
  185. package/src/generators/remove/lib/update-tsconfig.js +0 -35
  186. package/src/generators/remove/lib/update-tsconfig.js.map +0 -1
  187. package/src/generators/remove/remove.d.ts +0 -5
  188. package/src/generators/remove/remove.js +0 -31
  189. package/src/generators/remove/remove.js.map +0 -1
  190. package/src/generators/remove/schema.d.ts +0 -10
  191. package/src/generators/remove/schema.json +0 -47
  192. package/src/generators/run-commands/run-commands.d.ts +0 -5
  193. package/src/generators/run-commands/run-commands.js +0 -30
  194. package/src/generators/run-commands/run-commands.js.map +0 -1
  195. package/src/generators/run-commands/schema.d.ts +0 -8
  196. package/src/generators/run-commands/schema.json +0 -49
  197. package/src/generators/utils/get-npm-package-version.d.ts +0 -1
  198. package/src/generators/utils/get-npm-package-version.js +0 -18
  199. package/src/generators/utils/get-npm-package-version.js.map +0 -1
  200. package/src/generators/utils/insert-import.d.ts +0 -2
  201. package/src/generators/utils/insert-import.js +0 -48
  202. package/src/generators/utils/insert-import.js.map +0 -1
  203. package/src/generators/utils/insert-statement.d.ts +0 -5
  204. package/src/generators/utils/insert-statement.js +0 -34
  205. package/src/generators/utils/insert-statement.js.map +0 -1
  206. package/src/generators/utils/presets.d.ts +0 -18
  207. package/src/generators/utils/presets.js +0 -23
  208. package/src/generators/utils/presets.js.map +0 -1
  209. package/src/generators/workspace-generator/files/index.ts__tmpl__ +0 -10
  210. package/src/generators/workspace-generator/files/schema.json__tmpl__ +0 -17
  211. package/src/generators/workspace-generator/schema.d.ts +0 -4
  212. package/src/generators/workspace-generator/schema.json +0 -25
  213. package/src/generators/workspace-generator/workspace-generator.d.ts +0 -3
  214. package/src/generators/workspace-generator/workspace-generator.js +0 -27
  215. package/src/generators/workspace-generator/workspace-generator.js.map +0 -1
  216. package/src/migrations/update-12-5-0/add-target-dependencies.d.ts +0 -3
  217. package/src/migrations/update-12-5-0/add-target-dependencies.js +0 -39
  218. package/src/migrations/update-12-5-0/add-target-dependencies.js.map +0 -1
  219. package/src/migrations/update-13-0-0/config-locations/config-locations.d.ts +0 -2
  220. package/src/migrations/update-13-0-0/config-locations/config-locations.js +0 -34
  221. package/src/migrations/update-13-0-0/config-locations/config-locations.js.map +0 -1
  222. package/src/migrations/update-13-0-0/set-default-base-if-not-set.d.ts +0 -3
  223. package/src/migrations/update-13-0-0/set-default-base-if-not-set.js +0 -30
  224. package/src/migrations/update-13-0-0/set-default-base-if-not-set.js.map +0 -1
  225. package/src/migrations/update-13-10-0/update-decorate-cli.d.ts +0 -3
  226. package/src/migrations/update-13-10-0/update-decorate-cli.js +0 -14
  227. package/src/migrations/update-13-10-0/update-decorate-cli.js.map +0 -1
  228. package/src/migrations/update-13-10-0/update-tasks-runner.d.ts +0 -3
  229. package/src/migrations/update-13-10-0/update-tasks-runner.js +0 -17
  230. package/src/migrations/update-13-10-0/update-tasks-runner.js.map +0 -1
  231. package/src/migrations/update-13-2-0/set-parallel-default.d.ts +0 -3
  232. package/src/migrations/update-13-2-0/set-parallel-default.js +0 -27
  233. package/src/migrations/update-13-2-0/set-parallel-default.js.map +0 -1
  234. package/src/migrations/update-13-3-0/update-tsc-executor-location.d.ts +0 -3
  235. package/src/migrations/update-13-3-0/update-tsc-executor-location.js +0 -31
  236. package/src/migrations/update-13-3-0/update-tsc-executor-location.js.map +0 -1
  237. package/src/migrations/update-13-6-0/remove-old-task-runner-options.d.ts +0 -3
  238. package/src/migrations/update-13-6-0/remove-old-task-runner-options.js +0 -17
  239. package/src/migrations/update-13-6-0/remove-old-task-runner-options.js.map +0 -1
  240. package/src/migrations/update-13-9-0/replace-tao-with-nx.d.ts +0 -3
  241. package/src/migrations/update-13-9-0/replace-tao-with-nx.js +0 -28
  242. package/src/migrations/update-13-9-0/replace-tao-with-nx.js.map +0 -1
  243. package/src/migrations/update-13-9-0/update-decorate-cli.d.ts +0 -3
  244. package/src/migrations/update-13-9-0/update-decorate-cli.js +0 -13
  245. package/src/migrations/update-13-9-0/update-decorate-cli.js.map +0 -1
  246. package/src/migrations/update-14-0-0/change-npm-script-executor.d.ts +0 -3
  247. package/src/migrations/update-14-0-0/change-npm-script-executor.js +0 -20
  248. package/src/migrations/update-14-0-0/change-npm-script-executor.js.map +0 -1
  249. package/src/migrations/update-14-0-0/change-nx-json-presets.d.ts +0 -3
  250. package/src/migrations/update-14-0-0/change-nx-json-presets.js +0 -21
  251. package/src/migrations/update-14-0-0/change-nx-json-presets.js.map +0 -1
  252. package/src/migrations/update-14-2-0/enable-source-analysis.d.ts +0 -3
  253. package/src/migrations/update-14-2-0/enable-source-analysis.js +0 -28
  254. package/src/migrations/update-14-2-0/enable-source-analysis.js.map +0 -1
  255. package/src/migrations/update-14-8-0/change-run-commands-executor.d.ts +0 -3
  256. package/src/migrations/update-14-8-0/change-run-commands-executor.js +0 -20
  257. package/src/migrations/update-14-8-0/change-run-commands-executor.js.map +0 -1
  258. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.d.ts +0 -3
  259. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js +0 -15
  260. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js.map +0 -1
  261. package/src/tasks-runner/cache.d.ts +0 -1
  262. package/src/tasks-runner/cache.js +0 -6
  263. package/src/tasks-runner/cache.js.map +0 -1
  264. package/src/tasks-runner/default-tasks-runner.d.ts +0 -1
  265. package/src/tasks-runner/default-tasks-runner.js +0 -5
  266. package/src/tasks-runner/default-tasks-runner.js.map +0 -1
  267. package/src/tasks-runner/life-cycle.d.ts +0 -1
  268. package/src/tasks-runner/life-cycle.js +0 -6
  269. package/src/tasks-runner/life-cycle.js.map +0 -1
  270. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +0 -1
  271. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -5
  272. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js.map +0 -1
  273. package/src/tasks-runner/tasks-runner-v2.d.ts +0 -1
  274. package/src/tasks-runner/tasks-runner-v2.js +0 -7
  275. package/src/tasks-runner/tasks-runner-v2.js.map +0 -1
  276. package/src/tasks-runner/tasks-runner.d.ts +0 -2
  277. package/src/tasks-runner/tasks-runner.js +0 -5
  278. package/src/tasks-runner/tasks-runner.js.map +0 -1
  279. package/src/tasks-runner/utils.d.ts +0 -1
  280. package/src/tasks-runner/utils.js +0 -5
  281. package/src/tasks-runner/utils.js.map +0 -1
  282. package/src/utilities/app-root.d.ts +0 -1
  283. package/src/utilities/app-root.js +0 -5
  284. package/src/utilities/app-root.js.map +0 -1
  285. package/src/utilities/buildable-libs-utils.d.ts +0 -41
  286. package/src/utilities/buildable-libs-utils.js +0 -316
  287. package/src/utilities/buildable-libs-utils.js.map +0 -1
  288. package/src/utilities/default-base.d.ts +0 -1
  289. package/src/utilities/default-base.js +0 -16
  290. package/src/utilities/default-base.js.map +0 -1
  291. package/src/utilities/fileutils.d.ts +0 -13
  292. package/src/utilities/fileutils.js +0 -52
  293. package/src/utilities/fileutils.js.map +0 -1
  294. package/src/utilities/output.d.ts +0 -1
  295. package/src/utilities/output.js +0 -5
  296. package/src/utilities/output.js.map +0 -1
  297. package/src/utilities/project-type.d.ts +0 -2
  298. package/src/utilities/project-type.js +0 -10
  299. package/src/utilities/project-type.js.map +0 -1
  300. package/src/utilities/run-tasks-in-serial.d.ts +0 -8
  301. package/src/utilities/run-tasks-in-serial.js +0 -19
  302. package/src/utilities/run-tasks-in-serial.js.map +0 -1
  303. package/src/utilities/set-default-collection.d.ts +0 -11
  304. package/src/utilities/set-default-collection.js +0 -24
  305. package/src/utilities/set-default-collection.js.map +0 -1
  306. package/src/utilities/ts-config.d.ts +0 -5
  307. package/src/utilities/ts-config.js +0 -40
  308. package/src/utilities/ts-config.js.map +0 -1
  309. package/src/utilities/typescript/compilation.d.ts +0 -22
  310. package/src/utilities/typescript/compilation.js +0 -120
  311. package/src/utilities/typescript/compilation.js.map +0 -1
  312. package/src/utilities/typescript/find-nodes.d.ts +0 -5
  313. package/src/utilities/typescript/find-nodes.js +0 -14
  314. package/src/utilities/typescript/find-nodes.js.map +0 -1
  315. package/src/utilities/typescript/get-source-nodes.d.ts +0 -5
  316. package/src/utilities/typescript/get-source-nodes.js +0 -22
  317. package/src/utilities/typescript/get-source-nodes.js.map +0 -1
  318. package/src/utilities/typescript.d.ts +0 -23
  319. package/src/utilities/typescript.js +0 -73
  320. package/src/utilities/typescript.js.map +0 -1
  321. package/src/utilities/version-utils.d.ts +0 -4
  322. package/src/utilities/version-utils.js +0 -14
  323. package/src/utilities/version-utils.js.map +0 -1
  324. package/src/utils/ast-utils.d.ts +0 -2
  325. package/src/utils/ast-utils.js +0 -8
  326. package/src/utils/ast-utils.js.map +0 -1
  327. package/src/utils/cli-config-utils.d.ts +0 -16
  328. package/src/utils/cli-config-utils.js +0 -30
  329. package/src/utils/cli-config-utils.js.map +0 -1
  330. package/src/utils/fileutils.d.ts +0 -14
  331. package/src/utils/fileutils.js +0 -57
  332. package/src/utils/fileutils.js.map +0 -1
  333. package/src/utils/lint.d.ts +0 -4
  334. package/src/utils/lint.js +0 -3
  335. package/src/utils/lint.js.map +0 -1
  336. package/src/utils/output.d.ts +0 -52
  337. package/src/utils/output.js +0 -134
  338. package/src/utils/output.js.map +0 -1
  339. package/src/utils/perf-logging.d.ts +0 -1
  340. package/src/utils/perf-logging.js +0 -11
  341. package/src/utils/perf-logging.js.map +0 -1
  342. package/src/utils/project-type.d.ts +0 -6
  343. package/src/utils/project-type.js +0 -29
  344. package/src/utils/project-type.js.map +0 -1
  345. package/src/utils/rules/add-install-task.d.ts +0 -4
  346. package/src/utils/rules/add-install-task.js +0 -15
  347. package/src/utils/rules/add-install-task.js.map +0 -1
  348. package/src/utils/rules/deleteFile.d.ts +0 -5
  349. package/src/utils/rules/deleteFile.js +0 -11
  350. package/src/utils/rules/deleteFile.js.map +0 -1
  351. package/src/utils/rules/format-files.d.ts +0 -4
  352. package/src/utils/rules/format-files.js +0 -55
  353. package/src/utils/rules/format-files.js.map +0 -1
  354. package/src/utils/rules/ng-add.d.ts +0 -8
  355. package/src/utils/rules/ng-add.js +0 -12
  356. package/src/utils/rules/ng-add.js.map +0 -1
  357. package/src/utils/rules/visit-not-ignored-files.d.ts +0 -3
  358. package/src/utils/rules/visit-not-ignored-files.js +0 -36
  359. package/src/utils/rules/visit-not-ignored-files.js.map +0 -1
  360. package/src/utils/rules/workspace.d.ts +0 -8
  361. package/src/utils/rules/workspace.js +0 -23
  362. package/src/utils/rules/workspace.js.map +0 -1
  363. package/src/utils/strings.d.ts +0 -107
  364. package/src/utils/strings.js +0 -160
  365. package/src/utils/strings.js.map +0 -1
  366. package/src/utils/testing-utils.d.ts +0 -47
  367. package/src/utils/testing-utils.js +0 -140
  368. package/src/utils/testing-utils.js.map +0 -1
  369. package/src/utils/testing.d.ts +0 -11
  370. package/src/utils/testing.js +0 -85
  371. package/src/utils/testing.js.map +0 -1
  372. package/src/utils/version-utils.d.ts +0 -1
  373. package/src/utils/version-utils.js +0 -5
  374. package/src/utils/version-utils.js.map +0 -1
  375. package/src/utils/versions.d.ts +0 -7
  376. package/src/utils/versions.js +0 -13
  377. package/src/utils/versions.js.map +0 -1
  378. package/src/utils/workspace.d.ts +0 -10
  379. package/src/utils/workspace.js +0 -90
  380. package/src/utils/workspace.js.map +0 -1
@@ -1,72 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkTargets = void 0;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nrwl/devkit");
6
- /**
7
- * Check whether the project to be removed has builders targetted by another project
8
- *
9
- * Throws an error if the project is in use, unless the `--forceRemove` option is used.
10
- *
11
- * @param schema The options provided to the schematic
12
- */
13
- function checkTargets(tree, schema) {
14
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
- if (schema.forceRemove) {
16
- return;
17
- }
18
- const graph = yield (0, devkit_1.createProjectGraphAsync)();
19
- const errors = [];
20
- (0, devkit_1.getProjects)(tree).forEach((projectConfig, projectName) => {
21
- if (projectName === schema.projectName) {
22
- return;
23
- }
24
- Object.entries(projectConfig.targets || {}).forEach(([, targetConfig]) => {
25
- checkIfProjectIsUsed(targetConfig, (value) => {
26
- try {
27
- const { project } = (0, devkit_1.parseTargetString)(value, graph);
28
- if (project === schema.projectName) {
29
- errors.push(`"${value}" is used by "${projectName}"`);
30
- }
31
- }
32
- catch (err) {
33
- /**
34
- * It threw because the target string was not
35
- * in the format of project:target:configuration
36
- *
37
- * In that case, we don't care about it.
38
- * So we can ignore this error.
39
- */
40
- }
41
- });
42
- });
43
- });
44
- if (errors.length > 0) {
45
- let message = `${schema.projectName} is still targeted by some projects:\n\n`;
46
- for (let error of errors) {
47
- message += `${error}\n`;
48
- }
49
- throw new Error(message);
50
- }
51
- });
52
- }
53
- exports.checkTargets = checkTargets;
54
- function checkIfProjectIsUsed(config, callback) {
55
- function recur(obj, key, value) {
56
- if (typeof value === 'string') {
57
- callback(value);
58
- }
59
- else if (Array.isArray(value)) {
60
- value.forEach((x, idx) => recur(value, idx, x));
61
- }
62
- else if (typeof value === 'object') {
63
- Object.entries(value).forEach(([k, v]) => {
64
- recur(value, k, v);
65
- });
66
- }
67
- }
68
- Object.entries(config).forEach(([k, v]) => {
69
- recur(config, k, v);
70
- });
71
- }
72
- //# sourceMappingURL=check-targets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-targets.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/remove/lib/check-targets.ts"],"names":[],"mappings":";;;;AAAA,yCAMsB;AAGtB;;;;;;GAMG;AACH,SAAsB,YAAY,CAAC,IAAU,EAAE,MAAc;;QAC3D,IAAI,MAAM,CAAC,WAAW,EAAE;YACtB,OAAO;SACR;QAED,MAAM,KAAK,GAAG,MAAM,IAAA,gCAAuB,GAAE,CAAC;QAC9C,MAAM,MAAM,GAAa,EAAE,CAAC;QAE5B,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,WAAW,EAAE,EAAE;YACvD,IAAI,WAAW,KAAK,MAAM,CAAC,WAAW,EAAE;gBACtC,OAAO;aACR;YACD,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,EAAE;gBACvE,oBAAoB,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE;oBAC3C,IAAI;wBACF,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,0BAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;wBACpD,IAAI,OAAO,KAAK,MAAM,CAAC,WAAW,EAAE;4BAClC,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,iBAAiB,WAAW,GAAG,CAAC,CAAC;yBACvD;qBACF;oBAAC,OAAO,GAAG,EAAE;wBACZ;;;;;;2BAMG;qBACJ;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;YACrB,IAAI,OAAO,GAAG,GAAG,MAAM,CAAC,WAAW,0CAA0C,CAAC;YAC9E,KAAK,IAAI,KAAK,IAAI,MAAM,EAAE;gBACxB,OAAO,IAAI,GAAG,KAAK,IAAI,CAAC;aACzB;YAED,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;SAC1B;IACH,CAAC;CAAA;AAxCD,oCAwCC;AAED,SAAS,oBAAoB,CAC3B,MAA2B,EAC3B,QAAsC;IAEtC,SAAS,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK;QAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,QAAQ,CAAC,KAAK,CAAC,CAAC;SACjB;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC/B,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;SACjD;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;gBACvC,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;QACxC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Schema } from '../schema';
2
- import { Tree } from '@nrwl/devkit';
3
- export declare function removeProjectReferencesInConfig(tree: Tree, schema: Schema): void;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeProjectReferencesInConfig = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- function removeProjectReferencesInConfig(tree, schema) {
6
- // Unset default project if deleting the default project
7
- const nxJson = (0, devkit_1.readNxJson)(tree);
8
- if (nxJson.defaultProject && nxJson.defaultProject === schema.projectName) {
9
- delete nxJson.defaultProject;
10
- (0, devkit_1.updateNxJson)(tree, nxJson);
11
- }
12
- // Remove implicit dependencies onto removed project
13
- (0, devkit_1.getProjects)(tree).forEach((project, projectName) => {
14
- if (project.implicitDependencies &&
15
- project.implicitDependencies.some((projectName) => projectName === schema.projectName)) {
16
- project.implicitDependencies = project.implicitDependencies.filter((projectName) => projectName !== schema.projectName);
17
- (0, devkit_1.updateProjectConfiguration)(tree, projectName, project);
18
- }
19
- });
20
- }
21
- exports.removeProjectReferencesInConfig = removeProjectReferencesInConfig;
22
- //# sourceMappingURL=remove-project-references-in-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-project-references-in-config.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/remove/lib/remove-project-references-in-config.ts"],"names":[],"mappings":";;;AACA,yCAOsB;AAEtB,SAAgB,+BAA+B,CAAC,IAAU,EAAE,MAAc;IACxE,wDAAwD;IACxD,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;IAChC,IAAI,MAAM,CAAC,cAAc,IAAI,MAAM,CAAC,cAAc,KAAK,MAAM,CAAC,WAAW,EAAE;QACzE,OAAO,MAAM,CAAC,cAAc,CAAC;QAC7B,IAAA,qBAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAC5B;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;AAtBD,0EAsBC"}
@@ -1,5 +0,0 @@
1
- import { ProjectConfiguration, Tree } from '@nrwl/devkit';
2
- /**
3
- * Removes (deletes) a project's files from the folder tree
4
- */
5
- export declare function removeProject(tree: Tree, project: ProjectConfiguration): void;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeProject = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- /**
6
- * Removes (deletes) a project's files from the folder tree
7
- */
8
- function removeProject(tree, project) {
9
- (0, devkit_1.visitNotIgnoredFiles)(tree, project.root, (file) => {
10
- tree.delete(file);
11
- });
12
- tree.delete(project.root);
13
- }
14
- exports.removeProject = removeProject;
15
- //# sourceMappingURL=remove-project.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-project.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/remove/lib/remove-project.ts"],"names":[],"mappings":";;;AAAA,yCAAgF;AAEhF;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAU,EAAE,OAA6B;IACrE,IAAA,6BAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE;QAChD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AALD,sCAKC"}
@@ -1,6 +0,0 @@
1
- import { ProjectConfiguration, Tree } from '@nrwl/devkit';
2
- import { Schema } from '../schema';
3
- /**
4
- * Updates the root jest config projects array and removes the project.
5
- */
6
- export declare function updateJestConfig(tree: Tree, schema: Schema, projectConfig: ProjectConfiguration): void;
@@ -1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateJestConfig = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- const get_source_nodes_1 = require("../../../utilities/typescript/get-source-nodes");
6
- const path_1 = require("path");
7
- const typescript_1 = require("../../../utilities/typescript");
8
- let tsModule;
9
- function isUsingUtilityFunction(host) {
10
- return host.read('jest.config.ts').toString().includes('getJestProjects()');
11
- }
12
- /**
13
- * in a standalone project, the root jest.config.ts is a project config instead
14
- * of multi-project config.
15
- * in that case we do not need to edit it to remove it
16
- **/
17
- function isMonorepoConfig(tree) {
18
- return tree.read('jest.config.ts', 'utf-8').includes('projects:');
19
- }
20
- /**
21
- * Updates the root jest config projects array and removes the project.
22
- */
23
- function updateJestConfig(tree, schema, projectConfig) {
24
- if (!tsModule) {
25
- tsModule = (0, typescript_1.ensureTypescript)();
26
- }
27
- const { createSourceFile, ScriptTarget, isPropertyAssignment, isArrayLiteralExpression, isStringLiteral, } = tsModule;
28
- const projectToRemove = schema.projectName;
29
- if (!tree.exists('jest.config.ts') ||
30
- !tree.exists((0, path_1.join)(projectConfig.root, 'jest.config.ts')) ||
31
- isUsingUtilityFunction(tree) ||
32
- !isMonorepoConfig(tree)) {
33
- return;
34
- }
35
- const contents = tree.read('jest.config.ts', 'utf-8');
36
- const sourceFile = createSourceFile('jest.config.ts', contents, ScriptTarget.Latest);
37
- const sourceNodes = (0, get_source_nodes_1.getSourceNodes)(sourceFile);
38
- const projectsAssignment = sourceNodes.find((node) => isPropertyAssignment(node) &&
39
- node.name.getText(sourceFile) === 'projects' &&
40
- isArrayLiteralExpression(node.initializer));
41
- if (!projectsAssignment) {
42
- throw Error(`Could not remove ${projectToRemove} from projects in /jest.config.ts. Please remove ${projectToRemove} from your projects.`);
43
- }
44
- const projectsArray = projectsAssignment.initializer;
45
- const project = projectsArray.elements.find((item) => isStringLiteral(item) &&
46
- item.text.startsWith(`<rootDir>/${projectConfig.root}`));
47
- if (!project) {
48
- console.warn(`Could not find ${projectToRemove} in projects in /jest.config.ts.`);
49
- return;
50
- }
51
- const previousProject = projectsArray.elements[projectsArray.elements.indexOf(project) - 1];
52
- const start = previousProject
53
- ? previousProject.getEnd()
54
- : project.getStart(sourceFile);
55
- tree.write('jest.config.ts', (0, devkit_1.applyChangesToString)(contents, [
56
- {
57
- type: devkit_1.ChangeType.Delete,
58
- start,
59
- length: project.getEnd() - start,
60
- },
61
- ]));
62
- }
63
- exports.updateJestConfig = updateJestConfig;
64
- //# sourceMappingURL=update-jest-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-jest-config.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/remove/lib/update-jest-config.ts"],"names":[],"mappings":";;;AAAA,yCAKsB;AACtB,qFAAgF;AAQhF,+BAA4B;AAC5B,8DAAiE;AAEjE,IAAI,QAAqC,CAAC;AAE1C,SAAS,sBAAsB,CAAC,IAAU;IACxC,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAC9E,CAAC;AAED;;;;IAII;AACJ,SAAS,gBAAgB,CAAC,IAAU;IAClC,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACpE,CAAC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAC9B,IAAU,EACV,MAAc,EACd,aAAmC;IAEnC,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,IAAA,6BAAgB,GAAE,CAAC;KAC/B;IACD,MAAM,EACJ,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,eAAe,GAChB,GAAG,QAAQ,CAAC;IACb,MAAM,eAAe,GAAG,MAAM,CAAC,WAAW,CAAC;IAE3C,IACE,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;QAC9B,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACxD,sBAAsB,CAAC,IAAI,CAAC;QAC5B,CAAC,gBAAgB,CAAC,IAAI,CAAC,EACvB;QACA,OAAO;KACR;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACtD,MAAM,UAAU,GAAG,gBAAgB,CACjC,gBAAgB,EAChB,QAAQ,EACR,YAAY,CAAC,MAAM,CACpB,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;IAE/C,MAAM,kBAAkB,GAAG,WAAW,CAAC,IAAI,CACzC,CAAC,IAAI,EAAE,EAAE,CACP,oBAAoB,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,UAAU;QAC5C,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,CACvB,CAAC;IAExB,IAAI,CAAC,kBAAkB,EAAE;QACvB,MAAM,KAAK,CACT,oBAAoB,eAAe,oDAAoD,eAAe,sBAAsB,CAC7H,CAAC;KACH;IACD,MAAM,aAAa,GACjB,kBAAkB,CAAC,WAAqC,CAAC;IAE3D,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,CACzC,CAAC,IAAI,EAAE,EAAE,CACP,eAAe,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,aAAa,CAAC,IAAI,EAAE,CAAC,CACzC,CAAC;IAEnB,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,CAAC,IAAI,CACV,kBAAkB,eAAe,kCAAkC,CACpE,CAAC;QACF,OAAO;KACR;IAED,MAAM,eAAe,GACnB,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IAEtE,MAAM,KAAK,GAAG,eAAe;QAC3B,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE;QAC1B,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAEjC,IAAI,CAAC,KAAK,CACR,gBAAgB,EAChB,IAAA,6BAAoB,EAAC,QAAQ,EAAE;QAC7B;YACE,IAAI,EAAE,mBAAU,CAAC,MAAM;YACvB,KAAK;YACL,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,KAAK;SACjC;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAhFD,4CAgFC"}
@@ -1,8 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- import { Schema } from '../schema';
3
- /**
4
- * Updates the tsconfig paths to remove the project.
5
- *
6
- * @param schema The options provided to the schematic
7
- */
8
- export declare function updateTsconfig(tree: Tree, schema: Schema): Promise<void>;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateTsconfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nrwl/devkit");
6
- const ts_config_1 = require("../../../utilities/ts-config");
7
- const find_project_for_path_1 = require("nx/src/project-graph/utils/find-project-for-path");
8
- /**
9
- * Updates the tsconfig paths to remove the project.
10
- *
11
- * @param schema The options provided to the schematic
12
- */
13
- function updateTsconfig(tree, schema) {
14
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
- const tsConfigPath = (0, ts_config_1.getRootTsConfigPathInTree)(tree);
16
- if (tree.exists(tsConfigPath)) {
17
- const graph = yield (0, devkit_1.createProjectGraphAsync)();
18
- const projectMapping = (0, find_project_for_path_1.createProjectRootMappings)(graph.nodes);
19
- (0, devkit_1.updateJson)(tree, tsConfigPath, (json) => {
20
- for (const importPath in json.compilerOptions.paths) {
21
- for (const path of json.compilerOptions.paths[importPath]) {
22
- const project = (0, find_project_for_path_1.findProjectForPath)((0, devkit_1.normalizePath)(path), projectMapping);
23
- if (project === schema.projectName) {
24
- delete json.compilerOptions.paths[importPath];
25
- break;
26
- }
27
- }
28
- }
29
- return json;
30
- });
31
- }
32
- });
33
- }
34
- exports.updateTsconfig = updateTsconfig;
35
- //# sourceMappingURL=update-tsconfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-tsconfig.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/remove/lib/update-tsconfig.ts"],"names":[],"mappings":";;;;AAAA,yCAMsB;AACtB,4DAAyE;AAEzE,4FAG0D;AAE1D;;;;GAIG;AACH,SAAsB,cAAc,CAAC,IAAU,EAAE,MAAc;;QAC7D,MAAM,YAAY,GAAG,IAAA,qCAAyB,EAAC,IAAI,CAAC,CAAC;QAErD,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;YAC7B,MAAM,KAAK,GAAiB,MAAM,IAAA,gCAAuB,GAAE,CAAC;YAC5D,MAAM,cAAc,GAAG,IAAA,iDAAyB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC9D,IAAA,mBAAU,EAAC,IAAI,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;gBACtC,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE;oBACnD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;wBACzD,MAAM,OAAO,GAAG,IAAA,0CAAkB,EAChC,IAAA,sBAAa,EAAC,IAAI,CAAC,EACnB,cAAc,CACf,CAAC;wBACF,IAAI,OAAO,KAAK,MAAM,CAAC,WAAW,EAAE;4BAClC,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;4BAC9C,MAAM;yBACP;qBACF;iBACF;gBACD,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;CAAA;AAtBD,wCAsBC"}
@@ -1,5 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- import { Schema } from './schema';
3
- export declare function removeGenerator(tree: Tree, schema: Schema): Promise<void>;
4
- export default removeGenerator;
5
- export declare const removeSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeSchematic = exports.removeGenerator = void 0;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nrwl/devkit");
6
- const check_project_is_safe_to_remove_1 = require("./lib/check-project-is-safe-to-remove");
7
- const check_dependencies_1 = require("./lib/check-dependencies");
8
- const check_targets_1 = require("./lib/check-targets");
9
- const remove_project_1 = require("./lib/remove-project");
10
- const update_tsconfig_1 = require("./lib/update-tsconfig");
11
- const remove_project_references_in_config_1 = require("./lib/remove-project-references-in-config");
12
- const update_jest_config_1 = require("./lib/update-jest-config");
13
- function removeGenerator(tree, schema) {
14
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
- const project = (0, devkit_1.readProjectConfiguration)(tree, schema.projectName);
16
- yield (0, check_project_is_safe_to_remove_1.checkProjectIsSafeToRemove)(tree, schema, project);
17
- yield (0, check_dependencies_1.checkDependencies)(tree, schema);
18
- yield (0, check_targets_1.checkTargets)(tree, schema);
19
- (0, update_jest_config_1.updateJestConfig)(tree, schema, project);
20
- (0, remove_project_references_in_config_1.removeProjectReferencesInConfig)(tree, schema);
21
- (0, remove_project_1.removeProject)(tree, project);
22
- yield (0, update_tsconfig_1.updateTsconfig)(tree, schema);
23
- if (!schema.skipFormat) {
24
- yield (0, devkit_1.formatFiles)(tree);
25
- }
26
- });
27
- }
28
- exports.removeGenerator = removeGenerator;
29
- exports.default = removeGenerator;
30
- exports.removeSchematic = (0, devkit_1.convertNxGenerator)(removeGenerator);
31
- //# sourceMappingURL=remove.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/remove/remove.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AAEtB,2FAAmF;AACnF,iEAA6D;AAC7D,uDAAmD;AACnD,yDAAqD;AACrD,2DAAuD;AACvD,mGAA4F;AAE5F,iEAA4D;AAE5D,SAAsB,eAAe,CAAC,IAAU,EAAE,MAAc;;QAC9D,MAAM,OAAO,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACnE,MAAM,IAAA,4DAA0B,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACxD,MAAM,IAAA,sCAAiB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACtC,MAAM,IAAA,4BAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACjC,IAAA,qCAAgB,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACxC,IAAA,qEAA+B,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC9C,IAAA,8BAAa,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7B,MAAM,IAAA,gCAAc,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACtB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;IACH,CAAC;CAAA;AAZD,0CAYC;AAED,kBAAe,eAAe,CAAC;AAElB,QAAA,eAAe,GAAG,IAAA,2BAAkB,EAAC,eAAe,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- export interface Json {
2
- [k: string]: any;
3
- }
4
-
5
- export interface Schema extends Json {
6
- projectName: string;
7
- skipFormat: boolean;
8
- forceRemove: boolean;
9
- importPath?: string;
10
- }
@@ -1,47 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "NxWorkspaceRemove",
4
- "cli": "nx",
5
- "title": "Nx Remove",
6
- "description": "Remove a project from the workspace.",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "command": "nx g @nrwl/workspace:remove my-feature-lib",
11
- "description": "Remove `my-feature-lib` from the workspace"
12
- },
13
- {
14
- "command": "nx g @nrwl/workspace:remove my-feature-lib --forceRemove",
15
- "description": "Force removal of `my-feature-lib` from the workspace"
16
- }
17
- ],
18
- "properties": {
19
- "projectName": {
20
- "type": "string",
21
- "alias": "project",
22
- "description": "The name of the project to remove.",
23
- "$default": {
24
- "$source": "argv",
25
- "index": 0
26
- }
27
- },
28
- "forceRemove": {
29
- "type": "boolean",
30
- "aliases": ["force-remove"],
31
- "description": "When `true`, forces removal even if the project is still in use.",
32
- "default": false
33
- },
34
- "skipFormat": {
35
- "type": "boolean",
36
- "aliases": ["skip-format"],
37
- "description": "Skip formatting files.",
38
- "default": false,
39
- "x-priority": "internal"
40
- },
41
- "importPath": {
42
- "type": "string",
43
- "description": "The library name used at creation time"
44
- }
45
- },
46
- "required": ["projectName"]
47
- }
@@ -1,5 +0,0 @@
1
- import { Schema } from './schema';
2
- import { Tree } from '@nrwl/devkit';
3
- export declare function runCommandsGenerator(host: Tree, schema: Schema): Promise<void>;
4
- export default runCommandsGenerator;
5
- export declare const runCommandsSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runCommandsSchematic = exports.runCommandsGenerator = void 0;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nrwl/devkit");
6
- function runCommandsGenerator(host, schema) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- const project = (0, devkit_1.readProjectConfiguration)(host, schema.project);
9
- project.targets = project.targets || {};
10
- project.targets[schema.name] = {
11
- executor: 'nx:run-commands',
12
- outputs: schema.outputs
13
- ? schema.outputs
14
- .split(',')
15
- .map((s) => (0, devkit_1.joinPathFragments)('{workspaceRoot}', s.trim()))
16
- : [],
17
- options: {
18
- command: schema.command,
19
- cwd: schema.cwd,
20
- envFile: schema.envFile,
21
- },
22
- };
23
- (0, devkit_1.updateProjectConfiguration)(host, schema.project, project);
24
- yield (0, devkit_1.formatFiles)(host);
25
- });
26
- }
27
- exports.runCommandsGenerator = runCommandsGenerator;
28
- exports.default = runCommandsGenerator;
29
- exports.runCommandsSchematic = (0, devkit_1.convertNxGenerator)(runCommandsGenerator);
30
- //# sourceMappingURL=run-commands.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-commands.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/run-commands/run-commands.ts"],"names":[],"mappings":";;;;AACA,yCAOsB;AAEtB,SAAsB,oBAAoB,CAAC,IAAU,EAAE,MAAc;;QACnE,MAAM,OAAO,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/D,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;QACxC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG;YAC7B,QAAQ,EAAE,iBAAiB;YAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACrB,CAAC,CAAC,MAAM,CAAC,OAAO;qBACX,KAAK,CAAC,GAAG,CAAC;qBACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,0BAAiB,EAAC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;gBAC/D,CAAC,CAAC,EAAE;YACN,OAAO,EAAE;gBACP,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,OAAO,EAAE,MAAM,CAAC,OAAO;aACxB;SACF,CAAC;QACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAE1D,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAnBD,oDAmBC;AAED,kBAAe,oBAAoB,CAAC;AAEvB,QAAA,oBAAoB,GAAG,IAAA,2BAAkB,EAAC,oBAAoB,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export interface Schema {
2
- name: string;
3
- command: string;
4
- project: string;
5
- cwd?: string;
6
- outputs?: string;
7
- envFile?: string;
8
- }
@@ -1,49 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SchematicsRunCommands",
4
- "title": "Create a custom target to run any command",
5
- "description": "Create a custom target to run any command.",
6
- "type": "object",
7
- "cli": "nx",
8
- "examples": [
9
- {
10
- "command": "nx g @nrwl/workspace:run-commands printhello --project my-feature-lib --command 'echo hello'",
11
- "description": "Add the `printhello` target to `my-feature-lib`"
12
- }
13
- ],
14
- "properties": {
15
- "name": {
16
- "type": "string",
17
- "description": "Target name.",
18
- "$default": {
19
- "$source": "argv",
20
- "index": 0
21
- },
22
- "x-prompt": "What name would you like to use to invoke the command?"
23
- },
24
- "project": {
25
- "description": "Project name.",
26
- "type": "string",
27
- "x-prompt": "What project does the target belong to?",
28
- "x-dropdown": "projects"
29
- },
30
- "command": {
31
- "description": "Command to run.",
32
- "type": "string",
33
- "x-prompt": "What command would you like to run?"
34
- },
35
- "cwd": {
36
- "description": "Current working directory of the command.",
37
- "type": "string"
38
- },
39
- "outputs": {
40
- "description": "Allows you to specify where the build artifacts are stored. This allows Nx Cloud to pick them up correctly, in the case that the build artifacts are placed somewhere other than the top level dist folder.",
41
- "type": "string"
42
- },
43
- "envFile": {
44
- "description": "Env files to be loaded before executing the commands.",
45
- "type": "string"
46
- }
47
- },
48
- "required": ["name", "command", "project"]
49
- }
@@ -1 +0,0 @@
1
- export declare function getNpmPackageVersion(packageName: string): string | null;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNpmPackageVersion = void 0;
4
- function getNpmPackageVersion(packageName) {
5
- try {
6
- const version = require('child_process').execSync(`npm view ${packageName} version`, { stdio: ['pipe', 'pipe', 'ignore'] });
7
- if (version) {
8
- return version
9
- .toString()
10
- .trim()
11
- .replace(/^\n*|\n*$/g, '');
12
- }
13
- }
14
- catch (err) { }
15
- return null;
16
- }
17
- exports.getNpmPackageVersion = getNpmPackageVersion;
18
- //# sourceMappingURL=get-npm-package-version.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-npm-package-version.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/utils/get-npm-package-version.ts"],"names":[],"mappings":";;;AAAA,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,IAAI;QACF,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAC/C,YAAY,WAAW,UAAU,EACjC,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CACtC,CAAC;QAEF,IAAI,OAAO,EAAE;YACX,OAAO,OAAO;iBACX,QAAQ,EAAE;iBACV,IAAI,EAAE;iBACN,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;SAC9B;KACF;IAAC,OAAO,GAAG,EAAE,GAAE;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAfD,oDAeC"}
@@ -1,2 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- export declare function insertImport(tree: Tree, path: string, name: string, modulePath: string): void;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.insertImport = void 0;
4
- const insert_statement_1 = require("./insert-statement");
5
- const devkit_1 = require("@nrwl/devkit");
6
- const typescript_1 = require("../../utilities/typescript");
7
- let tsModule;
8
- function insertImport(tree, path, name, modulePath) {
9
- if (!tsModule) {
10
- tsModule = (0, typescript_1.ensureTypescript)();
11
- }
12
- const { createSourceFile, ScriptTarget, isStringLiteral, isImportDeclaration, isNamedImports, } = tsModule;
13
- const contents = tree.read(path, 'utf-8');
14
- const sourceFile = createSourceFile(path, contents, ScriptTarget.ESNext);
15
- const importStatements = sourceFile.statements.filter(isImportDeclaration);
16
- const existingImport = importStatements.find((statement) => isStringLiteral(statement.moduleSpecifier) &&
17
- statement.moduleSpecifier
18
- .getText(sourceFile)
19
- .replace(/['"`]/g, '')
20
- .trim() === modulePath &&
21
- statement.importClause.namedBindings &&
22
- isNamedImports(statement.importClause.namedBindings));
23
- if (!existingImport) {
24
- (0, insert_statement_1.insertStatement)(tree, path, `import { ${name} } from '${modulePath}';`);
25
- return;
26
- }
27
- // TODO: Also check if the namedImport already exists
28
- const namedImports = existingImport.importClause
29
- .namedBindings;
30
- const index = namedImports.getEnd() - 1;
31
- let text;
32
- if (namedImports.elements.hasTrailingComma) {
33
- text = `${name},`;
34
- }
35
- else {
36
- text = `,${name}`;
37
- }
38
- const newContents = (0, devkit_1.applyChangesToString)(contents, [
39
- {
40
- type: devkit_1.ChangeType.Insert,
41
- index,
42
- text,
43
- },
44
- ]);
45
- tree.write(path, newContents);
46
- }
47
- exports.insertImport = insertImport;
48
- //# sourceMappingURL=insert-import.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"insert-import.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/utils/insert-import.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AACrD,yCAAsE;AAEtE,2DAA8D;AAE9D,IAAI,QAAqC,CAAC;AAE1C,SAAgB,YAAY,CAC1B,IAAU,EACV,IAAY,EACZ,IAAY,EACZ,UAAkB;IAElB,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,IAAA,6BAAgB,GAAE,CAAC;KAC/B;IACD,MAAM,EACJ,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,cAAc,GACf,GAAG,QAAQ,CAAC;IAEb,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE1C,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAEzE,MAAM,gBAAgB,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAE3E,MAAM,cAAc,GAAG,gBAAgB,CAAC,IAAI,CAC1C,CAAC,SAAS,EAAE,EAAE,CACZ,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC;QAC1C,SAAS,CAAC,eAAe;aACtB,OAAO,CAAC,UAAU,CAAC;aACnB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;aACrB,IAAI,EAAE,KAAK,UAAU;QACxB,SAAS,CAAC,YAAY,CAAC,aAAa;QACpC,cAAc,CAAC,SAAS,CAAC,YAAY,CAAC,aAAa,CAAC,CACvD,CAAC;IACF,IAAI,CAAC,cAAc,EAAE;QACnB,IAAA,kCAAe,EAAC,IAAI,EAAE,IAAI,EAAE,YAAY,IAAI,YAAY,UAAU,IAAI,CAAC,CAAC;QACxE,OAAO;KACR;IAED,qDAAqD;IACrD,MAAM,YAAY,GAAG,cAAc,CAAC,YAAY;SAC7C,aAA6B,CAAC;IAEjC,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAExC,IAAI,IAAY,CAAC;IACjB,IAAI,YAAY,CAAC,QAAQ,CAAC,gBAAgB,EAAE;QAC1C,IAAI,GAAG,GAAG,IAAI,GAAG,CAAC;KACnB;SAAM;QACL,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;KACnB;IAED,MAAM,WAAW,GAAG,IAAA,6BAAoB,EAAC,QAAQ,EAAE;QACjD;YACE,IAAI,EAAE,mBAAU,CAAC,MAAM;YACvB,KAAK;YACL,IAAI;SACL;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAChC,CAAC;AA5DD,oCA4DC"}
@@ -1,5 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- /**
3
- * Insert a statement after the last import statement in a file
4
- */
5
- export declare function insertStatement(tree: Tree, path: string, statement: string): void;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.insertStatement = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- const typescript_1 = require("../../utilities/typescript");
6
- let tsModule;
7
- /**
8
- * Insert a statement after the last import statement in a file
9
- */
10
- function insertStatement(tree, path, statement) {
11
- if (!tsModule) {
12
- tsModule = (0, typescript_1.ensureTypescript)();
13
- }
14
- const { createSourceFile, isImportDeclaration, ScriptTarget } = tsModule;
15
- const contents = tree.read(path, 'utf-8');
16
- const sourceFile = createSourceFile(path, contents, ScriptTarget.ESNext);
17
- const importStatements = sourceFile.statements.filter(isImportDeclaration);
18
- const index = importStatements.length > 0
19
- ? importStatements[importStatements.length - 1].getEnd()
20
- : 0;
21
- if (importStatements.length > 0) {
22
- statement = `\n${statement}`;
23
- }
24
- const newContents = (0, devkit_1.applyChangesToString)(contents, [
25
- {
26
- type: devkit_1.ChangeType.Insert,
27
- index,
28
- text: statement,
29
- },
30
- ]);
31
- tree.write(path, newContents);
32
- }
33
- exports.insertStatement = insertStatement;
34
- //# sourceMappingURL=insert-statement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"insert-statement.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/utils/insert-statement.ts"],"names":[],"mappings":";;;AAAA,yCAAsE;AACtE,2DAA8D;AAE9D,IAAI,QAAqC,CAAC;AAE1C;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAU,EAAE,IAAY,EAAE,SAAiB;IACzE,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,IAAA,6BAAgB,GAAE,CAAC;KAC/B;IACD,MAAM,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;IAEzE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE1C,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAEzE,MAAM,gBAAgB,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC3E,MAAM,KAAK,GACT,gBAAgB,CAAC,MAAM,GAAG,CAAC;QACzB,CAAC,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE;QACxD,CAAC,CAAC,CAAC,CAAC;IAER,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;QAC/B,SAAS,GAAG,KAAK,SAAS,EAAE,CAAC;KAC9B;IAED,MAAM,WAAW,GAAG,IAAA,6BAAoB,EAAC,QAAQ,EAAE;QACjD;YACE,IAAI,EAAE,mBAAU,CAAC,MAAM;YACvB,KAAK;YACL,IAAI,EAAE,SAAS;SAChB;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAChC,CAAC;AA7BD,0CA6BC"}
@@ -1,18 +0,0 @@
1
- export declare enum Preset {
2
- Apps = "apps",
3
- Empty = "empty",
4
- Core = "core",
5
- NPM = "npm",
6
- TS = "ts",
7
- WebComponents = "web-components",
8
- AngularMonorepo = "angular-monorepo",
9
- AngularStandalone = "angular-standalone",
10
- ReactMonorepo = "react-monorepo",
11
- ReactStandalone = "react-standalone",
12
- ReactNative = "react-native",
13
- Expo = "expo",
14
- NextJs = "next",
15
- Nest = "nest",
16
- Express = "express",
17
- NodeStandalone = "node-standalone"
18
- }