@nrwl/workspace 15.9.2 → 16.0.0-beta.1

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 -55
  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/check-dependencies.d.ts +0 -7
  161. package/src/generators/remove/lib/check-dependencies.js +0 -27
  162. package/src/generators/remove/lib/check-dependencies.js.map +0 -1
  163. package/src/generators/remove/lib/check-project-is-safe-to-remove.d.ts +0 -3
  164. package/src/generators/remove/lib/check-project-is-safe-to-remove.js +0 -26
  165. package/src/generators/remove/lib/check-project-is-safe-to-remove.js.map +0 -1
  166. package/src/generators/remove/lib/check-targets.d.ts +0 -10
  167. package/src/generators/remove/lib/check-targets.js +0 -72
  168. package/src/generators/remove/lib/check-targets.js.map +0 -1
  169. package/src/generators/remove/lib/remove-project-references-in-config.d.ts +0 -3
  170. package/src/generators/remove/lib/remove-project-references-in-config.js +0 -22
  171. package/src/generators/remove/lib/remove-project-references-in-config.js.map +0 -1
  172. package/src/generators/remove/lib/remove-project.d.ts +0 -5
  173. package/src/generators/remove/lib/remove-project.js +0 -15
  174. package/src/generators/remove/lib/remove-project.js.map +0 -1
  175. package/src/generators/remove/lib/test-files/jest.config.d.ts +0 -0
  176. package/src/generators/remove/lib/test-files/jest.config.js +0 -9
  177. package/src/generators/remove/lib/test-files/jest.config.js.map +0 -1
  178. package/src/generators/remove/lib/update-jest-config.d.ts +0 -6
  179. package/src/generators/remove/lib/update-jest-config.js +0 -55
  180. package/src/generators/remove/lib/update-jest-config.js.map +0 -1
  181. package/src/generators/remove/lib/update-tsconfig.d.ts +0 -8
  182. package/src/generators/remove/lib/update-tsconfig.js +0 -35
  183. package/src/generators/remove/lib/update-tsconfig.js.map +0 -1
  184. package/src/generators/remove/remove.d.ts +0 -5
  185. package/src/generators/remove/remove.js +0 -31
  186. package/src/generators/remove/remove.js.map +0 -1
  187. package/src/generators/remove/schema.d.ts +0 -10
  188. package/src/generators/remove/schema.json +0 -47
  189. package/src/generators/run-commands/run-commands.d.ts +0 -5
  190. package/src/generators/run-commands/run-commands.js +0 -30
  191. package/src/generators/run-commands/run-commands.js.map +0 -1
  192. package/src/generators/run-commands/schema.d.ts +0 -8
  193. package/src/generators/run-commands/schema.json +0 -49
  194. package/src/generators/utils/get-npm-package-version.d.ts +0 -1
  195. package/src/generators/utils/get-npm-package-version.js +0 -18
  196. package/src/generators/utils/get-npm-package-version.js.map +0 -1
  197. package/src/generators/utils/insert-import.d.ts +0 -2
  198. package/src/generators/utils/insert-import.js +0 -48
  199. package/src/generators/utils/insert-import.js.map +0 -1
  200. package/src/generators/utils/insert-statement.d.ts +0 -5
  201. package/src/generators/utils/insert-statement.js +0 -34
  202. package/src/generators/utils/insert-statement.js.map +0 -1
  203. package/src/generators/utils/presets.d.ts +0 -18
  204. package/src/generators/utils/presets.js +0 -23
  205. package/src/generators/utils/presets.js.map +0 -1
  206. package/src/generators/workspace-generator/files/index.ts__tmpl__ +0 -10
  207. package/src/generators/workspace-generator/files/schema.json__tmpl__ +0 -17
  208. package/src/generators/workspace-generator/schema.d.ts +0 -4
  209. package/src/generators/workspace-generator/schema.json +0 -25
  210. package/src/generators/workspace-generator/workspace-generator.d.ts +0 -3
  211. package/src/generators/workspace-generator/workspace-generator.js +0 -27
  212. package/src/generators/workspace-generator/workspace-generator.js.map +0 -1
  213. package/src/migrations/update-12-5-0/add-target-dependencies.d.ts +0 -3
  214. package/src/migrations/update-12-5-0/add-target-dependencies.js +0 -39
  215. package/src/migrations/update-12-5-0/add-target-dependencies.js.map +0 -1
  216. package/src/migrations/update-13-0-0/config-locations/config-locations.d.ts +0 -2
  217. package/src/migrations/update-13-0-0/config-locations/config-locations.js +0 -34
  218. package/src/migrations/update-13-0-0/config-locations/config-locations.js.map +0 -1
  219. package/src/migrations/update-13-0-0/set-default-base-if-not-set.d.ts +0 -3
  220. package/src/migrations/update-13-0-0/set-default-base-if-not-set.js +0 -30
  221. package/src/migrations/update-13-0-0/set-default-base-if-not-set.js.map +0 -1
  222. package/src/migrations/update-13-10-0/update-decorate-cli.d.ts +0 -3
  223. package/src/migrations/update-13-10-0/update-decorate-cli.js +0 -14
  224. package/src/migrations/update-13-10-0/update-decorate-cli.js.map +0 -1
  225. package/src/migrations/update-13-10-0/update-tasks-runner.d.ts +0 -3
  226. package/src/migrations/update-13-10-0/update-tasks-runner.js +0 -17
  227. package/src/migrations/update-13-10-0/update-tasks-runner.js.map +0 -1
  228. package/src/migrations/update-13-2-0/set-parallel-default.d.ts +0 -3
  229. package/src/migrations/update-13-2-0/set-parallel-default.js +0 -27
  230. package/src/migrations/update-13-2-0/set-parallel-default.js.map +0 -1
  231. package/src/migrations/update-13-3-0/update-tsc-executor-location.d.ts +0 -3
  232. package/src/migrations/update-13-3-0/update-tsc-executor-location.js +0 -31
  233. package/src/migrations/update-13-3-0/update-tsc-executor-location.js.map +0 -1
  234. package/src/migrations/update-13-6-0/remove-old-task-runner-options.d.ts +0 -3
  235. package/src/migrations/update-13-6-0/remove-old-task-runner-options.js +0 -17
  236. package/src/migrations/update-13-6-0/remove-old-task-runner-options.js.map +0 -1
  237. package/src/migrations/update-13-9-0/replace-tao-with-nx.d.ts +0 -3
  238. package/src/migrations/update-13-9-0/replace-tao-with-nx.js +0 -28
  239. package/src/migrations/update-13-9-0/replace-tao-with-nx.js.map +0 -1
  240. package/src/migrations/update-13-9-0/update-decorate-cli.d.ts +0 -3
  241. package/src/migrations/update-13-9-0/update-decorate-cli.js +0 -13
  242. package/src/migrations/update-13-9-0/update-decorate-cli.js.map +0 -1
  243. package/src/migrations/update-14-0-0/change-npm-script-executor.d.ts +0 -3
  244. package/src/migrations/update-14-0-0/change-npm-script-executor.js +0 -20
  245. package/src/migrations/update-14-0-0/change-npm-script-executor.js.map +0 -1
  246. package/src/migrations/update-14-0-0/change-nx-json-presets.d.ts +0 -3
  247. package/src/migrations/update-14-0-0/change-nx-json-presets.js +0 -21
  248. package/src/migrations/update-14-0-0/change-nx-json-presets.js.map +0 -1
  249. package/src/migrations/update-14-2-0/enable-source-analysis.d.ts +0 -3
  250. package/src/migrations/update-14-2-0/enable-source-analysis.js +0 -28
  251. package/src/migrations/update-14-2-0/enable-source-analysis.js.map +0 -1
  252. package/src/migrations/update-14-8-0/change-run-commands-executor.d.ts +0 -3
  253. package/src/migrations/update-14-8-0/change-run-commands-executor.js +0 -20
  254. package/src/migrations/update-14-8-0/change-run-commands-executor.js.map +0 -1
  255. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.d.ts +0 -3
  256. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js +0 -15
  257. package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js.map +0 -1
  258. package/src/tasks-runner/cache.d.ts +0 -1
  259. package/src/tasks-runner/cache.js +0 -6
  260. package/src/tasks-runner/cache.js.map +0 -1
  261. package/src/tasks-runner/default-tasks-runner.d.ts +0 -1
  262. package/src/tasks-runner/default-tasks-runner.js +0 -5
  263. package/src/tasks-runner/default-tasks-runner.js.map +0 -1
  264. package/src/tasks-runner/life-cycle.d.ts +0 -1
  265. package/src/tasks-runner/life-cycle.js +0 -6
  266. package/src/tasks-runner/life-cycle.js.map +0 -1
  267. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +0 -1
  268. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -5
  269. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js.map +0 -1
  270. package/src/tasks-runner/tasks-runner-v2.d.ts +0 -1
  271. package/src/tasks-runner/tasks-runner-v2.js +0 -7
  272. package/src/tasks-runner/tasks-runner-v2.js.map +0 -1
  273. package/src/tasks-runner/tasks-runner.d.ts +0 -2
  274. package/src/tasks-runner/tasks-runner.js +0 -5
  275. package/src/tasks-runner/tasks-runner.js.map +0 -1
  276. package/src/tasks-runner/utils.d.ts +0 -1
  277. package/src/tasks-runner/utils.js +0 -5
  278. package/src/tasks-runner/utils.js.map +0 -1
  279. package/src/utilities/app-root.d.ts +0 -1
  280. package/src/utilities/app-root.js +0 -5
  281. package/src/utilities/app-root.js.map +0 -1
  282. package/src/utilities/assets.d.ts +0 -10
  283. package/src/utilities/assets.js +0 -38
  284. package/src/utilities/assets.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,159 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateImports = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- const ts_config_1 = require("../../../utilities/ts-config");
