@nx/angular 0.0.0-pr-22179-271588f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (940) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +68 -0
  3. package/esm2022/index.mjs +2 -0
  4. package/esm2022/mf/index.mjs +2 -0
  5. package/esm2022/mf/mf.mjs +48 -0
  6. package/esm2022/mf/nx-angular-mf.mjs +5 -0
  7. package/esm2022/nx-angular.mjs +5 -0
  8. package/esm2022/src/runtime/nx/data-persistence.mjs +344 -0
  9. package/esm2022/testing/index.mjs +2 -0
  10. package/esm2022/testing/nx-angular-testing.mjs +5 -0
  11. package/esm2022/testing/src/testing-utils.mjs +36 -0
  12. package/executors.d.ts +16 -0
  13. package/executors.js +17 -0
  14. package/executors.json +61 -0
  15. package/fesm2022/nx-angular-mf.mjs +54 -0
  16. package/fesm2022/nx-angular-mf.mjs.map +1 -0
  17. package/fesm2022/nx-angular-testing.mjs +43 -0
  18. package/fesm2022/nx-angular-testing.mjs.map +1 -0
  19. package/fesm2022/nx-angular.mjs +351 -0
  20. package/fesm2022/nx-angular.mjs.map +1 -0
  21. package/generators.d.ts +30 -0
  22. package/generators.js +35 -0
  23. package/generators.json +186 -0
  24. package/index.d.ts +1 -0
  25. package/index.js +8 -0
  26. package/mf/index.d.ts +1 -0
  27. package/mf/index.js +7 -0
  28. package/mf/mf.d.ts +4 -0
  29. package/mf/mf.js +53 -0
  30. package/mf/ng-package.json +6 -0
  31. package/migrations.json +1717 -0
  32. package/module-federation/index.d.ts +2 -0
  33. package/module-federation/index.js +7 -0
  34. package/ng-package.json +31 -0
  35. package/package.json +109 -0
  36. package/plugins/component-testing.d.ts +20 -0
  37. package/plugins/component-testing.js +325 -0
  38. package/src/builders/dev-server/dev-server.impl.d.ts +4 -0
  39. package/src/builders/dev-server/dev-server.impl.js +160 -0
  40. package/src/builders/dev-server/lib/index.d.ts +2 -0
  41. package/src/builders/dev-server/lib/index.js +5 -0
  42. package/src/builders/dev-server/lib/normalize-options.d.ts +2 -0
  43. package/src/builders/dev-server/lib/normalize-options.js +20 -0
  44. package/src/builders/dev-server/lib/validate-options.d.ts +2 -0
  45. package/src/builders/dev-server/lib/validate-options.js +22 -0
  46. package/src/builders/dev-server/schema.d.ts +39 -0
  47. package/src/builders/dev-server/schema.json +153 -0
  48. package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.d.ts +4 -0
  49. package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js +99 -0
  50. package/src/builders/module-federation-dev-ssr/schema.d.ts +17 -0
  51. package/src/builders/module-federation-dev-ssr/schema.json +90 -0
  52. package/src/builders/utilities/buildable-libs.d.ts +9 -0
  53. package/src/builders/utilities/buildable-libs.js +15 -0
  54. package/src/builders/utilities/module-federation.d.ts +6 -0
  55. package/src/builders/utilities/module-federation.js +95 -0
  56. package/src/builders/utilities/webpack.d.ts +6 -0
  57. package/src/builders/utilities/webpack.js +45 -0
  58. package/src/builders/webpack-browser/schema.d.ts +13 -0
  59. package/src/builders/webpack-browser/schema.json +600 -0
  60. package/src/builders/webpack-browser/webpack-browser.impl.d.ts +5 -0
  61. package/src/builders/webpack-browser/webpack-browser.impl.js +79 -0
  62. package/src/builders/webpack-server/schema.d.ts +8 -0
  63. package/src/builders/webpack-server/schema.json +321 -0
  64. package/src/builders/webpack-server/validate-options.d.ts +2 -0
  65. package/src/builders/webpack-server/validate-options.js +33 -0
  66. package/src/builders/webpack-server/webpack-server.impl.d.ts +5 -0
  67. package/src/builders/webpack-server/webpack-server.impl.js +61 -0
  68. package/src/executors/application/application.impl.d.ts +3 -0
  69. package/src/executors/application/application.impl.js +37 -0
  70. package/src/executors/application/schema.d.ts +8 -0
  71. package/src/executors/application/schema.json +678 -0
  72. package/src/executors/application/utils/validate-options.d.ts +2 -0
  73. package/src/executors/application/utils/validate-options.js +47 -0
  74. package/src/executors/browser-esbuild/browser-esbuild.impl.d.ts +9 -0
  75. package/src/executors/browser-esbuild/browser-esbuild.impl.js +34 -0
  76. package/src/executors/browser-esbuild/schema.d.ts +7 -0
  77. package/src/executors/browser-esbuild/schema.json +585 -0
  78. package/src/executors/delegate-build/delegate-build.impl.d.ts +8 -0
  79. package/src/executors/delegate-build/delegate-build.impl.js +17 -0
  80. package/src/executors/delegate-build/schema.d.ts +6 -0
  81. package/src/executors/delegate-build/schema.json +34 -0
  82. package/src/executors/extract-i18n/extract-i18n.impl.d.ts +3 -0
  83. package/src/executors/extract-i18n/extract-i18n.impl.js +43 -0
  84. package/src/executors/extract-i18n/schema.d.ts +8 -0
  85. package/src/executors/extract-i18n/schema.json +45 -0
  86. package/src/executors/module-federation-dev-server/lib/build-static-remotes.d.ts +4 -0
  87. package/src/executors/module-federation-dev-server/lib/build-static-remotes.js +48 -0
  88. package/src/executors/module-federation-dev-server/lib/index.d.ts +5 -0
  89. package/src/executors/module-federation-dev-server/lib/index.js +8 -0
  90. package/src/executors/module-federation-dev-server/lib/normalize-options.d.ts +2 -0
  91. package/src/executors/module-federation-dev-server/lib/normalize-options.js +23 -0
  92. package/src/executors/module-federation-dev-server/lib/parse-static-remotes-config.d.ts +11 -0
  93. package/src/executors/module-federation-dev-server/lib/parse-static-remotes-config.js +18 -0
  94. package/src/executors/module-federation-dev-server/lib/start-dev-remotes.d.ts +9 -0
  95. package/src/executors/module-federation-dev-server/lib/start-dev-remotes.js +29 -0
  96. package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.d.ts +9 -0
  97. package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.js +46 -0
  98. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +4 -0
  99. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +115 -0
  100. package/src/executors/module-federation-dev-server/schema.d.ts +43 -0
  101. package/src/executors/module-federation-dev-server/schema.json +165 -0
  102. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-packagr.d.ts +3 -0
  103. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-packagr.js +34 -0
  104. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/compile-ngc.di.d.ts +14 -0
  105. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/compile-ngc.di.js +27 -0
  106. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/compile-ngc.transform.d.ts +12 -0
  107. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/compile-ngc.transform.js +52 -0
  108. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/entry-point.di.d.ts +15 -0
  109. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/entry-point.di.js +28 -0
  110. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/entry-point.transform.d.ts +30 -0
  111. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/entry-point.transform.js +52 -0
  112. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/write-package.di.d.ts +12 -0
  113. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/write-package.di.js +20 -0
  114. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/write-package.transform.d.ts +9 -0
  115. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/entry-point/write-package.transform.js +319 -0
  116. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/options.di.d.ts +14 -0
  117. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/options.di.js +34 -0
  118. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/package.di.d.ts +14 -0
  119. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ng-package/package.di.js +37 -0
  120. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ngc/compile-source-files.d.ts +13 -0
  121. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ngc/compile-source-files.js +178 -0
  122. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/styles/stylesheet-processor.d.ts +42 -0
  123. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/styles/stylesheet-processor.di.d.ts +10 -0
  124. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/styles/stylesheet-processor.di.js +17 -0
  125. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/styles/stylesheet-processor.js +201 -0
  126. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-bundles.di.d.ts +2 -0
  127. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-bundles.di.js +12 -0
  128. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-bundles.transform.d.ts +8 -0
  129. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-bundles.transform.js +12 -0
  130. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-package.di.d.ts +8 -0
  131. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-package.di.js +18 -0
  132. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-package.transform.d.ts +8 -0
  133. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/v17+/ng-package/entry-point/write-package.transform.js +285 -0
  134. package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.d.ts +6 -0
  135. package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js +20 -0
  136. package/src/executors/ng-packagr-lite/schema.json +43 -0
  137. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.d.ts +14 -0
  138. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js +26 -0
  139. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.d.ts +12 -0
  140. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js +70 -0
  141. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.d.ts +13 -0
  142. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js +32 -0
  143. package/src/executors/package/ng-packagr-adjustments/ng-package/options.di.d.ts +14 -0
  144. package/src/executors/package/ng-packagr-adjustments/ng-package/options.di.js +34 -0
  145. package/src/executors/package/ng-packagr-adjustments/ng-package/package.di.d.ts +14 -0
  146. package/src/executors/package/ng-packagr-adjustments/ng-package/package.di.js +37 -0
  147. package/src/executors/package/ng-packagr-adjustments/ng-packagr.d.ts +3 -0
  148. package/src/executors/package/ng-packagr-adjustments/ng-packagr.js +28 -0
  149. package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.d.ts +14 -0
  150. package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js +183 -0
  151. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.d.ts +36 -0
  152. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.di.d.ts +10 -0
  153. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.di.js +17 -0
  154. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.js +194 -0
  155. package/src/executors/package/ng-packagr-adjustments/utils/ng-compiler-cli.d.ts +1 -0
  156. package/src/executors/package/ng-packagr-adjustments/utils/ng-compiler-cli.js +10 -0
  157. package/src/executors/package/package.impl.d.ts +16 -0
  158. package/src/executors/package/package.impl.js +42 -0
  159. package/src/executors/package/schema.d.ts +6 -0
  160. package/src/executors/package/schema.json +45 -0
  161. package/src/executors/utilities/angular-version-utils.d.ts +6 -0
  162. package/src/executors/utilities/angular-version-utils.js +19 -0
  163. package/src/executors/utilities/buildable-libs.d.ts +6 -0
  164. package/src/executors/utilities/buildable-libs.js +16 -0
  165. package/src/executors/utilities/esbuild-extensions.d.ts +10 -0
  166. package/src/executors/utilities/esbuild-extensions.js +50 -0
  167. package/src/executors/utilities/module-loader.d.ts +15 -0
  168. package/src/executors/utilities/module-loader.js +52 -0
  169. package/src/executors/utilities/ng-compiler-cli.d.ts +1 -0
  170. package/src/executors/utilities/ng-compiler-cli.js +8 -0
  171. package/src/executors/utilities/ng-packagr/stylesheet-processor.d.ts +27 -0
  172. package/src/executors/utilities/ng-packagr/stylesheet-processor.di.d.ts +2 -0
  173. package/src/executors/utilities/ng-packagr/stylesheet-processor.di.js +10 -0
  174. package/src/executors/utilities/ng-packagr/stylesheet-processor.js +130 -0
  175. package/src/executors/utilities/ng-packagr/tailwindcss.d.ts +7 -0
  176. package/src/executors/utilities/ng-packagr/tailwindcss.js +56 -0
  177. package/src/executors/utilities/patch-builder-context.d.ts +3 -0
  178. package/src/executors/utilities/patch-builder-context.js +41 -0
  179. package/src/executors/utilities/typescript.d.ts +13 -0
  180. package/src/executors/utilities/typescript.js +43 -0
  181. package/src/generators/add-linting/add-linting.d.ts +4 -0
  182. package/src/generators/add-linting/add-linting.js +105 -0
  183. package/src/generators/add-linting/lib/add-angular-eslint-dependencies.d.ts +2 -0
  184. package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +16 -0
  185. package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +81 -0
  186. package/src/generators/add-linting/lib/create-eslint-configuration.js +121 -0
  187. package/src/generators/add-linting/schema.d.ts +9 -0
  188. package/src/generators/add-linting/schema.json +51 -0
  189. package/src/generators/application/application.d.ts +5 -0
  190. package/src/generators/application/application.js +76 -0
  191. package/src/generators/application/files/base/src/assets/.gitkeep__tpl__ +0 -0
  192. package/src/generators/application/files/base/src/favicon.ico +0 -0
  193. package/src/generators/application/files/base/src/index.html__tpl__ +13 -0
  194. package/src/generators/application/files/base/src/styles.__style__ +1 -0
  195. package/src/generators/application/files/base/tsconfig.app.json__tpl__ +10 -0
  196. package/src/generators/application/files/base/tsconfig.editor.json__tpl__ +5 -0
  197. package/src/generators/application/files/base/tsconfig.json__tpl__ +18 -0
  198. package/src/generators/application/files/ng-module/src/app/app.component.__style__ +0 -0
  199. package/src/generators/application/files/ng-module/src/app/app.component.html__tpl__ +1 -0
  200. package/src/generators/application/files/ng-module/src/app/app.component.spec.ts__tpl__ +28 -0
  201. package/src/generators/application/files/ng-module/src/app/app.component.ts__tpl__ +15 -0
  202. package/src/generators/application/files/ng-module/src/app/app.module.ts__tpl__ +17 -0
  203. package/src/generators/application/files/ng-module/src/app/app.routes.ts__tpl__ +3 -0
  204. package/src/generators/application/files/ng-module/src/app/nx-welcome.component.ts__tpl__ +834 -0
  205. package/src/generators/application/files/ng-module/src/main.ts__tpl__ +6 -0
  206. package/src/generators/application/files/standalone-components/src/app/app.component.__style__ +0 -0
  207. package/src/generators/application/files/standalone-components/src/app/app.component.html__tpl__ +1 -0
  208. package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__ +27 -0
  209. package/src/generators/application/files/standalone-components/src/app/app.component.ts__tpl__ +19 -0
  210. package/src/generators/application/files/standalone-components/src/app/app.config.ts__tpl__ +7 -0
  211. package/src/generators/application/files/standalone-components/src/app/app.routes.ts__tpl__ +3 -0
  212. package/src/generators/application/files/standalone-components/src/app/nx-welcome.component.ts__tpl__ +837 -0
  213. package/src/generators/application/files/standalone-components/src/main.ts__tpl__ +7 -0
  214. package/src/generators/application/lib/add-e2e.d.ts +3 -0
  215. package/src/generators/application/lib/add-e2e.js +77 -0
  216. package/src/generators/application/lib/add-linting.d.ts +3 -0
  217. package/src/generators/application/lib/add-linting.js +20 -0
  218. package/src/generators/application/lib/add-proxy-config.d.ts +3 -0
  219. package/src/generators/application/lib/add-proxy-config.js +25 -0
  220. package/src/generators/application/lib/add-unit-test-runner.d.ts +3 -0
  221. package/src/generators/application/lib/add-unit-test-runner.js +16 -0
  222. package/src/generators/application/lib/create-files.d.ts +3 -0
  223. package/src/generators/application/lib/create-files.js +58 -0
  224. package/src/generators/application/lib/create-project.d.ts +3 -0
  225. package/src/generators/application/lib/create-project.js +111 -0
  226. package/src/generators/application/lib/enable-strict-type-checking.d.ts +3 -0
  227. package/src/generators/application/lib/enable-strict-type-checking.js +36 -0
  228. package/src/generators/application/lib/index.d.ts +12 -0
  229. package/src/generators/application/lib/index.js +15 -0
  230. package/src/generators/application/lib/normalize-options.d.ts +4 -0
  231. package/src/generators/application/lib/normalize-options.js +56 -0
  232. package/src/generators/application/lib/normalized-schema.d.ts +15 -0
  233. package/src/generators/application/lib/normalized-schema.js +2 -0
  234. package/src/generators/application/lib/set-app-strict-default.d.ts +2 -0
  235. package/src/generators/application/lib/set-app-strict-default.js +14 -0
  236. package/src/generators/application/lib/set-generator-defaults.d.ts +3 -0
  237. package/src/generators/application/lib/set-generator-defaults.js +17 -0
  238. package/src/generators/application/lib/update-editor-tsconfig.d.ts +3 -0
  239. package/src/generators/application/lib/update-editor-tsconfig.js +22 -0
  240. package/src/generators/application/schema.d.ts +34 -0
  241. package/src/generators/application/schema.json +192 -0
  242. package/src/generators/component/component.d.ts +5 -0
  243. package/src/generators/component/component.js +57 -0
  244. package/src/generators/component/files/__fileName__.__style__ +6 -0
  245. package/src/generators/component/files/__fileName__.html__tpl__ +1 -0
  246. package/src/generators/component/files/__fileName__.spec.ts__tpl__ +21 -0
  247. package/src/generators/component/files/__fileName__.ts__tpl__ +27 -0
  248. package/src/generators/component/lib/component.d.ts +3 -0
  249. package/src/generators/component/lib/component.js +46 -0
  250. package/src/generators/component/lib/index.d.ts +4 -0
  251. package/src/generators/component/lib/index.js +7 -0
  252. package/src/generators/component/lib/module.d.ts +3 -0
  253. package/src/generators/component/lib/module.js +63 -0
  254. package/src/generators/component/lib/normalize-options.d.ts +3 -0
  255. package/src/generators/component/lib/normalize-options.js +41 -0
  256. package/src/generators/component/lib/set-generator-defaults.d.ts +3 -0
  257. package/src/generators/component/lib/set-generator-defaults.js +14 -0
  258. package/src/generators/component/schema.d.ts +48 -0
  259. package/src/generators/component/schema.json +138 -0
  260. package/src/generators/component-cypress-spec/component-cypress-spec.d.ts +4 -0
  261. package/src/generators/component-cypress-spec/component-cypress-spec.js +36 -0
  262. package/src/generators/component-cypress-spec/files/__componentFileName__.__fileExt__ +17 -0
  263. package/src/generators/component-cypress-spec/lib/get-args-default-value.d.ts +2 -0
  264. package/src/generators/component-cypress-spec/lib/get-args-default-value.js +25 -0
  265. package/src/generators/component-cypress-spec/lib/get-component-selector.d.ts +2 -0
  266. package/src/generators/component-cypress-spec/lib/get-component-selector.js +24 -0
  267. package/src/generators/component-cypress-spec/schema.d.ts +10 -0
  268. package/src/generators/component-cypress-spec/schema.json +65 -0
  269. package/src/generators/component-story/component-story.d.ts +4 -0
  270. package/src/generators/component-story/component-story.js +28 -0
  271. package/src/generators/component-story/files/__componentFileName__.stories.ts__tmpl__ +31 -0
  272. package/src/generators/component-story/schema.d.ts +8 -0
  273. package/src/generators/component-story/schema.json +53 -0
  274. package/src/generators/component-test/component-test.d.ts +4 -0
  275. package/src/generators/component-test/component-test.js +31 -0
  276. package/src/generators/component-test/files/__componentFileName__.cy.ts__tpl__ +21 -0
  277. package/src/generators/component-test/schema.d.ts +12 -0
  278. package/src/generators/component-test/schema.json +49 -0
  279. package/src/generators/convert-to-application-executor/convert-to-application-executor.d.ts +4 -0
  280. package/src/generators/convert-to-application-executor/convert-to-application-executor.js +240 -0
  281. package/src/generators/convert-to-application-executor/schema.d.ts +4 -0
  282. package/src/generators/convert-to-application-executor/schema.json +26 -0
  283. package/src/generators/convert-to-with-mf/convert-to-with-mf.d.ts +4 -0
  284. package/src/generators/convert-to-with-mf/convert-to-with-mf.js +32 -0
  285. package/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.d.ts +5 -0
  286. package/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.js +448 -0
  287. package/src/generators/convert-to-with-mf/lib/check-name-matches.d.ts +2 -0
  288. package/src/generators/convert-to-with-mf/lib/check-name-matches.js +25 -0
  289. package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.d.ts +2 -0
  290. package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +50 -0
  291. package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.d.ts +2 -0
  292. package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js +19 -0
  293. package/src/generators/convert-to-with-mf/lib/index.d.ts +6 -0
  294. package/src/generators/convert-to-with-mf/lib/index.js +9 -0
  295. package/src/generators/convert-to-with-mf/lib/is-host-remote-config.d.ts +5 -0
  296. package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +68 -0
  297. package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.d.ts +2 -0
  298. package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +14 -0
  299. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.d.ts +3 -0
  300. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +51 -0
  301. package/src/generators/convert-to-with-mf/schema.d.ts +4 -0
  302. package/src/generators/convert-to-with-mf/schema.json +33 -0
  303. package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts +9 -0
  304. package/src/generators/cypress-component-configuration/cypress-component-configuration.js +108 -0
  305. package/src/generators/cypress-component-configuration/schema.d.ts +6 -0
  306. package/src/generators/cypress-component-configuration/schema.json +40 -0
  307. package/src/generators/directive/directive.d.ts +4 -0
  308. package/src/generators/directive/directive.js +29 -0
  309. package/src/generators/directive/files/__fileName__.spec.ts__tpl__ +8 -0
  310. package/src/generators/directive/files/__fileName__.ts__tpl__ +9 -0
  311. package/src/generators/directive/lib/index.d.ts +1 -0
  312. package/src/generators/directive/lib/index.js +4 -0
  313. package/src/generators/directive/lib/normalize-options.d.ts +3 -0
  314. package/src/generators/directive/lib/normalize-options.js +37 -0
  315. package/src/generators/directive/schema.d.ts +35 -0
  316. package/src/generators/directive/schema.json +96 -0
  317. package/src/generators/federate-module/federate-module.d.ts +4 -0
  318. package/src/generators/federate-module/federate-module.js +40 -0
  319. package/src/generators/federate-module/lib/add-file-to-remote-tsconfig.d.ts +2 -0
  320. package/src/generators/federate-module/lib/add-file-to-remote-tsconfig.js +15 -0
  321. package/src/generators/federate-module/lib/add-path-to-exposes.d.ts +8 -0
  322. package/src/generators/federate-module/lib/add-path-to-exposes.js +78 -0
  323. package/src/generators/federate-module/lib/add-path-to-ts-config.d.ts +8 -0
  324. package/src/generators/federate-module/lib/add-path-to-ts-config.js +12 -0
  325. package/src/generators/federate-module/lib/add-remote.d.ts +7 -0
  326. package/src/generators/federate-module/lib/add-remote.js +45 -0
  327. package/src/generators/federate-module/lib/check-remote-exists.d.ts +2 -0
  328. package/src/generators/federate-module/lib/check-remote-exists.js +22 -0
  329. package/src/generators/federate-module/lib/index.d.ts +4 -0
  330. package/src/generators/federate-module/lib/index.js +7 -0
  331. package/src/generators/federate-module/schema.d.ts +15 -0
  332. package/src/generators/federate-module/schema.json +81 -0
  333. package/src/generators/host/files/common/pre-v17/src/main.server.ts__tmpl__ +66 -0
  334. package/src/generators/host/files/common/v17+/src/main.server.ts__tmpl__ +67 -0
  335. package/src/generators/host/files/js/webpack.server.config.js__tmpl__ +3 -0
  336. package/src/generators/host/files/ts/webpack.server.config.ts__tmpl__ +4 -0
  337. package/src/generators/host/host.d.ts +5 -0
  338. package/src/generators/host/host.js +101 -0
  339. package/src/generators/host/lib/index.d.ts +1 -0
  340. package/src/generators/host/lib/index.js +4 -0
  341. package/src/generators/host/lib/update-ssr-setup.d.ts +3 -0
  342. package/src/generators/host/lib/update-ssr-setup.js +40 -0
  343. package/src/generators/host/schema.d.ts +33 -0
  344. package/src/generators/host/schema.json +185 -0
  345. package/src/generators/init/init.d.ts +4 -0
  346. package/src/generators/init/init.js +65 -0
  347. package/src/generators/init/schema.d.ts +6 -0
  348. package/src/generators/init/schema.json +34 -0
  349. package/src/generators/library/files/base/README.md__tpl__ +9 -0
  350. package/src/generators/library/files/base/ng-package.json__tpl__ +7 -0
  351. package/src/generators/library/files/base/package.json__tpl__ +12 -0
  352. package/src/generators/library/files/base/tsconfig.json__tpl__ +14 -0
  353. package/src/generators/library/files/base/tsconfig.lib.json__tpl__ +17 -0
  354. package/src/generators/library/files/base/tsconfig.lib.prod.json__tpl__ +9 -0
  355. package/src/generators/library/files/ng-module/src/index.ts__tpl__ +2 -0
  356. package/src/generators/library/files/ng-module/src/lib/__libFileName__.module.ts__tpl__ +9 -0
  357. package/src/generators/library/files/ng-module/src/lib/lib.routes.ts__tpl__ +5 -0
  358. package/src/generators/library/files/standalone-components/src/index.ts__tpl__ +1 -0
  359. package/src/generators/library/files/standalone-components/src/lib/lib.routes.ts__tpl__ +6 -0
  360. package/src/generators/library/lib/add-children.d.ts +3 -0
  361. package/src/generators/library/lib/add-children.js +30 -0
  362. package/src/generators/library/lib/add-load-children.d.ts +3 -0
  363. package/src/generators/library/lib/add-load-children.js +22 -0
  364. package/src/generators/library/lib/add-module.d.ts +3 -0
  365. package/src/generators/library/lib/add-module.js +14 -0
  366. package/src/generators/library/lib/add-project.d.ts +4 -0
  367. package/src/generators/library/lib/add-project.js +41 -0
  368. package/src/generators/library/lib/add-standalone-component.d.ts +3 -0
  369. package/src/generators/library/lib/add-standalone-component.js +29 -0
  370. package/src/generators/library/lib/create-files.d.ts +4 -0
  371. package/src/generators/library/lib/create-files.js +53 -0
  372. package/src/generators/library/lib/enable-strict-type-checking.d.ts +7 -0
  373. package/src/generators/library/lib/enable-strict-type-checking.js +48 -0
  374. package/src/generators/library/lib/normalize-options.d.ts +4 -0
  375. package/src/generators/library/lib/normalize-options.js +77 -0
  376. package/src/generators/library/lib/normalized-schema.d.ts +55 -0
  377. package/src/generators/library/lib/normalized-schema.js +2 -0
  378. package/src/generators/library/lib/set-generator-defaults.d.ts +3 -0
  379. package/src/generators/library/lib/set-generator-defaults.js +15 -0
  380. package/src/generators/library/lib/update-lib-package-npm-scope.d.ts +3 -0
  381. package/src/generators/library/lib/update-lib-package-npm-scope.js +11 -0
  382. package/src/generators/library/lib/update-tsconfig.d.ts +3 -0
  383. package/src/generators/library/lib/update-tsconfig.js +37 -0
  384. package/src/generators/library/library.d.ts +5 -0
  385. package/src/generators/library/library.js +125 -0
  386. package/src/generators/library/schema.d.ts +44 -0
  387. package/src/generators/library/schema.json +208 -0
  388. package/src/generators/library-secondary-entry-point/files/README.md__tmpl__ +3 -0
  389. package/src/generators/library-secondary-entry-point/files/ng-package.json__tmpl__ +5 -0
  390. package/src/generators/library-secondary-entry-point/files/src/index.ts__tmpl__ +1 -0
  391. package/src/generators/library-secondary-entry-point/files/src/lib/__fileName__.module.ts__tmpl__ +7 -0
  392. package/src/generators/library-secondary-entry-point/lib/add-files.d.ts +3 -0
  393. package/src/generators/library-secondary-entry-point/lib/add-files.js +16 -0
  394. package/src/generators/library-secondary-entry-point/lib/add-path-mapping.d.ts +3 -0
  395. package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +16 -0
  396. package/src/generators/library-secondary-entry-point/lib/index.d.ts +4 -0
  397. package/src/generators/library-secondary-entry-point/lib/index.js +7 -0
  398. package/src/generators/library-secondary-entry-point/lib/normalize-options.d.ts +3 -0
  399. package/src/generators/library-secondary-entry-point/lib/normalize-options.js +31 -0
  400. package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.d.ts +3 -0
  401. package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.js +26 -0
  402. package/src/generators/library-secondary-entry-point/library-secondary-entry-point.d.ts +4 -0
  403. package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +16 -0
  404. package/src/generators/library-secondary-entry-point/schema.d.ts +16 -0
  405. package/src/generators/library-secondary-entry-point/schema.json +43 -0
  406. package/src/generators/move/lib/index.d.ts +3 -0
  407. package/src/generators/move/lib/index.js +6 -0
  408. package/src/generators/move/lib/types.d.ts +4 -0
  409. package/src/generators/move/lib/types.js +2 -0
  410. package/src/generators/move/lib/update-module-name.d.ts +11 -0
  411. package/src/generators/move/lib/update-module-name.js +99 -0
  412. package/src/generators/move/lib/update-ng-package.d.ts +3 -0
  413. package/src/generators/move/lib/update-ng-package.js +33 -0
  414. package/src/generators/move/lib/update-secondary-entry-points.d.ts +3 -0
  415. package/src/generators/move/lib/update-secondary-entry-points.js +44 -0
  416. package/src/generators/move/move-impl.d.ts +7 -0
  417. package/src/generators/move/move-impl.js +25 -0
  418. package/src/generators/move/move.d.ts +4 -0
  419. package/src/generators/move/move.js +16 -0
  420. package/src/generators/move/schema.d.ts +11 -0
  421. package/src/generators/move/schema.json +61 -0
  422. package/src/generators/ng-add/files/root/apps/__dot__gitkeep +0 -0
  423. package/src/generators/ng-add/files/root/libs/__dot__gitkeep +0 -0
  424. package/src/generators/ng-add/files/root/tools/generators/__dot__gitkeep +0 -0
  425. package/src/generators/ng-add/files/root/tools/tsconfig.tools.json__tmpl__ +12 -0
  426. package/src/generators/ng-add/files/root-karma/karma.conf.js__tmpl__ +43 -0
  427. package/src/generators/ng-add/migrate-from-angular-cli.d.ts +3 -0
  428. package/src/generators/ng-add/migrate-from-angular-cli.js +62 -0
  429. package/src/generators/ng-add/migrators/builders/angular-devkit-karma.migrator.d.ts +9 -0
  430. package/src/generators/ng-add/migrators/builders/angular-devkit-karma.migrator.js +78 -0
  431. package/src/generators/ng-add/migrators/builders/angular-devkit-ng-packagr.migrator.d.ts +10 -0
  432. package/src/generators/ng-add/migrators/builders/angular-devkit-ng-packagr.migrator.js +95 -0
  433. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.d.ts +12 -0
  434. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.js +113 -0
  435. package/src/generators/ng-add/migrators/builders/builder-migrator-class.type.d.ts +6 -0
  436. package/src/generators/ng-add/migrators/builders/builder-migrator-class.type.js +2 -0
  437. package/src/generators/ng-add/migrators/builders/builder.migrator.d.ts +13 -0
  438. package/src/generators/ng-add/migrators/builders/builder.migrator.js +43 -0
  439. package/src/generators/ng-add/migrators/builders/index.d.ts +5 -0
  440. package/src/generators/ng-add/migrators/builders/index.js +8 -0
  441. package/src/generators/ng-add/migrators/index.d.ts +2 -0
  442. package/src/generators/ng-add/migrators/index.js +5 -0
  443. package/src/generators/ng-add/migrators/migrator.d.ts +23 -0
  444. package/src/generators/ng-add/migrators/migrator.js +117 -0
  445. package/src/generators/ng-add/migrators/projects/app.migrator.d.ts +25 -0
  446. package/src/generators/ng-add/migrators/projects/app.migrator.js +342 -0
  447. package/src/generators/ng-add/migrators/projects/e2e.migrator.d.ts +38 -0
  448. package/src/generators/ng-add/migrators/projects/e2e.migrator.js +604 -0
  449. package/src/generators/ng-add/migrators/projects/index.d.ts +4 -0
  450. package/src/generators/ng-add/migrators/projects/index.js +7 -0
  451. package/src/generators/ng-add/migrators/projects/lib.migrator.d.ts +11 -0
  452. package/src/generators/ng-add/migrators/projects/lib.migrator.js +53 -0
  453. package/src/generators/ng-add/migrators/projects/project.migrator.d.ts +25 -0
  454. package/src/generators/ng-add/migrators/projects/project.migrator.js +180 -0
  455. package/src/generators/ng-add/ng-add.d.ts +4 -0
  456. package/src/generators/ng-add/ng-add.js +9 -0
  457. package/src/generators/ng-add/schema.d.ts +16 -0
  458. package/src/generators/ng-add/schema.json +66 -0
  459. package/src/generators/ng-add/utilities/dependencies.d.ts +2 -0
  460. package/src/generators/ng-add/utilities/dependencies.js +28 -0
  461. package/src/generators/ng-add/utilities/format-files-task.d.ts +2 -0
  462. package/src/generators/ng-add/utilities/format-files-task.js +16 -0
  463. package/src/generators/ng-add/utilities/index.d.ts +7 -0
  464. package/src/generators/ng-add/utilities/index.js +10 -0
  465. package/src/generators/ng-add/utilities/logger.d.ts +8 -0
  466. package/src/generators/ng-add/utilities/logger.js +20 -0
  467. package/src/generators/ng-add/utilities/projects.d.ts +4 -0
  468. package/src/generators/ng-add/utilities/projects.js +35 -0
  469. package/src/generators/ng-add/utilities/types.d.ts +31 -0
  470. package/src/generators/ng-add/utilities/types.js +2 -0
  471. package/src/generators/ng-add/utilities/validation-logging.d.ts +3 -0
  472. package/src/generators/ng-add/utilities/validation-logging.js +38 -0
  473. package/src/generators/ng-add/utilities/workspace.d.ts +17 -0
  474. package/src/generators/ng-add/utilities/workspace.js +292 -0
  475. package/src/generators/ngrx/files/__directory__/__fileName__.actions.ts__tmpl__ +16 -0
  476. package/src/generators/ngrx/files/__directory__/__fileName__.effects.spec.ts__tmpl__ +37 -0
  477. package/src/generators/ngrx/files/__directory__/__fileName__.effects.ts__tmpl__ +22 -0
  478. package/src/generators/ngrx/files/__directory__/__fileName__.facade.spec.ts__tmpl__ +99 -0
  479. package/src/generators/ngrx/files/__directory__/__fileName__.facade.ts__tmpl__ +27 -0
  480. package/src/generators/ngrx/files/__directory__/__fileName__.models.ts__tmpl__ +7 -0
  481. package/src/generators/ngrx/files/__directory__/__fileName__.reducer.spec.ts__tmpl__ +37 -0
  482. package/src/generators/ngrx/files/__directory__/__fileName__.reducer.ts__tmpl__ +41 -0
  483. package/src/generators/ngrx/files/__directory__/__fileName__.selectors.spec.ts__tmpl__ +58 -0
  484. package/src/generators/ngrx/files/__directory__/__fileName__.selectors.ts__tmpl__ +38 -0
  485. package/src/generators/ngrx/lib/add-exports-barrel.d.ts +6 -0
  486. package/src/generators/ngrx/lib/add-exports-barrel.js +45 -0
  487. package/src/generators/ngrx/lib/add-imports-to-module.d.ts +3 -0
  488. package/src/generators/ngrx/lib/add-imports-to-module.js +182 -0
  489. package/src/generators/ngrx/lib/add-ngrx-to-package-json.d.ts +3 -0
  490. package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +25 -0
  491. package/src/generators/ngrx/lib/generate-files.d.ts +6 -0
  492. package/src/generators/ngrx/lib/generate-files.js +23 -0
  493. package/src/generators/ngrx/lib/index.d.ts +6 -0
  494. package/src/generators/ngrx/lib/index.js +15 -0
  495. package/src/generators/ngrx/lib/normalize-options.d.ts +7 -0
  496. package/src/generators/ngrx/lib/normalize-options.js +28 -0
  497. package/src/generators/ngrx/lib/validate-options.d.ts +3 -0
  498. package/src/generators/ngrx/lib/validate-options.js +15 -0
  499. package/src/generators/ngrx/ngrx.d.ts +4 -0
  500. package/src/generators/ngrx/ngrx.js +26 -0
  501. package/src/generators/ngrx/schema.d.ts +14 -0
  502. package/src/generators/ngrx/schema.json +102 -0
  503. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.actions.ts__tmpl__ +16 -0
  504. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.effects.spec.ts__tmpl__ +37 -0
  505. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.effects.ts__tmpl__ +22 -0
  506. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.facade.spec.ts__tmpl__ +99 -0
  507. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.facade.ts__tmpl__ +27 -0
  508. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.models.ts__tmpl__ +7 -0
  509. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.reducer.spec.ts__tmpl__ +37 -0
  510. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.reducer.ts__tmpl__ +41 -0
  511. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.selectors.spec.ts__tmpl__ +58 -0
  512. package/src/generators/ngrx-feature-store/files/__directory__/__fileName__.selectors.ts__tmpl__ +38 -0
  513. package/src/generators/ngrx-feature-store/lib/add-exports-barrel.d.ts +3 -0
  514. package/src/generators/ngrx-feature-store/lib/add-exports-barrel.js +41 -0
  515. package/src/generators/ngrx-feature-store/lib/add-imports.d.ts +3 -0
  516. package/src/generators/ngrx-feature-store/lib/add-imports.js +102 -0
  517. package/src/generators/ngrx-feature-store/lib/add-ngrx-to-package-json.d.ts +3 -0
  518. package/src/generators/ngrx-feature-store/lib/add-ngrx-to-package-json.js +25 -0
  519. package/src/generators/ngrx-feature-store/lib/generate-files.d.ts +3 -0
  520. package/src/generators/ngrx-feature-store/lib/generate-files.js +24 -0
  521. package/src/generators/ngrx-feature-store/lib/index.d.ts +6 -0
  522. package/src/generators/ngrx-feature-store/lib/index.js +9 -0
  523. package/src/generators/ngrx-feature-store/lib/normalize-options.d.ts +8 -0
  524. package/src/generators/ngrx-feature-store/lib/normalize-options.js +38 -0
  525. package/src/generators/ngrx-feature-store/lib/validate-options.d.ts +3 -0
  526. package/src/generators/ngrx-feature-store/lib/validate-options.js +12 -0
  527. package/src/generators/ngrx-feature-store/ngrx-feature-store.d.ts +5 -0
  528. package/src/generators/ngrx-feature-store/ngrx-feature-store.js +26 -0
  529. package/src/generators/ngrx-feature-store/schema.d.ts +12 -0
  530. package/src/generators/ngrx-feature-store/schema.json +72 -0
  531. package/src/generators/ngrx-root-store/lib/add-imports.d.ts +3 -0
  532. package/src/generators/ngrx-root-store/lib/add-imports.js +101 -0
  533. package/src/generators/ngrx-root-store/lib/add-ngrx-to-package-json.d.ts +3 -0
  534. package/src/generators/ngrx-root-store/lib/add-ngrx-to-package-json.js +27 -0
  535. package/src/generators/ngrx-root-store/lib/index.d.ts +4 -0
  536. package/src/generators/ngrx-root-store/lib/index.js +7 -0
  537. package/src/generators/ngrx-root-store/lib/normalize-options.d.ts +7 -0
  538. package/src/generators/ngrx-root-store/lib/normalize-options.js +40 -0
  539. package/src/generators/ngrx-root-store/lib/validate-options.d.ts +3 -0
  540. package/src/generators/ngrx-root-store/lib/validate-options.js +17 -0
  541. package/src/generators/ngrx-root-store/ngrx-root-store.d.ts +5 -0
  542. package/src/generators/ngrx-root-store/ngrx-root-store.js +36 -0
  543. package/src/generators/ngrx-root-store/schema.d.ts +11 -0
  544. package/src/generators/ngrx-root-store/schema.json +71 -0
  545. package/src/generators/pipe/files/__fileName__.spec.ts__tpl__ +8 -0
  546. package/src/generators/pipe/files/__fileName__.ts__tpl__ +11 -0
  547. package/src/generators/pipe/lib/index.d.ts +1 -0
  548. package/src/generators/pipe/lib/index.js +4 -0
  549. package/src/generators/pipe/lib/normalize-options.d.ts +3 -0
  550. package/src/generators/pipe/lib/normalize-options.js +31 -0
  551. package/src/generators/pipe/pipe.d.ts +4 -0
  552. package/src/generators/pipe/pipe.js +30 -0
  553. package/src/generators/pipe/schema.d.ts +33 -0
  554. package/src/generators/pipe/schema.json +77 -0
  555. package/src/generators/remote/files/base/webpack.server.config.js__tmpl__ +3 -0
  556. package/src/generators/remote/files/base-ts/webpack.server.config.ts__tmpl__ +4 -0
  557. package/src/generators/remote/files/common/pre-v17/src/main.server.ts__tmpl__ +72 -0
  558. package/src/generators/remote/files/common/v17+/src/main.server.ts__tmpl__ +73 -0
  559. package/src/generators/remote/files/standalone/src/bootstrap.server.ts__tmpl__ +7 -0
  560. package/src/generators/remote/lib/find-next-available-port.d.ts +2 -0
  561. package/src/generators/remote/lib/find-next-available-port.js +17 -0
  562. package/src/generators/remote/lib/index.d.ts +2 -0
  563. package/src/generators/remote/lib/index.js +5 -0
  564. package/src/generators/remote/lib/update-ssr-setup.d.ts +7 -0
  565. package/src/generators/remote/lib/update-ssr-setup.js +59 -0
  566. package/src/generators/remote/remote.d.ts +5 -0
  567. package/src/generators/remote/remote.js +79 -0
  568. package/src/generators/remote/schema.d.ts +32 -0
  569. package/src/generators/remote/schema.json +178 -0
  570. package/src/generators/scam/lib/convert-component-to-scam.d.ts +3 -0
  571. package/src/generators/scam/lib/convert-component-to-scam.js +44 -0
  572. package/src/generators/scam/lib/index.d.ts +2 -0
  573. package/src/generators/scam/lib/index.js +5 -0
  574. package/src/generators/scam/lib/normalize-options.d.ts +3 -0
  575. package/src/generators/scam/lib/normalize-options.js +33 -0
  576. package/src/generators/scam/scam.d.ts +4 -0
  577. package/src/generators/scam/scam.js +26 -0
  578. package/src/generators/scam/schema.d.ts +43 -0
  579. package/src/generators/scam/schema.json +142 -0
  580. package/src/generators/scam-directive/lib/convert-directive-to-scam.d.ts +3 -0
  581. package/src/generators/scam-directive/lib/convert-directive-to-scam.js +44 -0
  582. package/src/generators/scam-directive/lib/index.d.ts +2 -0
  583. package/src/generators/scam-directive/lib/index.js +5 -0
  584. package/src/generators/scam-directive/lib/normalize-options.d.ts +3 -0
  585. package/src/generators/scam-directive/lib/normalize-options.js +32 -0
  586. package/src/generators/scam-directive/scam-directive.d.ts +4 -0
  587. package/src/generators/scam-directive/scam-directive.js +26 -0
  588. package/src/generators/scam-directive/schema.d.ts +35 -0
  589. package/src/generators/scam-directive/schema.json +96 -0
  590. package/src/generators/scam-pipe/lib/convert-pipe-to-scam.d.ts +3 -0
  591. package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +44 -0
  592. package/src/generators/scam-pipe/lib/index.d.ts +2 -0
  593. package/src/generators/scam-pipe/lib/index.js +5 -0
  594. package/src/generators/scam-pipe/lib/normalize-options.d.ts +3 -0
  595. package/src/generators/scam-pipe/lib/normalize-options.js +32 -0
  596. package/src/generators/scam-pipe/scam-pipe.d.ts +4 -0
  597. package/src/generators/scam-pipe/scam-pipe.js +26 -0
  598. package/src/generators/scam-pipe/schema.d.ts +33 -0
  599. package/src/generators/scam-pipe/schema.json +77 -0
  600. package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.d.ts +3 -0
  601. package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js +33 -0
  602. package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.d.ts +6 -0
  603. package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js +18 -0
  604. package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.d.ts +9 -0
  605. package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js +64 -0
  606. package/src/generators/scam-to-standalone/lib/get-target-project.d.ts +2 -0
  607. package/src/generators/scam-to-standalone/lib/get-target-project.js +14 -0
  608. package/src/generators/scam-to-standalone/lib/index.d.ts +8 -0
  609. package/src/generators/scam-to-standalone/lib/index.js +11 -0
  610. package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.d.ts +2 -0
  611. package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js +19 -0
  612. package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.d.ts +2 -0
  613. package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js +8 -0
  614. package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.d.ts +2 -0
  615. package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js +11 -0
  616. package/src/generators/scam-to-standalone/lib/verify-module-is-scam.d.ts +1 -0
  617. package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js +12 -0
  618. package/src/generators/scam-to-standalone/scam-to-standalone.d.ts +4 -0
  619. package/src/generators/scam-to-standalone/scam-to-standalone.js +27 -0
  620. package/src/generators/scam-to-standalone/schema.d.ts +5 -0
  621. package/src/generators/scam-to-standalone/schema.json +32 -0
  622. package/src/generators/setup-mf/files/entry-module-files/entry.component.ts__tmpl__ +9 -0
  623. package/src/generators/setup-mf/files/entry-module-files/entry.module.ts__tmpl__ +18 -0
  624. package/src/generators/setup-mf/files/entry-module-files/entry.routes.ts__tmpl__ +4 -0
  625. package/src/generators/setup-mf/files/host-files/app.component.spec.ts__tmpl__ +44 -0
  626. package/src/generators/setup-mf/files/standalone-entry-component-files/entry.component.ts__tmpl__ +13 -0
  627. package/src/generators/setup-mf/files/standalone-entry-component-files/entry.routes.ts__tmpl__ +4 -0
  628. package/src/generators/setup-mf/files/ts-webpack/module-federation.config.ts__tmpl__ +24 -0
  629. package/src/generators/setup-mf/files/ts-webpack/tsconfig.lint.json__tmpl__ +12 -0
  630. package/src/generators/setup-mf/files/ts-webpack/webpack.config.ts__tmpl__ +4 -0
  631. package/src/generators/setup-mf/files/ts-webpack/webpack.prod.config.ts__tmpl__ +16 -0
  632. package/src/generators/setup-mf/files/webpack/module-federation.config.js__tmpl__ +20 -0
  633. package/src/generators/setup-mf/files/webpack/webpack.config.js__tmpl__ +3 -0
  634. package/src/generators/setup-mf/files/webpack/webpack.prod.config.js__tmpl__ +15 -0
  635. package/src/generators/setup-mf/lib/add-cypress-workaround.d.ts +3 -0
  636. package/src/generators/setup-mf/lib/add-cypress-workaround.js +52 -0
  637. package/src/generators/setup-mf/lib/add-remote-entry.d.ts +3 -0
  638. package/src/generators/setup-mf/lib/add-remote-entry.js +22 -0
  639. package/src/generators/setup-mf/lib/add-remote-to-host.d.ts +4 -0
  640. package/src/generators/setup-mf/lib/add-remote-to-host.js +108 -0
  641. package/src/generators/setup-mf/lib/change-build-target.d.ts +3 -0
  642. package/src/generators/setup-mf/lib/change-build-target.js +23 -0
  643. package/src/generators/setup-mf/lib/fix-bootstrap.d.ts +3 -0
  644. package/src/generators/setup-mf/lib/fix-bootstrap.js +33 -0
  645. package/src/generators/setup-mf/lib/generate-config.d.ts +6 -0
  646. package/src/generators/setup-mf/lib/generate-config.js +30 -0
  647. package/src/generators/setup-mf/lib/get-remotes-with-ports.d.ts +6 -0
  648. package/src/generators/setup-mf/lib/get-remotes-with-ports.js +21 -0
  649. package/src/generators/setup-mf/lib/index.d.ts +14 -0
  650. package/src/generators/setup-mf/lib/index.js +17 -0
  651. package/src/generators/setup-mf/lib/normalize-options.d.ts +3 -0
  652. package/src/generators/setup-mf/lib/normalize-options.js +14 -0
  653. package/src/generators/setup-mf/lib/remove-dead-code-from-remote.d.ts +3 -0
  654. package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +56 -0
  655. package/src/generators/setup-mf/lib/setup-host-if-dynamic.d.ts +3 -0
  656. package/src/generators/setup-mf/lib/setup-host-if-dynamic.js +21 -0
  657. package/src/generators/setup-mf/lib/setup-serve-target.d.ts +3 -0
  658. package/src/generators/setup-mf/lib/setup-serve-target.js +39 -0
  659. package/src/generators/setup-mf/lib/setup-tspath-for-remote.d.ts +3 -0
  660. package/src/generators/setup-mf/lib/setup-tspath-for-remote.js +16 -0
  661. package/src/generators/setup-mf/lib/update-host-app-routes.d.ts +3 -0
  662. package/src/generators/setup-mf/lib/update-host-app-routes.js +41 -0
  663. package/src/generators/setup-mf/lib/update-tsconfig.d.ts +3 -0
  664. package/src/generators/setup-mf/lib/update-tsconfig.js +19 -0
  665. package/src/generators/setup-mf/schema.d.ts +24 -0
  666. package/src/generators/setup-mf/schema.json +91 -0
  667. package/src/generators/setup-mf/setup-mf.d.ts +4 -0
  668. package/src/generators/setup-mf/setup-mf.js +39 -0
  669. package/src/generators/setup-ssr/files/ngmodule/base/src/__main__ +1 -0
  670. package/src/generators/setup-ssr/files/ngmodule/base/src/app/__rootModuleFileName__ +14 -0
  671. package/src/generators/setup-ssr/files/ngmodule/pre-v15-2/src/main.ts__tpl__ +14 -0
  672. package/src/generators/setup-ssr/files/root/tsconfig.server.json__tpl__ +15 -0
  673. package/src/generators/setup-ssr/files/server/application-builder/__serverFileName__ +56 -0
  674. package/src/generators/setup-ssr/files/server/server-builder/pre-v17/__serverFileName__ +59 -0
  675. package/src/generators/setup-ssr/files/server/server-builder/v17+/__serverFileName__ +69 -0
  676. package/src/generators/setup-ssr/files/standalone/src/__main__ +7 -0
  677. package/src/generators/setup-ssr/files/standalone/src/app/app.config.server.ts__tpl__ +11 -0
  678. package/src/generators/setup-ssr/lib/add-dependencies.d.ts +2 -0
  679. package/src/generators/setup-ssr/lib/add-dependencies.js +36 -0
  680. package/src/generators/setup-ssr/lib/add-hydration.d.ts +3 -0
  681. package/src/generators/setup-ssr/lib/add-hydration.js +36 -0
  682. package/src/generators/setup-ssr/lib/add-server-file.d.ts +3 -0
  683. package/src/generators/setup-ssr/lib/add-server-file.js +31 -0
  684. package/src/generators/setup-ssr/lib/constants.d.ts +3 -0
  685. package/src/generators/setup-ssr/lib/constants.js +6 -0
  686. package/src/generators/setup-ssr/lib/generate-files.d.ts +3 -0
  687. package/src/generators/setup-ssr/lib/generate-files.js +26 -0
  688. package/src/generators/setup-ssr/lib/generate-server-ts-config.d.ts +4 -0
  689. package/src/generators/setup-ssr/lib/generate-server-ts-config.js +29 -0
  690. package/src/generators/setup-ssr/lib/index.d.ts +10 -0
  691. package/src/generators/setup-ssr/lib/index.js +13 -0
  692. package/src/generators/setup-ssr/lib/normalize-options.d.ts +14 -0
  693. package/src/generators/setup-ssr/lib/normalize-options.js +26 -0
  694. package/src/generators/setup-ssr/lib/set-router-initial-navigation.d.ts +3 -0
  695. package/src/generators/setup-ssr/lib/set-router-initial-navigation.js +93 -0
  696. package/src/generators/setup-ssr/lib/update-app-module.d.ts +3 -0
  697. package/src/generators/setup-ssr/lib/update-app-module.js +27 -0
  698. package/src/generators/setup-ssr/lib/update-project-config.d.ts +4 -0
  699. package/src/generators/setup-ssr/lib/update-project-config.js +127 -0
  700. package/src/generators/setup-ssr/lib/validate-options.d.ts +3 -0
  701. package/src/generators/setup-ssr/lib/validate-options.js +36 -0
  702. package/src/generators/setup-ssr/schema.d.ts +12 -0
  703. package/src/generators/setup-ssr/schema.json +68 -0
  704. package/src/generators/setup-ssr/setup-ssr.d.ts +4 -0
  705. package/src/generators/setup-ssr/setup-ssr.js +42 -0
  706. package/src/generators/setup-tailwind/files/v2/tailwind.config.js__tmpl__ +18 -0
  707. package/src/generators/setup-tailwind/files/v3/tailwind.config.js__tmpl__ +14 -0
  708. package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.d.ts +3 -0
  709. package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js +35 -0
  710. package/src/generators/setup-tailwind/lib/add-tailwind-config.d.ts +3 -0
  711. package/src/generators/setup-tailwind/lib/add-tailwind-config.js +17 -0
  712. package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.d.ts +2 -0
  713. package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js +14 -0
  714. package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.d.ts +2 -0
  715. package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js +19 -0
  716. package/src/generators/setup-tailwind/lib/index.d.ts +6 -0
  717. package/src/generators/setup-tailwind/lib/index.js +9 -0
  718. package/src/generators/setup-tailwind/lib/normalize-options.d.ts +2 -0
  719. package/src/generators/setup-tailwind/lib/normalize-options.js +10 -0
  720. package/src/generators/setup-tailwind/lib/update-application-styles.d.ts +3 -0
  721. package/src/generators/setup-tailwind/lib/update-application-styles.js +52 -0
  722. package/src/generators/setup-tailwind/schema.d.ts +11 -0
  723. package/src/generators/setup-tailwind/schema.json +42 -0
  724. package/src/generators/setup-tailwind/setup-tailwind.d.ts +4 -0
  725. package/src/generators/setup-tailwind/setup-tailwind.js +29 -0
  726. package/src/generators/stories/lib/get-e2e-project.d.ts +2 -0
  727. package/src/generators/stories/lib/get-e2e-project.js +15 -0
  728. package/src/generators/stories/schema.d.ts +8 -0
  729. package/src/generators/stories/schema.json +64 -0
  730. package/src/generators/stories/stories.d.ts +4 -0
  731. package/src/generators/stories/stories.js +67 -0
  732. package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.d.ts +1 -0
  733. package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js +15 -0
  734. package/src/generators/storybook-configuration/lib/generate-stories.d.ts +3 -0
  735. package/src/generators/storybook-configuration/lib/generate-stories.js +21 -0
  736. package/src/generators/storybook-configuration/lib/generate-storybook-configuration.d.ts +3 -0
  737. package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +22 -0
  738. package/src/generators/storybook-configuration/lib/validate-options.d.ts +2 -0
  739. package/src/generators/storybook-configuration/lib/validate-options.js +9 -0
  740. package/src/generators/storybook-configuration/schema.d.ts +15 -0
  741. package/src/generators/storybook-configuration/schema.json +98 -0
  742. package/src/generators/storybook-configuration/storybook-configuration.d.ts +4 -0
  743. package/src/generators/storybook-configuration/storybook-configuration.js +36 -0
  744. package/src/generators/utils/add-jest.d.ts +8 -0
  745. package/src/generators/utils/add-jest.js +36 -0
  746. package/src/generators/utils/add-mf-env-to-inputs.d.ts +2 -0
  747. package/src/generators/utils/add-mf-env-to-inputs.js +24 -0
  748. package/src/generators/utils/dependencies.d.ts +2 -0
  749. package/src/generators/utils/dependencies.js +14 -0
  750. package/src/generators/utils/ensure-angular-dependencies.d.ts +2 -0
  751. package/src/generators/utils/ensure-angular-dependencies.js +35 -0
  752. package/src/generators/utils/entry-point.d.ts +2 -0
  753. package/src/generators/utils/entry-point.js +20 -0
  754. package/src/generators/utils/export-scam.d.ts +10 -0
  755. package/src/generators/utils/export-scam.js +37 -0
  756. package/src/generators/utils/find-module.d.ts +4 -0
  757. package/src/generators/utils/find-module.js +64 -0
  758. package/src/generators/utils/index.d.ts +2 -0
  759. package/src/generators/utils/index.js +5 -0
  760. package/src/generators/utils/insert-ngmodule-import.d.ts +4 -0
  761. package/src/generators/utils/insert-ngmodule-import.js +139 -0
  762. package/src/generators/utils/path.d.ts +1 -0
  763. package/src/generators/utils/path.js +10 -0
  764. package/src/generators/utils/project.d.ts +2 -0
  765. package/src/generators/utils/project.js +8 -0
  766. package/src/generators/utils/selector.d.ts +3 -0
  767. package/src/generators/utils/selector.js +21 -0
  768. package/src/generators/utils/storybook-ast/component-info.d.ts +11 -0
  769. package/src/generators/utils/storybook-ast/component-info.js +167 -0
  770. package/src/generators/utils/storybook-ast/entry-point.d.ts +7 -0
  771. package/src/generators/utils/storybook-ast/entry-point.js +63 -0
  772. package/src/generators/utils/storybook-ast/module-info.d.ts +5 -0
  773. package/src/generators/utils/storybook-ast/module-info.js +220 -0
  774. package/src/generators/utils/storybook-ast/storybook-inputs.d.ts +12 -0
  775. package/src/generators/utils/storybook-ast/storybook-inputs.js +78 -0
  776. package/src/generators/utils/storybook-ast/tree-utilities.d.ts +2 -0
  777. package/src/generators/utils/storybook-ast/tree-utilities.js +31 -0
  778. package/src/generators/utils/testing.d.ts +10 -0
  779. package/src/generators/utils/testing.js +274 -0
  780. package/src/generators/utils/types.d.ts +1 -0
  781. package/src/generators/utils/types.js +2 -0
  782. package/src/generators/utils/update-app-editor-tsconfig-excluded-files.d.ts +2 -0
  783. package/src/generators/utils/update-app-editor-tsconfig-excluded-files.js +23 -0
  784. package/src/generators/utils/update-project-root-tsconfig.d.ts +3 -0
  785. package/src/generators/utils/update-project-root-tsconfig.js +26 -0
  786. package/src/generators/utils/validations.d.ts +2 -0
  787. package/src/generators/utils/validations.js +11 -0
  788. package/src/generators/utils/version-utils.d.ts +15 -0
  789. package/src/generators/utils/version-utils.js +66 -0
  790. package/src/generators/web-worker/files/config/tsconfig.worker.json__tpl__ +14 -0
  791. package/src/generators/web-worker/files/worker/__name__.worker.ts__tpl__ +6 -0
  792. package/src/generators/web-worker/lib/add-snippet.d.ts +2 -0
  793. package/src/generators/web-worker/lib/add-snippet.js +33 -0
  794. package/src/generators/web-worker/lib/index.d.ts +2 -0
  795. package/src/generators/web-worker/lib/index.js +5 -0
  796. package/src/generators/web-worker/lib/normalize-options.d.ts +3 -0
  797. package/src/generators/web-worker/lib/normalize-options.js +25 -0
  798. package/src/generators/web-worker/schema.d.ts +7 -0
  799. package/src/generators/web-worker/schema.json +48 -0
  800. package/src/generators/web-worker/web-worker.d.ts +4 -0
  801. package/src/generators/web-worker/web-worker.js +34 -0
  802. package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.d.ts +2 -0
  803. package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js +23 -0
  804. package/src/migrations/update-14-2-0/update-angular-cli.d.ts +2 -0
  805. package/src/migrations/update-14-2-0/update-angular-cli.js +22 -0
  806. package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.d.ts +2 -0
  807. package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js +34 -0
  808. package/src/migrations/update-14-2-0/update-ngcc-target.d.ts +2 -0
  809. package/src/migrations/update-14-2-0/update-ngcc-target.js +17 -0
  810. package/src/migrations/update-14-2-0/update-router-initial-navigation.d.ts +2 -0
  811. package/src/migrations/update-14-2-0/update-router-initial-navigation.js +70 -0
  812. package/src/migrations/update-14-2-0/update-tsconfig-target.d.ts +2 -0
  813. package/src/migrations/update-14-2-0/update-tsconfig-target.js +155 -0
  814. package/src/migrations/update-14-5-0/migrate-mfe-to-mf.d.ts +5 -0
  815. package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js +91 -0
  816. package/src/migrations/update-14-5-2/update-angular-cli.d.ts +2 -0
  817. package/src/migrations/update-14-5-2/update-angular-cli.js +22 -0
  818. package/src/migrations/update-14-6-0/update-angular-cli.d.ts +2 -0
  819. package/src/migrations/update-14-6-0/update-angular-cli.js +22 -0
  820. package/src/migrations/update-14-8-0/rename-webpack-server.d.ts +2 -0
  821. package/src/migrations/update-14-8-0/rename-webpack-server.js +21 -0
  822. package/src/migrations/update-15-0-0/add-karma-inputs.d.ts +2 -0
  823. package/src/migrations/update-15-0-0/add-karma-inputs.js +41 -0
  824. package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.d.ts +2 -0
  825. package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js +102 -0
  826. package/src/migrations/update-15-2-0/remove-browserlist-config.d.ts +3 -0
  827. package/src/migrations/update-15-2-0/remove-browserlist-config.js +58 -0
  828. package/src/migrations/update-15-2-0/remove-platform-server-exports.d.ts +2 -0
  829. package/src/migrations/update-15-2-0/remove-platform-server-exports.js +61 -0
  830. package/src/migrations/update-15-2-0/update-angular-cli.d.ts +2 -0
  831. package/src/migrations/update-15-2-0/update-angular-cli.js +22 -0
  832. package/src/migrations/update-15-2-0/update-karma-main-file.d.ts +2 -0
  833. package/src/migrations/update-15-2-0/update-karma-main-file.js +71 -0
  834. package/src/migrations/update-15-2-0/update-typescript-target.d.ts +2 -0
  835. package/src/migrations/update-15-2-0/update-typescript-target.js +52 -0
  836. package/src/migrations/update-15-2-0/update-workspace-config.d.ts +2 -0
  837. package/src/migrations/update-15-2-0/update-workspace-config.js +24 -0
  838. package/src/migrations/update-15-5-0/update-angular-cli.d.ts +2 -0
  839. package/src/migrations/update-15-5-0/update-angular-cli.js +22 -0
  840. package/src/migrations/update-15-7-0/install-required-packages.d.ts +2 -0
  841. package/src/migrations/update-15-7-0/install-required-packages.js +36 -0
  842. package/src/migrations/update-15-8-0/update-angular-cli.d.ts +2 -0
  843. package/src/migrations/update-15-8-0/update-angular-cli.js +22 -0
  844. package/src/migrations/update-15-9-0/update-file-server-executor.d.ts +2 -0
  845. package/src/migrations/update-15-9-0/update-file-server-executor.js +42 -0
  846. package/src/migrations/update-15-9-0/update-testing-tsconfig.d.ts +3 -0
  847. package/src/migrations/update-15-9-0/update-testing-tsconfig.js +33 -0
  848. package/src/migrations/update-16-0-0/remove-karma-defaults.d.ts +2 -0
  849. package/src/migrations/update-16-0-0/remove-karma-defaults.js +52 -0
  850. package/src/migrations/update-16-0-0/remove-library-generator-simple-module-name-option.d.ts +2 -0
  851. package/src/migrations/update-16-0-0/remove-library-generator-simple-module-name-option.js +40 -0
  852. package/src/migrations/update-16-0-0/remove-protractor-defaults.d.ts +2 -0
  853. package/src/migrations/update-16-0-0/remove-protractor-defaults.js +52 -0
  854. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
  855. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +9 -0
  856. package/src/migrations/update-16-1-0/extract-standalone-config-from-bootstrap.d.ts +2 -0
  857. package/src/migrations/update-16-1-0/extract-standalone-config-from-bootstrap.js +127 -0
  858. package/src/migrations/update-16-1-0/remove-ngcc-invocation.d.ts +2 -0
  859. package/src/migrations/update-16-1-0/remove-ngcc-invocation.js +22 -0
  860. package/src/migrations/update-16-1-0/remove-render-module-platform-server-exports.d.ts +2 -0
  861. package/src/migrations/update-16-1-0/remove-render-module-platform-server-exports.js +61 -0
  862. package/src/migrations/update-16-1-0/update-angular-cli.d.ts +3 -0
  863. package/src/migrations/update-16-1-0/update-angular-cli.js +23 -0
  864. package/src/migrations/update-16-1-0/update-server-executor-config.d.ts +2 -0
  865. package/src/migrations/update-16-1-0/update-server-executor-config.js +26 -0
  866. package/src/migrations/update-16-2-0/switch-data-persistence-operators-imports-to-ngrx-router-store.d.ts +2 -0
  867. package/src/migrations/update-16-2-0/switch-data-persistence-operators-imports-to-ngrx-router-store.js +122 -0
  868. package/src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules.d.ts +2 -0
  869. package/src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules.js +34 -0
  870. package/src/migrations/update-16-4-0/update-angular-cli.d.ts +3 -0
  871. package/src/migrations/update-16-4-0/update-angular-cli.js +23 -0
  872. package/src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps.d.ts +2 -0
  873. package/src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps.js +34 -0
  874. package/src/migrations/update-16-7-0/update-angular-cli.d.ts +3 -0
  875. package/src/migrations/update-16-7-0/update-angular-cli.js +23 -0
  876. package/src/migrations/update-17-1-0/browser-target-to-build-target.d.ts +3 -0
  877. package/src/migrations/update-17-1-0/browser-target-to-build-target.js +50 -0
  878. package/src/migrations/update-17-1-0/replace-nguniversal-builders.d.ts +2 -0
  879. package/src/migrations/update-17-1-0/replace-nguniversal-builders.js +75 -0
  880. package/src/migrations/update-17-1-0/replace-nguniversal-engines.d.ts +2 -0
  881. package/src/migrations/update-17-1-0/replace-nguniversal-engines.js +183 -0
  882. package/src/migrations/update-17-1-0/update-angular-cli.d.ts +3 -0
  883. package/src/migrations/update-17-1-0/update-angular-cli.js +23 -0
  884. package/src/migrations/update-17-1-0/update-zone-js-deep-import.d.ts +2 -0
  885. package/src/migrations/update-17-1-0/update-zone-js-deep-import.js +37 -0
  886. package/src/migrations/update-17-2-0/rename-webpack-dev-server.d.ts +2 -0
  887. package/src/migrations/update-17-2-0/rename-webpack-dev-server.js +40 -0
  888. package/src/migrations/update-17-3-0/add-autoprefixer-dependency.d.ts +2 -0
  889. package/src/migrations/update-17-3-0/add-autoprefixer-dependency.js +26 -0
  890. package/src/migrations/update-17-3-0/add-browser-sync-dependency.d.ts +2 -0
  891. package/src/migrations/update-17-3-0/add-browser-sync-dependency.js +26 -0
  892. package/src/migrations/update-17-3-0/update-angular-cli.d.ts +3 -0
  893. package/src/migrations/update-17-3-0/update-angular-cli.js +23 -0
  894. package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts +2 -0
  895. package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +26 -0
  896. package/src/migrations/update-18-1-0/update-angular-cli.d.ts +3 -0
  897. package/src/migrations/update-18-1-0/update-angular-cli.js +23 -0
  898. package/src/migrations/utils/projects.d.ts +5 -0
  899. package/src/migrations/utils/projects.js +15 -0
  900. package/src/runtime/nx/data-persistence.d.ts +271 -0
  901. package/src/runtime/nx/data-persistence.js +350 -0
  902. package/src/utils/backward-compatible-versions.d.ts +8 -0
  903. package/src/utils/backward-compatible-versions.js +59 -0
  904. package/src/utils/cli-config-utils.d.ts +1 -0
  905. package/src/utils/cli-config-utils.js +45 -0
  906. package/src/utils/file-change-recorder.d.ts +17 -0
  907. package/src/utils/file-change-recorder.js +39 -0
  908. package/src/utils/get-mf-projects.d.ts +4 -0
  909. package/src/utils/get-mf-projects.js +34 -0
  910. package/src/utils/mf/utils.d.ts +15 -0
  911. package/src/utils/mf/utils.js +100 -0
  912. package/src/utils/mf/with-module-federation-ssr.d.ts +2 -0
  913. package/src/utils/mf/with-module-federation-ssr.js +46 -0
  914. package/src/utils/mf/with-module-federation.d.ts +2 -0
  915. package/src/utils/mf/with-module-federation.js +48 -0
  916. package/src/utils/nx-devkit/ast-utils.d.ts +94 -0
  917. package/src/utils/nx-devkit/ast-utils.js +596 -0
  918. package/src/utils/nx-devkit/route-utils.d.ts +19 -0
  919. package/src/utils/nx-devkit/route-utils.js +102 -0
  920. package/src/utils/nx-devkit/testing.d.ts +14 -0
  921. package/src/utils/nx-devkit/testing.js +84 -0
  922. package/src/utils/public-api.d.ts +2 -0
  923. package/src/utils/public-api.js +16 -0
  924. package/src/utils/targets.d.ts +2 -0
  925. package/src/utils/targets.js +17 -0
  926. package/src/utils/test-runners.d.ts +9 -0
  927. package/src/utils/test-runners.js +14 -0
  928. package/src/utils/types.d.ts +4 -0
  929. package/src/utils/types.js +2 -0
  930. package/src/utils/version-utils.d.ts +3 -0
  931. package/src/utils/version-utils.js +19 -0
  932. package/src/utils/versions.d.ts +25 -0
  933. package/src/utils/versions.js +28 -0
  934. package/tailwind.d.ts +6 -0
  935. package/tailwind.js +29 -0
  936. package/testing/index.d.ts +1 -0
  937. package/testing/index.js +6 -0
  938. package/testing/ng-package.json +6 -0
  939. package/testing/src/testing-utils.d.ts +31 -0
  940. package/testing/src/testing-utils.js +40 -0
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addTailwindRequiredPackages = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const version_utils_1 = require("../../utils/version-utils");
6
+ function addTailwindRequiredPackages(tree) {
7
+ const pkgVersions = (0, version_utils_1.versions)(tree);
8
+ return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
9
+ autoprefixer: pkgVersions.autoprefixerVersion,
10
+ postcss: pkgVersions.postcssVersion,
11
+ tailwindcss: pkgVersions.tailwindVersion,
12
+ });
13
+ }
14
+ exports.addTailwindRequiredPackages = addTailwindRequiredPackages;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export declare function detectTailwindInstalledVersion(tree: Tree): '2' | '3' | undefined;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.detectTailwindInstalledVersion = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const semver_1 = require("@nx/devkit/src/utils/semver");
6
+ const semver_2 = require("semver");
7
+ function detectTailwindInstalledVersion(tree) {
8
+ const { dependencies, devDependencies } = (0, devkit_1.readJson)(tree, 'package.json');
9
+ const tailwindVersion = dependencies?.tailwindcss ?? devDependencies?.tailwindcss;
10
+ if (!tailwindVersion) {
11
+ return undefined;
12
+ }
13
+ const version = (0, semver_1.checkAndCleanWithSemver)('tailwindcss', tailwindVersion);
14
+ if ((0, semver_2.lt)(version, '2.0.0')) {
15
+ throw new Error(`The Tailwind CSS version "${tailwindVersion}" is not supported. Please upgrade to v2.0.0 or higher.`);
16
+ }
17
+ return (0, semver_2.lt)(version, '3.0.0') ? '2' : '3';
18
+ }
19
+ exports.detectTailwindInstalledVersion = detectTailwindInstalledVersion;
@@ -0,0 +1,6 @@
1
+ export * from './add-tailwind-config-path-to-project';
2
+ export * from './add-tailwind-config';
3
+ export * from './add-tailwind-required-packages';
4
+ export * from './detect-tailwind-installed-version';
5
+ export * from './normalize-options';
6
+ export * from './update-application-styles';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./add-tailwind-config-path-to-project"), exports);
5
+ tslib_1.__exportStar(require("./add-tailwind-config"), exports);
6
+ tslib_1.__exportStar(require("./add-tailwind-required-packages"), exports);
7
+ tslib_1.__exportStar(require("./detect-tailwind-installed-version"), exports);
8
+ tslib_1.__exportStar(require("./normalize-options"), exports);
9
+ tslib_1.__exportStar(require("./update-application-styles"), exports);
@@ -0,0 +1,2 @@
1
+ import type { GeneratorOptions, NormalizedGeneratorOptions } from '../schema';
2
+ export declare function normalizeOptions(options: GeneratorOptions): NormalizedGeneratorOptions;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeOptions = void 0;
4
+ function normalizeOptions(options) {
5
+ return {
6
+ ...options,
7
+ buildTarget: options.buildTarget || 'build',
8
+ };
9
+ }
10
+ exports.normalizeOptions = normalizeOptions;
@@ -0,0 +1,3 @@
1
+ import { ProjectConfiguration, Tree } from '@nx/devkit';
2
+ import { NormalizedGeneratorOptions } from '../schema';
3
+ export declare function updateApplicationStyles(tree: Tree, options: NormalizedGeneratorOptions, project: ProjectConfiguration): void;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateApplicationStyles = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ function updateApplicationStyles(tree, options, project) {
6
+ let stylesEntryPoint = options.stylesEntryPoint;
7
+ if (stylesEntryPoint && !tree.exists(stylesEntryPoint)) {
8
+ throw new Error(`The provided styles entry point "${stylesEntryPoint}" could not be found.`);
9
+ }
10
+ if (!stylesEntryPoint) {
11
+ stylesEntryPoint = findStylesEntryPoint(tree, options, project);
12
+ if (!stylesEntryPoint) {
13
+ throw new Error((0, devkit_1.stripIndents) `Could not find a styles entry point for project "${options.project}".
14
+ Please specify a styles entry point using the "--stylesEntryPoint" option.`);
15
+ }
16
+ }
17
+ const stylesEntryPointContent = tree.read(stylesEntryPoint, 'utf-8');
18
+ tree.write(stylesEntryPoint, (0, devkit_1.stripIndents) `@tailwind base;
19
+ @tailwind components;
20
+ @tailwind utilities;
21
+
22
+ ${stylesEntryPointContent}`);
23
+ }
24
+ exports.updateApplicationStyles = updateApplicationStyles;
25
+ function findStylesEntryPoint(tree, options, project) {
26
+ // first check for common names
27
+ const possibleStylesEntryPoints = [
28
+ (0, devkit_1.joinPathFragments)(project.sourceRoot ?? project.root, 'styles.css'),
29
+ (0, devkit_1.joinPathFragments)(project.sourceRoot ?? project.root, 'styles.scss'),
30
+ (0, devkit_1.joinPathFragments)(project.sourceRoot ?? project.root, 'styles.sass'),
31
+ (0, devkit_1.joinPathFragments)(project.sourceRoot ?? project.root, 'styles.less'),
32
+ ];
33
+ let stylesEntryPoint = possibleStylesEntryPoints.find((s) => tree.exists(s));
34
+ if (stylesEntryPoint) {
35
+ return stylesEntryPoint;
36
+ }
37
+ // then check for the specified styles in the build configuration if it exists
38
+ const styles = project.targets?.[options.buildTarget].options?.styles;
39
+ if (!styles) {
40
+ return undefined;
41
+ }
42
+ // find the first style that belongs to the project source
43
+ const style = styles.find((s) => typeof s === 'string'
44
+ ? s.startsWith(project.root) && tree.exists(s)
45
+ : s.input.startsWith(project.root) &&
46
+ s.inject !== false &&
47
+ tree.exists(s.input));
48
+ if (!style) {
49
+ return undefined;
50
+ }
51
+ return typeof style === 'string' ? style : style.input;
52
+ }
@@ -0,0 +1,11 @@
1
+ export interface GeneratorOptions {
2
+ project: string;
3
+ buildTarget?: string;
4
+ skipFormat?: boolean;
5
+ stylesEntryPoint?: string;
6
+ skipPackageJson?: boolean;
7
+ }
8
+
9
+ export interface NormalizedGeneratorOptions extends GeneratorOptions {
10
+ buildTarget: string;
11
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularTailwindSetupGenerator",
4
+ "cli": "nx",
5
+ "title": "Configures Tailwind CSS for an application or a buildable/publishable library.",
6
+ "description": "Adds the Tailwind CSS configuration files for a given Angular project and installs, if needed, the packages required for Tailwind CSS to work.",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
10
+ "type": "string",
11
+ "description": "The name of the project to add the Tailwind CSS setup for.",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-prompt": "What project would you like to add the Tailwind CSS setup?"
17
+ },
18
+ "buildTarget": {
19
+ "type": "string",
20
+ "description": "The name of the target used to build the project. This option only applies to buildable/publishable libraries.",
21
+ "default": "build"
22
+ },
23
+ "skipFormat": {
24
+ "type": "boolean",
25
+ "description": "Skips formatting the workspace after the generator completes.",
26
+ "x-priority": "internal"
27
+ },
28
+ "stylesEntryPoint": {
29
+ "type": "string",
30
+ "description": "Path to the styles entry point relative to the workspace root. If not provided the generator will do its best to find it and it will error if it can't. This option only applies to applications."
31
+ },
32
+ "skipPackageJson": {
33
+ "type": "boolean",
34
+ "default": false,
35
+ "description": "Do not add dependencies to `package.json`.",
36
+ "x-priority": "internal"
37
+ }
38
+ },
39
+ "additionalProperties": false,
40
+ "required": ["project"],
41
+ "examplesFile": "../../../docs/setup-tailwind-examples.md"
42
+ }
@@ -0,0 +1,4 @@
1
+ import { GeneratorCallback, Tree } from '@nx/devkit';
2
+ import { GeneratorOptions } from './schema';
3
+ export declare function setupTailwindGenerator(tree: Tree, rawOptions: GeneratorOptions): Promise<GeneratorCallback>;
4
+ export default setupTailwindGenerator;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setupTailwindGenerator = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const lib_1 = require("./lib");
6
+ async function setupTailwindGenerator(tree, rawOptions) {
7
+ const options = (0, lib_1.normalizeOptions)(rawOptions);
8
+ const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
9
+ const tailwindInstalledVersion = (0, lib_1.detectTailwindInstalledVersion)(tree);
10
+ let installTask = () => { };
11
+ if (!options.skipPackageJson) {
12
+ if (tailwindInstalledVersion === undefined) {
13
+ installTask = (0, lib_1.addTailwindRequiredPackages)(tree);
14
+ }
15
+ }
16
+ (0, lib_1.addTailwindConfig)(tree, options, project, tailwindInstalledVersion ?? '3');
17
+ if (project.projectType === 'application') {
18
+ (0, lib_1.updateApplicationStyles)(tree, options, project);
19
+ }
20
+ else if (project.projectType === 'library') {
21
+ (0, lib_1.addTailwindConfigPathToProject)(tree, options, project);
22
+ }
23
+ if (!options.skipFormat) {
24
+ await (0, devkit_1.formatFiles)(tree);
25
+ }
26
+ return installTask;
27
+ }
28
+ exports.setupTailwindGenerator = setupTailwindGenerator;
29
+ exports.default = setupTailwindGenerator;
@@ -0,0 +1,2 @@
1
+ import type { ProjectConfiguration, Tree } from '@nx/devkit';
2
+ export declare function getE2EProject(tree: Tree, e2eProjectName: string): ProjectConfiguration;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getE2EProject = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ function getE2EProject(tree, e2eProjectName) {
6
+ let e2eProject;
7
+ try {
8
+ e2eProject = (0, devkit_1.readProjectConfiguration)(tree, e2eProjectName);
9
+ }
10
+ catch {
11
+ e2eProject = undefined;
12
+ }
13
+ return e2eProject;
14
+ }
15
+ exports.getE2EProject = getE2EProject;
@@ -0,0 +1,8 @@
1
+ export interface StoriesGeneratorOptions {
2
+ name: string;
3
+ interactionTests?: boolean;
4
+ skipFormat?: boolean;
5
+ ignorePaths?: string[];
6
+ cypressProject?: string;
7
+ generateCypressSpecs?: boolean;
8
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularStorybookStoriesGenerator",
4
+ "title": "Create Storybook stories/specs",
5
+ "description": "Creates Storybook stories/specs for all Angular components declared in a project.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "name": {
10
+ "type": "string",
11
+ "aliases": ["project", "projectName"],
12
+ "description": "Project for which to generate stories.",
13
+ "$default": {
14
+ "$source": "argv",
15
+ "index": 0
16
+ },
17
+ "x-prompt": "What's the name of the project for which you want to generate stories?",
18
+ "x-dropdown": "projects",
19
+ "x-priority": "important"
20
+ },
21
+ "interactionTests": {
22
+ "type": "boolean",
23
+ "description": "Set up Storybook interaction tests.",
24
+ "x-prompt": "Do you want to set up Storybook interaction tests?",
25
+ "x-priority": "important",
26
+ "default": true
27
+ },
28
+ "generateCypressSpecs": {
29
+ "type": "boolean",
30
+ "description": "Specifies whether to automatically generate `*.spec.ts` files in the Cypress e2e app generated by the `cypress-configure` generator."
31
+ },
32
+ "cypressProject": {
33
+ "type": "string",
34
+ "description": "The Cypress project to generate the stories under. This is inferred from `name` by default."
35
+ },
36
+ "skipFormat": {
37
+ "description": "Skip formatting files.",
38
+ "type": "boolean",
39
+ "default": false,
40
+ "x-priority": "internal"
41
+ },
42
+ "ignorePaths": {
43
+ "type": "array",
44
+ "description": "Paths to ignore when looking for components.",
45
+ "items": {
46
+ "type": "string",
47
+ "description": "Path to ignore."
48
+ },
49
+ "default": [
50
+ "*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx"
51
+ ],
52
+ "examples": [
53
+ "apps/my-app/src/not-stories/**",
54
+ "**/**/src/**/not-stories/**",
55
+ "libs/my-lib/**/*.something.ts",
56
+ "**/**/src/**/*.other.*",
57
+ "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
58
+ ]
59
+ }
60
+ },
61
+ "additionalProperties": false,
62
+ "required": ["name"],
63
+ "examplesFile": "../../../docs/stories-examples.md"
64
+ }
@@ -0,0 +1,4 @@
1
+ import { GeneratorCallback, Tree } from '@nx/devkit';
2
+ import type { StoriesGeneratorOptions } from './schema';
3
+ export declare function angularStoriesGenerator(tree: Tree, options: StoriesGeneratorOptions): Promise<GeneratorCallback>;
4
+ export default angularStoriesGenerator;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.angularStoriesGenerator = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const component_cypress_spec_1 = require("../component-cypress-spec/component-cypress-spec");
6
+ const component_story_1 = require("../component-story/component-story");
7
+ const component_info_1 = require("../utils/storybook-ast/component-info");
8
+ const entry_point_1 = require("../utils/storybook-ast/entry-point");
9
+ const get_e2e_project_1 = require("./lib/get-e2e-project");
10
+ const module_info_1 = require("../utils/storybook-ast/module-info");
11
+ const minimatch_1 = require("minimatch");
12
+ const versions_1 = require("../../utils/versions");
13
+ async function angularStoriesGenerator(tree, options) {
14
+ const e2eProjectName = options.cypressProject ?? `${options.name}-e2e`;
15
+ const e2eProject = (0, get_e2e_project_1.getE2EProject)(tree, e2eProjectName);
16
+ const entryPoints = (0, entry_point_1.getProjectEntryPoints)(tree, options.name);
17
+ const componentsInfo = [];
18
+ for (const entryPoint of entryPoints) {
19
+ const moduleFilePaths = (0, module_info_1.getModuleFilePaths)(tree, entryPoint);
20
+ componentsInfo.push(...(0, component_info_1.getComponentsInfo)(tree, entryPoint, moduleFilePaths, options.name), ...(0, component_info_1.getStandaloneComponentsInfo)(tree, entryPoint));
21
+ }
22
+ if (options.generateCypressSpecs && !e2eProject) {
23
+ devkit_1.logger.info(`There was no e2e project "${e2eProjectName}" found, so cypress specs will not be generated. Pass "--cypressProject" to specify a different e2e project name.`);
24
+ }
25
+ const componentInfos = componentsInfo.filter((f) => !options.ignorePaths?.some((pattern) => {
26
+ const shouldIgnorePath = (0, minimatch_1.minimatch)((0, devkit_1.joinPathFragments)(f.moduleFolderPath, f.path, `${f.componentFileName}.ts`), pattern);
27
+ return shouldIgnorePath;
28
+ }));
29
+ for (const info of componentInfos) {
30
+ if (info === undefined) {
31
+ continue;
32
+ }
33
+ await (0, component_story_1.default)(tree, {
34
+ projectPath: info.moduleFolderPath,
35
+ componentName: info.name,
36
+ componentPath: info.path,
37
+ componentFileName: info.componentFileName,
38
+ interactionTests: options.interactionTests ?? true,
39
+ skipFormat: true,
40
+ });
41
+ if (options.generateCypressSpecs && e2eProject) {
42
+ await (0, component_cypress_spec_1.default)(tree, {
43
+ projectName: options.name,
44
+ projectPath: info.moduleFolderPath,
45
+ cypressProject: options.cypressProject,
46
+ componentName: info.name,
47
+ componentPath: info.path,
48
+ componentFileName: info.componentFileName,
49
+ specDirectory: (0, devkit_1.joinPathFragments)(info.entryPointName, info.path),
50
+ skipFormat: true,
51
+ });
52
+ }
53
+ }
54
+ const tasks = [];
55
+ if (options.interactionTests) {
56
+ const { interactionTestsDependencies, addInteractionsInAddons } = (0, devkit_1.ensurePackage)('@nx/storybook', versions_1.nxVersion);
57
+ const projectConfiguration = (0, devkit_1.readProjectConfiguration)(tree, options.name);
58
+ addInteractionsInAddons(tree, projectConfiguration);
59
+ tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, interactionTestsDependencies()));
60
+ }
61
+ if (!options.skipFormat) {
62
+ await (0, devkit_1.formatFiles)(tree);
63
+ }
64
+ return (0, devkit_1.runTasksInSerial)(...tasks);
65
+ }
66
+ exports.angularStoriesGenerator = angularStoriesGenerator;
67
+ exports.default = angularStoriesGenerator;
@@ -0,0 +1 @@
1
+ export declare function assertCompatibleStorybookVersion(): void;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertCompatibleStorybookVersion = void 0;
4
+ const semver_1 = require("semver");
5
+ function assertCompatibleStorybookVersion() {
6
+ let storybookVersion;
7
+ try {
8
+ storybookVersion = require(require.resolve('@storybook/angular/package.json')).version;
9
+ }
10
+ catch { }
11
+ if (storybookVersion && (0, semver_1.lt)(storybookVersion, '6.4.0-rc.1')) {
12
+ throw new Error('Incompatible Storybook Version: Please use a version of @storybook/angular higher than 6.4.0-rc.1');
13
+ }
14
+ }
15
+ exports.assertCompatibleStorybookVersion = assertCompatibleStorybookVersion;
@@ -0,0 +1,3 @@
1
+ import type { Tree } from '@nx/devkit';
2
+ import type { StorybookConfigurationOptions } from '../schema';
3
+ export declare function generateStories(tree: Tree, options: StorybookConfigurationOptions): Promise<void>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateStories = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const versions_1 = require("../../../utils/versions");
6
+ const stories_1 = require("../../stories/stories");
7
+ async function generateStories(tree, options) {
8
+ const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
9
+ (0, devkit_1.ensurePackage)('@nx/cypress', versions_1.nxVersion);
10
+ const { getE2eProjectName } = await Promise.resolve().then(() => require('@nx/cypress/src/utils/project-name'));
11
+ const e2eProjectName = getE2eProjectName(options.project, project.root, options.cypressDirectory);
12
+ await (0, stories_1.angularStoriesGenerator)(tree, {
13
+ name: options.project,
14
+ generateCypressSpecs: options.configureCypress && options.generateCypressSpecs,
15
+ cypressProject: e2eProjectName,
16
+ ignorePaths: options.ignorePaths,
17
+ interactionTests: options.interactionTests,
18
+ skipFormat: true,
19
+ });
20
+ }
21
+ exports.generateStories = generateStories;
@@ -0,0 +1,3 @@
1
+ import { GeneratorCallback, Tree } from '@nx/devkit';
2
+ import type { StorybookConfigurationOptions } from '../schema';
3
+ export declare function generateStorybookConfiguration(tree: Tree, options: StorybookConfigurationOptions): Promise<GeneratorCallback>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateStorybookConfiguration = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const versions_1 = require("../../../utils/versions");
6
+ async function generateStorybookConfiguration(tree, options) {
7
+ const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/storybook', versions_1.nxVersion);
8
+ return await configurationGenerator(tree, {
9
+ project: options.project,
10
+ uiFramework: '@storybook/angular',
11
+ configureCypress: options.configureCypress,
12
+ linter: options.linter,
13
+ cypressDirectory: options.cypressDirectory,
14
+ tsConfiguration: options.tsConfiguration,
15
+ interactionTests: options.interactionTests,
16
+ configureStaticServe: options.configureStaticServe,
17
+ skipFormat: true,
18
+ addPlugin: false,
19
+ addExplicitTargets: true,
20
+ });
21
+ }
22
+ exports.generateStorybookConfiguration = generateStorybookConfiguration;
@@ -0,0 +1,2 @@
1
+ import type { StorybookConfigurationOptions } from '../schema';
2
+ export declare function validateOptions(options: StorybookConfigurationOptions): void;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateOptions = void 0;
4
+ function validateOptions(options) {
5
+ if (options.generateCypressSpecs && !options.generateStories) {
6
+ throw new Error('Cannot set generateCypressSpecs to true when generateStories is set to false.');
7
+ }
8
+ }
9
+ exports.validateOptions = validateOptions;
@@ -0,0 +1,15 @@
1
+ import type { Linter } from '@nx/eslint';
2
+
3
+ export interface StorybookConfigurationOptions {
4
+ configureStaticServe?: boolean;
5
+ generateStories: boolean;
6
+ linter: Linter;
7
+ project: string;
8
+ tsConfiguration?: boolean;
9
+ skipFormat?: boolean;
10
+ ignorePaths?: string[];
11
+ interactionTests?: boolean;
12
+ configureCypress?: boolean;
13
+ generateCypressSpecs?: boolean;
14
+ cypressDirectory?: string;
15
+ }
@@ -0,0 +1,98 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxAngularStorybookConfigurationGenerator",
4
+ "title": "Adds Storybook configuration to a project.",
5
+ "description": "Adds Storybook configuration to a project to be able to use and create stories.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
10
+ "type": "string",
11
+ "aliases": ["name", "projectName"],
12
+ "description": "Project for which to generate Storybook configuration.",
13
+ "$default": {
14
+ "$source": "argv",
15
+ "index": 0
16
+ },
17
+ "x-prompt": "For which project do you want to generate Storybook configuration?",
18
+ "x-dropdown": "projects",
19
+ "x-priority": "important"
20
+ },
21
+ "interactionTests": {
22
+ "type": "boolean",
23
+ "description": "Set up Storybook interaction tests.",
24
+ "x-prompt": "Do you want to set up Storybook interaction tests?",
25
+ "alias": ["configureTestRunner"],
26
+ "x-priority": "important",
27
+ "default": true
28
+ },
29
+ "configureCypress": {
30
+ "type": "boolean",
31
+ "description": "Specifies whether to configure Cypress or not.",
32
+ "x-deprecated": "Use interactionTests instead. This option will be removed in v19."
33
+ },
34
+ "generateStories": {
35
+ "type": "boolean",
36
+ "description": "Specifies whether to automatically generate `*.stories.ts` files for components declared in this project or not.",
37
+ "x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
38
+ "default": true,
39
+ "x-priority": "important"
40
+ },
41
+ "generateCypressSpecs": {
42
+ "type": "boolean",
43
+ "description": "Specifies whether to automatically generate test files in the generated Cypress e2e app.",
44
+ "x-deprecated": "Use interactionTests instead. This option will be removed in v19."
45
+ },
46
+ "configureStaticServe": {
47
+ "type": "boolean",
48
+ "description": "Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times.",
49
+ "x-prompt": "Configure a static file server for the storybook instance?",
50
+ "default": true,
51
+ "x-priority": "important"
52
+ },
53
+ "cypressDirectory": {
54
+ "type": "string",
55
+ "description": "A directory where the Cypress project will be placed. Placed at the root by default.",
56
+ "x-deprecated": "Use interactionTests instead. This option will be removed in v19."
57
+ },
58
+ "linter": {
59
+ "description": "The tool to use for running lint checks.",
60
+ "type": "string",
61
+ "enum": ["eslint", "none"],
62
+ "default": "eslint"
63
+ },
64
+ "tsConfiguration": {
65
+ "type": "boolean",
66
+ "description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
67
+ "default": true,
68
+ "x-priority": "important"
69
+ },
70
+ "skipFormat": {
71
+ "description": "Skip formatting files.",
72
+ "type": "boolean",
73
+ "default": false,
74
+ "x-priority": "internal"
75
+ },
76
+ "ignorePaths": {
77
+ "type": "array",
78
+ "description": "Paths to ignore when looking for components.",
79
+ "items": {
80
+ "type": "string",
81
+ "description": "Path to ignore."
82
+ },
83
+ "default": [
84
+ "*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx"
85
+ ],
86
+ "examples": [
87
+ "apps/my-app/src/not-stories/**",
88
+ "**/**/src/**/not-stories/**",
89
+ "libs/my-lib/**/*.something.ts",
90
+ "**/**/src/**/*.other.*",
91
+ "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
92
+ ]
93
+ }
94
+ },
95
+ "additionalProperties": false,
96
+ "required": ["project"],
97
+ "examplesFile": "../../../docs/storybook-configuration-examples.md"
98
+ }
@@ -0,0 +1,4 @@
1
+ import { GeneratorCallback, Tree } from '@nx/devkit';
2
+ import type { StorybookConfigurationOptions } from './schema';
3
+ export declare function storybookConfigurationGenerator(tree: Tree, options: StorybookConfigurationOptions): Promise<GeneratorCallback>;
4
+ export default storybookConfigurationGenerator;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.storybookConfigurationGenerator = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const update_app_editor_tsconfig_excluded_files_1 = require("../utils/update-app-editor-tsconfig-excluded-files");
6
+ const assert_compatible_storybook_version_1 = require("./lib/assert-compatible-storybook-version");
7
+ const generate_stories_1 = require("./lib/generate-stories");
8
+ const generate_storybook_configuration_1 = require("./lib/generate-storybook-configuration");
9
+ const validate_options_1 = require("./lib/validate-options");
10
+ // TODO(katerina): Nx 19 -> remove Cypress
11
+ async function storybookConfigurationGenerator(tree, options) {
12
+ (0, assert_compatible_storybook_version_1.assertCompatibleStorybookVersion)();
13
+ (0, validate_options_1.validateOptions)(options);
14
+ const storybookGeneratorInstallTask = await (0, generate_storybook_configuration_1.generateStorybookConfiguration)(tree, {
15
+ ...options,
16
+ interactionTests: options.interactionTests ?? true, // default is true
17
+ tsConfiguration: options.tsConfiguration ?? true, // default is true
18
+ });
19
+ if (options.generateStories) {
20
+ await (0, generate_stories_1.generateStories)(tree, {
21
+ ...options,
22
+ interactionTests: options.interactionTests ?? true,
23
+ skipFormat: true,
24
+ });
25
+ }
26
+ const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
27
+ if (project.projectType === 'application') {
28
+ (0, update_app_editor_tsconfig_excluded_files_1.updateAppEditorTsConfigExcludedFiles)(tree, project);
29
+ }
30
+ if (!options.skipFormat) {
31
+ await (0, devkit_1.formatFiles)(tree);
32
+ }
33
+ return storybookGeneratorInstallTask;
34
+ }
35
+ exports.storybookConfigurationGenerator = storybookConfigurationGenerator;
36
+ exports.default = storybookConfigurationGenerator;