6
- const typescript_1 = require("nx/src/utils/typescript");
7
- const utils_1 = require("./utils");
8
- const path_1 = require("path");
9
- const typescript_2 = require("../../../utilities/typescript");
10
- let tsModule;
11
- /**
12
- * Updates all the imports in the workspace and modifies the tsconfig appropriately.
13
- *
14
- * @param schema The options provided to the schematic
15
- */
16
- function updateImports(tree, schema, project) {
17
- if (project.projectType === 'application') {
18
- // These shouldn't be imported anywhere?
19
- return;
20
- }
21
- const { npmScope, libsDir } = (0, devkit_1.getWorkspaceLayout)(tree);
22
- const projects = (0, devkit_1.getProjects)(tree);
23
- // use the source root to find the from location
24
- // this attempts to account for libs that have been created with --importPath
25
- const tsConfigPath = (0, ts_config_1.getRootTsConfigPathInTree)(tree);
26
- let tsConfig;
27
- let fromPath;
28
- if (tree.exists(tsConfigPath)) {
29
- tsConfig = (0, devkit_1.readJson)(tree, tsConfigPath);
30
- fromPath = Object.keys(tsConfig.compilerOptions.paths).find((path) => tsConfig.compilerOptions.paths[path].some((x) => x.startsWith(project.sourceRoot)));
31
- }
32
- const projectRef = {
33
- from: fromPath ||
34
- (0, utils_1.normalizeSlashes)((0, devkit_1.getImportPath)(npmScope, project.root.slice(libsDir.length).replace(/^\/|\\/, ''))),
35
- to: schema.importPath,
36
- };
37
- if (schema.updateImportPath) {
38
- const replaceProjectRef = new RegExp(projectRef.from, 'g');
39
- for (const [name, definition] of Array.from(projects.entries())) {
40
- if (name === schema.projectName) {
41
- continue;
42
- }
43
- (0, devkit_1.visitNotIgnoredFiles)(tree, definition.root, (file) => {
44
- const contents = tree.read(file, 'utf-8');
45
- replaceProjectRef.lastIndex = 0;
46
- if (!replaceProjectRef.test(contents)) {
47
- return;
48
- }
49
- updateImportPaths(tree, file, projectRef.from, projectRef.to);
50
- });
51
- }
52
- }
53
- const projectRoot = {
54
- from: project.root,
55
- to: schema.relativeToRootDestination,
56
- };
57
- if (tsConfig) {
58
- const path = tsConfig.compilerOptions.paths[projectRef.from];
59
- if (!path) {
60
- throw new Error([
61
- `unable to find "${projectRef.from}" in`,
62
- `${tsConfigPath} compilerOptions.paths`,
63
- ].join(' '));
64
- }
65
- const updatedPath = path.map((x) => (0, devkit_1.joinPathFragments)(projectRoot.to, (0, path_1.relative)(projectRoot.from, x)));
66
- if (schema.updateImportPath) {
67
- tsConfig.compilerOptions.paths[projectRef.to] = updatedPath;
68
- delete tsConfig.compilerOptions.paths[projectRef.from];
69
- }
70
- else {
71
- tsConfig.compilerOptions.paths[projectRef.from] = updatedPath;
72
- }
73
- (0, devkit_1.writeJson)(tree, tsConfigPath, tsConfig);
74
- }
75
- }
76
- exports.updateImports = updateImports;
77
- /**
78
- * Changes imports in a file from one import to another
79
- */
80
- function updateImportPaths(tree, path, from, to) {
81
- if (!tsModule) {
82
- tsModule = (0, typescript_2.ensureTypescript)();
83
- }
84
- const contents = tree.read(path, 'utf-8');
85
- const sourceFile = tsModule.createSourceFile(path, contents, tsModule.ScriptTarget.Latest, true);
86
- // Apply changes on the various types of imports
87
- const newContents = (0, devkit_1.applyChangesToString)(contents, [
88
- ...updateImportDeclarations(sourceFile, from, to),
89
- ...updateDynamicImports(sourceFile, from, to),
90
- ]);
91
- tree.write(path, newContents);
92
- }
93
- /**
94
- * Update the module specifiers on static imports
95
- */
96
- function updateImportDeclarations(sourceFile, from, to) {
97
- if (!tsModule) {
98
- tsModule = (0, typescript_2.ensureTypescript)();
99
- }
100
- const importDecls = (0, typescript_1.findNodes)(sourceFile, tsModule.SyntaxKind.ImportDeclaration);
101
- const changes = [];
102
- for (const { moduleSpecifier } of importDecls) {
103
- if (tsModule.isStringLiteral(moduleSpecifier)) {
104
- changes.push(...updateModuleSpecifier(moduleSpecifier, from, to));
105
- }
106
- }
107
- return changes;
108
- }
109
- /**
110
- * Update the module specifiers on dynamic imports and require statements
111
- */
112
- function updateDynamicImports(sourceFile, from, to) {
113
- if (!tsModule) {
114
- tsModule = (0, typescript_2.ensureTypescript)();
115
- }
116
- const expressions = (0, typescript_1.findNodes)(sourceFile, tsModule.SyntaxKind.CallExpression);
117
- const changes = [];
118
- for (const { expression, arguments: args } of expressions) {
119
- const moduleSpecifier = args[0];
120
- // handle dynamic import statements
121
- if (expression.kind === tsModule.SyntaxKind.ImportKeyword &&
122
- moduleSpecifier &&
123
- tsModule.isStringLiteral(moduleSpecifier)) {
124
- changes.push(...updateModuleSpecifier(moduleSpecifier, from, to));
125
- }
126
- // handle require statements
127
- if (tsModule.isIdentifier(expression) &&
128
- expression.text === 'require' &&
129
- moduleSpecifier &&
130
- tsModule.isStringLiteral(moduleSpecifier)) {
131
- changes.push(...updateModuleSpecifier(moduleSpecifier, from, to));
132
- }
133
- }
134
- return changes;
135
- }
136
- /**
137
- * Replace the old module specifier with a the new path
138
- */
139
- function updateModuleSpecifier(moduleSpecifier, from, to) {
140
- if (moduleSpecifier.text === from ||
141
- moduleSpecifier.text.startsWith(`${from}/`)) {
142
- return [
143
- {
144
- type: devkit_1.ChangeType.Delete,
145
- start: moduleSpecifier.getStart() + 1,
146
- length: moduleSpecifier.text.length,
147
- },
148
- {
149
- type: devkit_1.ChangeType.Insert,
150
- index: moduleSpecifier.getStart() + 1,
151
- text: moduleSpecifier.text.replace(new RegExp(from, 'g'), to),
152
- },
153
- ];
154
- }
155
- else {
156
- return [];
157
- }
158
- }
159
- //# sourceMappingURL=update-imports.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-imports.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/update-imports.ts"],"names":[],"mappings":";;;AAAA,yCAasB;AAEtB,4DAAyE;AACzE,wDAAoD;AAEpD,mCAA2C;AAC3C,+BAAgC;AAChC,8DAAiE;AAEjE,IAAI,QAAqC,CAAC;AAE1C;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,IAAU,EACV,MAAwB,EACxB,O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AAE,CAAC,CAAC,CAAC;SACnE;KACF;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;GAEG;AACH,SAAS,qBAAqB,CAC5B,eAAiC,EACjC,IAAY,EACZ,EAAU;IAEV,IACE,eAAe,CAAC,IAAI,KAAK,IAAI;QAC7B,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,CAAC,EAC3C;QACA,OAAO;YACL;gBACE,IAAI,EAAE,mBAAU,CAAC,MAAM;gBACvB,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE,GAAG,CAAC;gBACrC,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC,MAAM;aACpC;YACD;gBACE,IAAI,EAAE,mBAAU,CAAC,MAAM;gBACvB,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE,GAAG,CAAC;gBACrC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;aAC9D;SACF,CAAC;KACH;SAAM;QACL,OAAO,EAAE,CAAC;KACX;AACH,CAAC"}
@@ -1,10 +0,0 @@
1
- import { ProjectConfiguration, Tree } from '@nrwl/devkit';
2
- import { NormalizedSchema } from '../schema';
3
- /**
4
- * Updates the project name and coverage folder in the jest.config.js if it exists
5
- *
6
- * (assume relative paths have been updated previously)
7
- *
8
- * @param schema The options provided to the schematic
9
- */
10
- export declare function updateJestConfig(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateJestConfig = void 0;
4
- const path = require("path");
5
- /**
6
- * Updates the project name and coverage folder in the jest.config.js if it exists
7
- *
8
- * (assume relative paths have been updated previously)
9
- *
10
- * @param schema The options provided to the schematic
11
- */
12
- function updateJestConfig(tree, schema, project) {
13
- const jestConfigPath = path.join(schema.relativeToRootDestination, 'jest.config.ts');
14
- if (tree.exists(jestConfigPath)) {
15
- const oldContent = tree.read(jestConfigPath, 'utf-8');
16
- const findName = new RegExp(`'${schema.projectName}'`, 'g');
17
- const findDir = new RegExp(project.root, 'g');
18
- const newContent = oldContent
19
- .replace(findName, `'${schema.newProjectName}'`)
20
- .replace(findDir, schema.relativeToRootDestination);
21
- tree.write(jestConfigPath, newContent);
22
- }
23
- // update root jest.config.ts
24
- const rootJestConfigPath = '/jest.config.ts';
25
- if (!tree.exists(rootJestConfigPath)) {
26
- return;
27
- }
28
- const findProject = `'<rootDir>/${project.root}'`;
29
- const oldRootJestConfigContent = tree.read(rootJestConfigPath, 'utf-8');
30
- const usingJestProjects = oldRootJestConfigContent.includes('getJestProjects()');
31
- const newRootJestConfigContent = oldRootJestConfigContent.replace(findProject, usingJestProjects ? `` : `'<rootDir>/${schema.relativeToRootDestination}'`);
32
- tree.write(rootJestConfigPath, newRootJestConfigContent);
33
- }
34
- exports.updateJestConfig = updateJestConfig;
35
- //# sourceMappingURL=update-jest-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-jest-config.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/update-jest-config.ts"],"names":[],"mappings":";;;AACA,6BAA6B;AAG7B;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAC9B,IAAU,EACV,MAAwB,EACxB,OAA6B;IAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAC9B,MAAM,CAAC,yBAAyB,EAChC,gBAAgB,CACjB,CAAC;IAEF,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QAEtD,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,EAAE,GAAG,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG,UAAU;aAC1B,OAAO,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,cAAc,GAAG,CAAC;aAC/C,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KACxC;IAED,6BAA6B;IAC7B,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IAE7C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE;QACpC,OAAO;KACR;IAED,MAAM,WAAW,GAAG,cAAc,OAAO,CAAC,IAAI,GAAG,CAAC;IAElD,MAAM,wBAAwB,GAAG,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxE,MAAM,iBAAiB,GACrB,wBAAwB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAEzD,MAAM,wBAAwB,GAAG,wBAAwB,CAAC,OAAO,CAC/D,WAAW,EACX,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,MAAM,CAAC,yBAAyB,GAAG,CAC3E,CAAC;IAEF,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,CAAC;AAC3D,CAAC;AAzCD,4CAyCC"}
@@ -1,8 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- import { NormalizedSchema } from '../schema';
3
- /**
4
- * Updates the name in the package.json if it exists.
5
- *
6
- * @param schema The options provided to the schematic
7
- */
8
- export declare function updatePackageJson(tree: Tree, schema: NormalizedSchema): void;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updatePackageJson = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- const path = require("path");
6
- /**
7
- * Updates the name in the package.json if it exists.
8
- *
9
- * @param schema The options provided to the schematic
10
- */
11
- function updatePackageJson(tree, schema) {
12
- const packageJsonPath = path.join(schema.relativeToRootDestination, 'package.json');
13
- if (!tree.exists(packageJsonPath)) {
14
- // nothing to do
15
- return;
16
- }
17
- const packageJson = (0, devkit_1.readJson)(tree, packageJsonPath);
18
- packageJson.name = schema.importPath;
19
- tree.write(packageJsonPath, JSON.stringify(packageJson));
20
- }
21
- exports.updatePackageJson = updatePackageJson;
22
- //# sourceMappingURL=update-package-json.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-package-json.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/update-package-json.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAC9C,6BAA6B;AAO7B;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,IAAU,EAAE,MAAwB;IACpE,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAC/B,MAAM,CAAC,yBAAyB,EAChC,cAAc,CACf,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE;QACjC,gBAAgB;QAChB,OAAO;KACR;IAED,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,eAAe,CAAuB,CAAC;IAC1E,WAAW,CAAC,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;IACrC,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;AAC3D,CAAC;AAdD,8CAcC"}
@@ -1,10 +0,0 @@
1
- import { ProjectConfiguration, Tree } from '@nrwl/devkit';
2
- import { NormalizedSchema } from '../schema';
3
- /**
4
- * Updates the files in the root of the project
5
- *
6
- * Typically these are config files which point outside of the project folder
7
- *
8
- * @param schema The options provided to the schematic
9
- */
10
- export declare function updateProjectRootFiles(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateProjectRootFiles = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- const path = require("path");
6
- const path_1 = require("path");
7
- const allowedExt = ['.ts', '.js', '.json'];
8
- /**
9
- * Updates the files in the root of the project
10
- *
11
- * Typically these are config files which point outside of the project folder
12
- *
13
- * @param schema The options provided to the schematic
14
- */
15
- function updateProjectRootFiles(tree, schema, project) {
16
- const newRelativeRoot = path
17
- .relative(path.join(devkit_1.workspaceRoot, schema.relativeToRootDestination), devkit_1.workspaceRoot)
18
- .split(path.sep)
19
- .join('/');
20
- const oldRelativeRoot = path
21
- .relative(path.join(devkit_1.workspaceRoot, project.root), devkit_1.workspaceRoot)
22
- .split(path.sep)
23
- .join('/');
24
- if (newRelativeRoot === oldRelativeRoot) {
25
- // nothing to do
26
- return;
27
- }
28
- const dots = /\./g;
29
- const regex = new RegExp(`(?<!\\.\\.\\/)${oldRelativeRoot.replace(dots, '\\.')}(?!\\/\\.\\.)`, 'g');
30
- for (const file of tree.children(schema.relativeToRootDestination)) {
31
- const ext = (0, path_1.extname)(file);
32
- if (!allowedExt.includes(ext)) {
33
- continue;
34
- }
35
- if (file === '.eslintrc.json') {
36
- continue;
37
- }
38
- const oldContent = tree.read((0, path_1.join)(schema.relativeToRootDestination, file), 'utf-8');
39
- const newContent = oldContent.replace(regex, newRelativeRoot);
40
- tree.write((0, path_1.join)(schema.relativeToRootDestination, file), newContent);
41
- }
42
- }
43
- exports.updateProjectRootFiles = updateProjectRootFiles;
44
- //# sourceMappingURL=update-project-root-files.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-project-root-files.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/update-project-root-files.ts"],"names":[],"mappings":";;;AACA,yCAA6C;AAC7C,6BAA6B;AAC7B,+BAAqC;AAErC,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAC3C;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACpC,IAAU,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AE,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC;KACtE;AACH,CAAC;AA3CD,wDA2CC"}
@@ -1,8 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- import { NormalizedSchema } from '../schema';
3
- /**
4
- * Update the README.md file of the project if it exists.
5
- *
6
- * @param schema The options provided to the schematic
7
- */
8
- export declare function updateReadme(tree: Tree, schema: NormalizedSchema): void;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateReadme = void 0;
4
- const path_1 = require("path");
5
- /**
6
- * Update the README.md file of the project if it exists.
7
- *
8
- * @param schema The options provided to the schematic
9
- */
10
- function updateReadme(tree, schema) {
11
- const readmePath = (0, path_1.join)(schema.relativeToRootDestination, 'README.md');
12
- if (!tree.exists(readmePath)) {
13
- // no README found. nothing to do
14
- return;
15
- }
16
- const findName = new RegExp(`${schema.projectName}`, 'g');
17
- const oldContent = tree.read(readmePath, 'utf-8');
18
- const newContent = oldContent.replace(findName, schema.newProjectName);
19
- tree.write(readmePath, newContent);
20
- }
21
- exports.updateReadme = updateReadme;
22
- //# sourceMappingURL=update-readme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-readme.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/update-readme.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAG5B;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAU,EAAE,MAAwB;IAC/D,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,MAAM,CAAC,yBAAyB,EAAE,WAAW,CAAC,CAAC;IAEvE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;QAC5B,iCAAiC;QACjC,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,GAAG,CAAC,CAAC;IAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACvE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;AACrC,CAAC;AAXD,oCAWC"}
@@ -1,10 +0,0 @@
1
- import { ProjectConfiguration, Tree } from '@nrwl/devkit';
2
- import { NormalizedSchema } from '../schema';
3
- /**
4
- * Updates relative path to root storybook config for `main.js` & `webpack.config.js`
5
- *
6
- * @param {Tree} tree
7
- * @param {NormalizedSchema} schema The options provided to the schematic
8
- * @param {ProjectConfiguration} project
9
- */
10
- export declare function updateStorybookConfig(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateStorybookConfig = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- const path = require("path");
6
- const path_1 = require("path");
7
- /**
8
- * Updates relative path to root storybook config for `main.js` & `webpack.config.js`
9
- *
10
- * @param {Tree} tree
11
- * @param {NormalizedSchema} schema The options provided to the schematic
12
- * @param {ProjectConfiguration} project
13
- */
14
- function updateStorybookConfig(tree, schema, project) {
15
- const oldRelativeRoot = path
16
- .relative(path.join(devkit_1.workspaceRoot, `${project.root}/.storybook`), devkit_1.workspaceRoot)
17
- .split(path.sep)
18
- .join('/');
19
- const newRelativeRoot = path
20
- .relative(path.join(devkit_1.workspaceRoot, `${schema.relativeToRootDestination}/.storybook`), devkit_1.workspaceRoot)
21
- .split(path.sep)
22
- .join('/');
23
- const storybookDir = path.join(schema.relativeToRootDestination, '.storybook');
24
- if (!storybookDir) {
25
- return;
26
- }
27
- // Replace relative import path to root storybook folder for each file under project storybook
28
- updateRecursively(tree, storybookDir, oldRelativeRoot, newRelativeRoot);
29
- }
30
- exports.updateStorybookConfig = updateStorybookConfig;
31
- function updateRecursively(tree, dir, oldRoot, newRoot) {
32
- for (const child of tree.children(dir)) {
33
- const childPath = (0, path_1.join)(dir, child);
34
- if (tree.isFile(childPath)) {
35
- const oldContent = tree.read(childPath, 'utf-8');
36
- const newContent = oldContent.replace(oldRoot, newRoot);
37
- tree.write(childPath, newContent);
38
- }
39
- else {
40
- updateRecursively(tree, childPath, oldRoot, newRoot);
41
- }
42
- }
43
- }
44
- //# sourceMappingURL=update-storybook-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-storybook-config.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/update-storybook-config.ts"],"names":[],"mappings":";;;AACA,yCAA6C;AAC7C,6BAA6B;AAC7B,+BAA4B;AAG5B;;;;;;GAMG;AACH,SAAgB,qBAAqB,CACnC,IAAU,EACV,MAAwB,EACxB,OAA6B;IAE7B,MAAM,eAAe,GAAG,IAAI;SACzB,QAAQ,CACP,IAAI,CAAC,IAAI,CAAC,sBAAa,EAAE,GAAG,OAAO,CAAC,IAAI,aAAa,CAAC,EACtD,sBAAa,CACd;SACA,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,eAAe,GAAG,IAAI;SACzB,QAAQ,CACP,IAAI,CAAC,IAAI,CACP,sBAAa,EACb,GAAG,MAAM,CAAC,yBAAyB,aAAa,CACjD,EACD,sBAAa,CACd;SACA,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAC5B,MAAM,CAAC,yBAAyB,EAChC,YAAY,CACb,CAAC;IAEF,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO;KACR;IAED,8FAA8F;IAC9F,iBAAiB,CAAC,IAAI,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;AAC1E,CAAC;AAlCD,sDAkCC;AAED,SAAS,iBAAiB,CACxB,IAAU,EACV,GAAW,EACX,OAAe,EACf,OAAe;IAEf,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACtC,MAAM,SAAS,GAAG,IAAA,WAAI,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAEnC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;YAC1B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YACjD,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxD,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;SACnC;aAAM;YACL,iBAAiB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SACtD;KACF;AACH,CAAC"}
@@ -1,22 +0,0 @@
1
- import { ProjectConfiguration, Tree } from '@nrwl/devkit';
2
- import { Schema } from '../schema';
3
- /**
4
- * This helper function ensures that we don't move libs or apps
5
- * outside of the folders they should be in.
6
- *
7
- * This will break if someone isn't using the default libs/apps
8
- * folders. In that case, they're on their own :/
9
- */
10
- export declare function getDestination(host: Tree, schema: Schema, project: ProjectConfiguration): string;
11
- /**
12
- * Replaces slashes with dashes
13
- *
14
- * @param path
15
- */
16
- export declare function getNewProjectName(path: string): string;
17
- /**
18
- * Normalizes slashes (removes duplicates)
19
- *
20
- * @param input
21
- */
22
- export declare function normalizeSlashes(input: string): string;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeSlashes = exports.getNewProjectName = exports.getDestination = void 0;
4
- const devkit_1 = require("@nrwl/devkit");
5
- /**
6
- * This helper function ensures that we don't move libs or apps
7
- * outside of the folders they should be in.
8
- *
9
- * This will break if someone isn't using the default libs/apps
10
- * folders. In that case, they're on their own :/
11
- */
12
- function getDestination(host, schema, project) {
13
- const projectType = project.projectType;
14
- const workspaceLayout = (0, devkit_1.getWorkspaceLayout)(host);
15
- let rootFolder = workspaceLayout.libsDir;
16
- if (projectType === 'application') {
17
- rootFolder = workspaceLayout.appsDir;
18
- }
19
- return (0, devkit_1.joinPathFragments)(rootFolder, schema.destination);
20
- }
21
- exports.getDestination = getDestination;
22
- /**
23
- * Replaces slashes with dashes
24
- *
25
- * @param path
26
- */
27
- function getNewProjectName(path) {
28
- return path.replace(/\//g, '-');
29
- }
30
- exports.getNewProjectName = getNewProjectName;
31
- /**
32
- * Normalizes slashes (removes duplicates)
33
- *
34
- * @param input
35
- */
36
- function normalizeSlashes(input) {
37
- return input
38
- .split('/')
39
- .filter((x) => !!x)
40
- .join('/');
41
- }
42
- exports.normalizeSlashes = normalizeSlashes;
43
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../packages/workspace/src/generators/move/lib/utils.ts"],"names":[],"mappings":";;;AAAA,yCAKsB;AAItB;;;;;;GAMG;AACH,SAAgB,cAAc,CAC5B,IAAU,EACV,MAAc,EACd,OAA6B;IAE7B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAExC,MAAM,eAAe,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAEjD,IAAI,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC;IACzC,IAAI,WAAW,KAAK,aAAa,EAAE;QACjC,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC;KACtC;IACD,OAAO,IAAA,0BAAiB,EAAC,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;AAC3D,CAAC;AAdD,wCAcC;AAED;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,IAAY;IAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC;AAFD,8CAEC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,OAAO,KAAK;SACT,KAAK,CAAC,GAAG,CAAC;SACV,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;SAClB,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AALD,4CAKC"}
@@ -1,5 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- import { Schema } from './schema';
3
- export declare function moveGenerator(tree: Tree, rawSchema: Schema): Promise<void>;
4
- export default moveGenerator;
5
- export declare const moveSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.moveSchematic = exports.moveGenerator = void 0;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nrwl/devkit");
6
- const check_destination_1 = require("./lib/check-destination");
7
- const create_project_configuration_in_new_destination_1 = require("./lib/create-project-configuration-in-new-destination");
8
- const move_project_files_1 = require("./lib/move-project-files");
9
- const normalize_schema_1 = require("./lib/normalize-schema");
10
- const update_build_targets_1 = require("./lib/update-build-targets");
11
- const update_cypress_config_1 = require("./lib/update-cypress-config");
12
- const update_default_project_1 = require("./lib/update-default-project");
13
- const update_eslintrc_json_1 = require("./lib/update-eslintrc-json");
14
- const update_implicit_dependencies_1 = require("./lib/update-implicit-dependencies");
15
- const update_imports_1 = require("./lib/update-imports");
16
- const update_jest_config_1 = require("./lib/update-jest-config");
17
- const update_package_json_1 = require("./lib/update-package-json");
18
- const update_project_root_files_1 = require("./lib/update-project-root-files");
19
- const update_readme_1 = require("./lib/update-readme");
20
- const update_storybook_config_1 = require("./lib/update-storybook-config");
21
- function moveGenerator(tree, rawSchema) {
22
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
- const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, rawSchema.projectName);
24
- (0, check_destination_1.checkDestination)(tree, rawSchema, projectConfig);
25
- const schema = (0, normalize_schema_1.normalizeSchema)(tree, rawSchema, projectConfig);
26
- (0, devkit_1.removeProjectConfiguration)(tree, schema.projectName);
27
- (0, move_project_files_1.moveProjectFiles)(tree, schema, projectConfig);
28
- (0, create_project_configuration_in_new_destination_1.createProjectConfigurationInNewDestination)(tree, schema, projectConfig);
29
- (0, update_imports_1.updateImports)(tree, schema, projectConfig);
30
- (0, update_project_root_files_1.updateProjectRootFiles)(tree, schema, projectConfig);
31
- (0, update_cypress_config_1.updateCypressConfig)(tree, schema, projectConfig);
32
- (0, update_jest_config_1.updateJestConfig)(tree, schema, projectConfig);
33
- (0, update_storybook_config_1.updateStorybookConfig)(tree, schema, projectConfig);
34
- (0, update_eslintrc_json_1.updateEslintrcJson)(tree, schema, projectConfig);
35
- (0, update_readme_1.updateReadme)(tree, schema);
36
- (0, update_package_json_1.updatePackageJson)(tree, schema);
37
- (0, update_build_targets_1.updateBuildTargets)(tree, schema);
38
- (0, update_default_project_1.updateDefaultProject)(tree, schema);
39
- (0, update_implicit_dependencies_1.updateImplicitDependencies)(tree, schema);
40
- if (!schema.skipFormat) {
41
- yield (0, devkit_1.formatFiles)(tree);
42
- }
43
- });
44
- }
45
- exports.moveGenerator = moveGenerator;
46
- exports.default = moveGenerator;
47
- exports.moveSchematic = (0, devkit_1.convertNxGenerator)(moveGenerator);
48
- //# sourceMappingURL=move.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"move.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/generators/move/move.ts"],"names":[],"mappings":";;;;AAAA,yCAMsB;AACtB,+DAA2D;AAC3D,2HAAmH;AACnH,iEAA4D;AAC5D,6DAAyD;AACzD,qEAAgE;AAChE,uEAAkE;AAClE,yEAAoE;AACpE,qEAAgE;AAChE,qFAAgF;AAChF,yDAAqD;AACrD,iEAA4D;AAC5D,mEAA8D;AAC9D,+EAAyE;AACzE,uDAAmD;AACnD,2EAAsE;AAGtE,SAAsB,aAAa,CAAC,IAAU,EAAE,SAAiB;;QAC/D,MAAM,aAAa,G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AC;CAAA;AAvBD,sCAuBC;AAED,kBAAe,aAAa,CAAC;AAEhB,QAAA,aAAa,GAAG,IAAA,2BAAkB,EAAC,aAAa,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- export interface Schema {
2
- projectName: string;
3
- destination: string;
4
- importPath?: string;
5
- updateImportPath: boolean;
6
- skipFormat?: boolean;
7
- }
8
-
9
- export interface NormalizedSchema extends Schema {
10
- importPath: string;
11
- newProjectName: string;
12
- relativeToRootDestination: string;
13
- }
@@ -1,47 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "NxWorkspaceMove",
4
- "cli": "nx",
5
- "title": "Nx Move",
6
- "description": "Move a project to another folder in the workspace.",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "command": "nx g @nrwl/workspace:move --project my-feature-lib --destination shared/my-feature-lib",
11
- "description": "Move `libs/my-feature-lib` to `libs/shared/my-feature-lib`"
12
- }
13
- ],
14
- "properties": {
15
- "projectName": {
16
- "type": "string",
17
- "alias": "project",
18
- "description": "The name of the project to move.",
19
- "x-dropdown": "projects"
20
- },
21
- "destination": {
22
- "type": "string",
23
- "description": "The folder to move the project into.",
24
- "$default": {
25
- "$source": "argv",
26
- "index": 0
27
- }
28
- },
29
- "importPath": {
30
- "type": "string",
31
- "description": "The new import path to use in the `tsconfig.base.json`."
32
- },
33
- "updateImportPath": {
34
- "type": "boolean",
35
- "description": "Should the generator update the import path to reflect the new location?",
36
- "default": true
37
- },
38
- "skipFormat": {
39
- "type": "boolean",
40
- "aliases": ["skip-format"],
41
- "description": "Skip formatting files.",
42
- "default": false,
43
- "x-priority": "internal"
44
- }
45
- },
46
- "required": ["projectName", "destination"]
47
- }
@@ -1,13 +0,0 @@
1
- # Editor configuration, see http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- charset = utf-8
6
- indent_style = space
7
- indent_size = 2
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
10
-
11
- [*.md]
12
- max_line_length = off
13
- trim_trailing_whitespace = false