@nrwl/angular 15.9.2 → 16.0.0-beta.1

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 (1090) hide show
  1. package/README.md +4 -56
  2. package/esm2020/index.mjs +5 -2
  3. package/esm2020/mf/index.mjs +5 -2
  4. package/esm2020/mf/nrwl-angular-mf.mjs +5 -2
  5. package/esm2020/nrwl-angular.mjs +5 -2
  6. package/esm2020/testing/index.mjs +7 -2
  7. package/esm2020/testing/nrwl-angular-testing.mjs +5 -2
  8. package/executors.d.ts +1 -8
  9. package/executors.js +1 -8
  10. package/executors.js.map +1 -1
  11. package/executors.json +22 -22
  12. package/fesm2015/nrwl-angular-mf.mjs +4 -56
  13. package/fesm2015/nrwl-angular-mf.mjs.map +1 -1
  14. package/fesm2015/nrwl-angular-testing.mjs +4 -39
  15. package/fesm2015/nrwl-angular-testing.mjs.map +1 -1
  16. package/fesm2015/nrwl-angular.mjs +4 -347
  17. package/fesm2015/nrwl-angular.mjs.map +1 -1
  18. package/fesm2020/nrwl-angular-mf.mjs +4 -50
  19. package/fesm2020/nrwl-angular-mf.mjs.map +1 -1
  20. package/fesm2020/nrwl-angular-testing.mjs +4 -39
  21. package/fesm2020/nrwl-angular-testing.mjs.map +1 -1
  22. package/fesm2020/nrwl-angular.mjs +4 -347
  23. package/fesm2020/nrwl-angular.mjs.map +1 -1
  24. package/generators.d.ts +1 -28
  25. package/generators.js +1 -28
  26. package/generators.js.map +1 -1
  27. package/generators.json +2 -317
  28. package/index.d.ts +1 -1
  29. package/index.js +2 -6
  30. package/index.js.map +1 -1
  31. package/mf/index.d.ts +1 -1
  32. package/mf/index.js +2 -5
  33. package/mf/index.js.map +1 -1
  34. package/module-federation/index.d.ts +1 -2
  35. package/module-federation/index.js +2 -5
  36. package/module-federation/index.js.map +1 -1
  37. package/ng-package.json +3 -0
  38. package/package.json +9 -41
  39. package/plugins/component-testing.d.ts +1 -38
  40. package/plugins/component-testing.js +2 -232
  41. package/plugins/component-testing.js.map +1 -1
  42. package/tailwind.d.ts +1 -6
  43. package/tailwind.js +2 -26
  44. package/tailwind.js.map +1 -1
  45. package/testing/index.d.ts +1 -1
  46. package/testing/index.js +3 -3
  47. package/testing/index.js.map +1 -1
  48. package/esm2020/mf/mf.mjs +0 -48
  49. package/esm2020/src/runtime/nx/data-persistence.mjs +0 -344
  50. package/esm2020/testing/src/testing-utils.mjs +0 -36
  51. package/mf/mf.d.ts +0 -4
  52. package/mf/mf.js +0 -60
  53. package/mf/mf.js.map +0 -1
  54. package/migrations.json +0 -953
  55. package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -4
  56. package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.js +0 -72
  57. package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.js.map +0 -1
  58. package/src/builders/module-federation-dev-server/schema.d.ts +0 -23
  59. package/src/builders/module-federation-dev-server/schema.json +0 -130
  60. package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.d.ts +0 -4
  61. package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js +0 -95
  62. package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js.map +0 -1
  63. package/src/builders/module-federation-dev-ssr/schema.d.ts +0 -17
  64. package/src/builders/module-federation-dev-ssr/schema.json +0 -90
  65. package/src/builders/utilities/buildable-libs.d.ts +0 -9
  66. package/src/builders/utilities/buildable-libs.js +0 -17
  67. package/src/builders/utilities/buildable-libs.js.map +0 -1
  68. package/src/builders/utilities/module-federation.d.ts +0 -6
  69. package/src/builders/utilities/module-federation.js +0 -71
  70. package/src/builders/utilities/module-federation.js.map +0 -1
  71. package/src/builders/utilities/webpack.d.ts +0 -6
  72. package/src/builders/utilities/webpack.js +0 -64
  73. package/src/builders/utilities/webpack.js.map +0 -1
  74. package/src/builders/webpack-browser/schema.d.ts +0 -9
  75. package/src/builders/webpack-browser/schema.json +0 -599
  76. package/src/builders/webpack-browser/validate-options.d.ts +0 -2
  77. package/src/builders/webpack-browser/validate-options.js +0 -41
  78. package/src/builders/webpack-browser/validate-options.js.map +0 -1
  79. package/src/builders/webpack-browser/webpack-browser.impl.d.ts +0 -5
  80. package/src/builders/webpack-browser/webpack-browser.impl.js +0 -76
  81. package/src/builders/webpack-browser/webpack-browser.impl.js.map +0 -1
  82. package/src/builders/webpack-dev-server/lib/index.d.ts +0 -1
  83. package/src/builders/webpack-dev-server/lib/index.js +0 -5
  84. package/src/builders/webpack-dev-server/lib/index.js.map +0 -1
  85. package/src/builders/webpack-dev-server/lib/normalize-options.d.ts +0 -2
  86. package/src/builders/webpack-dev-server/lib/normalize-options.js +0 -8
  87. package/src/builders/webpack-dev-server/lib/normalize-options.js.map +0 -1
  88. package/src/builders/webpack-dev-server/schema.d.ts +0 -21
  89. package/src/builders/webpack-dev-server/schema.json +0 -116
  90. package/src/builders/webpack-dev-server/webpack-dev-server.impl.d.ts +0 -4
  91. package/src/builders/webpack-dev-server/webpack-dev-server.impl.js +0 -92
  92. package/src/builders/webpack-dev-server/webpack-dev-server.impl.js.map +0 -1
  93. package/src/builders/webpack-server/schema.d.ts +0 -9
  94. package/src/builders/webpack-server/schema.json +0 -328
  95. package/src/builders/webpack-server/validate-options.d.ts +0 -2
  96. package/src/builders/webpack-server/validate-options.js +0 -34
  97. package/src/builders/webpack-server/validate-options.js.map +0 -1
  98. package/src/builders/webpack-server/webpack-server.impl.d.ts +0 -5
  99. package/src/builders/webpack-server/webpack-server.impl.js +0 -69
  100. package/src/builders/webpack-server/webpack-server.impl.js.map +0 -1
  101. package/src/executors/delegate-build/compat.d.ts +0 -2
  102. package/src/executors/delegate-build/compat.js +0 -6
  103. package/src/executors/delegate-build/compat.js.map +0 -1
  104. package/src/executors/delegate-build/delegate-build.impl.d.ts +0 -8
  105. package/src/executors/delegate-build/delegate-build.impl.js +0 -21
  106. package/src/executors/delegate-build/delegate-build.impl.js.map +0 -1
  107. package/src/executors/delegate-build/schema.d.ts +0 -6
  108. package/src/executors/delegate-build/schema.json +0 -34
  109. package/src/executors/ng-packagr-lite/compat.d.ts +0 -2
  110. package/src/executors/ng-packagr-lite/compat.js +0 -6
  111. package/src/executors/ng-packagr-lite/compat.js.map +0 -1
  112. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.d.ts +0 -14
  113. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js +0 -28
  114. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js.map +0 -1
  115. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.d.ts +0 -11
  116. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js +0 -46
  117. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js.map +0 -1
  118. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.d.ts +0 -15
  119. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js +0 -29
  120. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js.map +0 -1
  121. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.transform.d.ts +0 -30
  122. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.transform.js +0 -54
  123. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/entry-point.transform.js.map +0 -1
  124. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.di.d.ts +0 -12
  125. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.di.js +0 -21
  126. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.di.js.map +0 -1
  127. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.d.ts +0 -9
  128. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.js +0 -286
  129. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.js.map +0 -1
  130. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/options.di.d.ts +0 -14
  131. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/options.di.js +0 -32
  132. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/options.di.js.map +0 -1
  133. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/package.di.d.ts +0 -14
  134. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/package.di.js +0 -38
  135. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/package.di.js.map +0 -1
  136. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ngc/compile-source-files.d.ts +0 -13
  137. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ngc/compile-source-files.js +0 -149
  138. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ngc/compile-source-files.js.map +0 -1
  139. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.d.ts +0 -47
  140. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.di.d.ts +0 -10
  141. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.di.js +0 -18
  142. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.di.js.map +0 -1
  143. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.js +0 -257
  144. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.js.map +0 -1
  145. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ts/cache-compiler-host.d.ts +0 -15
  146. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ts/cache-compiler-host.js +0 -157
  147. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ts/cache-compiler-host.js.map +0 -1
  148. package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.d.ts +0 -6
  149. package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js +0 -36
  150. package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js.map +0 -1
  151. package/src/executors/ng-packagr-lite/schema.json +0 -58
  152. package/src/executors/package/compat.d.ts +0 -2
  153. package/src/executors/package/compat.js +0 -6
  154. package/src/executors/package/compat.js.map +0 -1
  155. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.d.ts +0 -14
  156. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js +0 -27
  157. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.di.js.map +0 -1
  158. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.d.ts +0 -10
  159. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js +0 -60
  160. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/compile-ngc.transform.js.map +0 -1
  161. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.d.ts +0 -13
  162. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js +0 -33
  163. package/src/executors/package/ng-packagr-adjustments/ng-package/entry-point/entry-point.di.js.map +0 -1
  164. package/src/executors/package/ng-packagr-adjustments/ng-package/options.di.d.ts +0 -14
  165. package/src/executors/package/ng-packagr-adjustments/ng-package/options.di.js +0 -32
  166. package/src/executors/package/ng-packagr-adjustments/ng-package/options.di.js.map +0 -1
  167. package/src/executors/package/ng-packagr-adjustments/ng-package/package.di.d.ts +0 -14
  168. package/src/executors/package/ng-packagr-adjustments/ng-package/package.di.js +0 -38
  169. package/src/executors/package/ng-packagr-adjustments/ng-package/package.di.js.map +0 -1
  170. package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.d.ts +0 -12
  171. package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js +0 -144
  172. package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js.map +0 -1
  173. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.d.ts +0 -41
  174. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.di.d.ts +0 -10
  175. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.di.js +0 -18
  176. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.di.js.map +0 -1
  177. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.js +0 -250
  178. package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.js.map +0 -1
  179. package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.d.ts +0 -15
  180. package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.js +0 -180
  181. package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.js.map +0 -1
  182. package/src/executors/package/package.impl.d.ts +0 -16
  183. package/src/executors/package/package.impl.js +0 -64
  184. package/src/executors/package/package.impl.js.map +0 -1
  185. package/src/executors/package/schema.d.ts +0 -8
  186. package/src/executors/package/schema.json +0 -60
  187. package/src/executors/utilities/angular-version-utils.d.ts +0 -6
  188. package/src/executors/utilities/angular-version-utils.js +0 -20
  189. package/src/executors/utilities/angular-version-utils.js.map +0 -1
  190. package/src/executors/utilities/tailwindcss.d.ts +0 -7
  191. package/src/executors/utilities/tailwindcss.js +0 -69
  192. package/src/executors/utilities/tailwindcss.js.map +0 -1
  193. package/src/executors/utilities/typescript.d.ts +0 -13
  194. package/src/executors/utilities/typescript.js +0 -49
  195. package/src/executors/utilities/typescript.js.map +0 -1
  196. package/src/generators/add-linting/add-linting.d.ts +0 -4
  197. package/src/generators/add-linting/add-linting.js +0 -43
  198. package/src/generators/add-linting/add-linting.js.map +0 -1
  199. package/src/generators/add-linting/compat.d.ts +0 -2
  200. package/src/generators/add-linting/compat.js +0 -7
  201. package/src/generators/add-linting/compat.js.map +0 -1
  202. package/src/generators/add-linting/lib/add-angular-eslint-dependencies.d.ts +0 -2
  203. package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +0 -15
  204. package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js.map +0 -1
  205. package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +0 -78
  206. package/src/generators/add-linting/lib/create-eslint-configuration.js +0 -111
  207. package/src/generators/add-linting/lib/create-eslint-configuration.js.map +0 -1
  208. package/src/generators/add-linting/schema.d.ts +0 -9
  209. package/src/generators/add-linting/schema.json +0 -51
  210. package/src/generators/application/application.compat.d.ts +0 -1
  211. package/src/generators/application/application.compat.js +0 -8
  212. package/src/generators/application/application.compat.js.map +0 -1
  213. package/src/generators/application/application.d.ts +0 -4
  214. package/src/generators/application/application.js +0 -68
  215. package/src/generators/application/application.js.map +0 -1
  216. package/src/generators/application/files/base/src/assets/.gitkeep__tpl__ +0 -0
  217. package/src/generators/application/files/base/src/favicon.ico +0 -0
  218. package/src/generators/application/files/base/src/index.html__tpl__ +0 -13
  219. package/src/generators/application/files/base/src/styles.__style__ +0 -1
  220. package/src/generators/application/files/base/tsconfig.app.json__tpl__ +0 -10
  221. package/src/generators/application/files/base/tsconfig.editor.json__tpl__ +0 -5
  222. package/src/generators/application/files/base/tsconfig.json__tpl__ +0 -14
  223. package/src/generators/application/files/ng-module/src/app/app.component.__style__ +0 -0
  224. package/src/generators/application/files/ng-module/src/app/app.component.html__tpl__ +0 -1
  225. package/src/generators/application/files/ng-module/src/app/app.component.spec.ts__tpl__ +0 -26
  226. package/src/generators/application/files/ng-module/src/app/app.component.ts__tpl__ +0 -13
  227. package/src/generators/application/files/ng-module/src/app/app.module.ts__tpl__ +0 -17
  228. package/src/generators/application/files/ng-module/src/app/app.routes.ts__tpl__ +0 -3
  229. package/src/generators/application/files/ng-module/src/app/nx-welcome.component.ts__tpl__ +0 -795
  230. package/src/generators/application/files/ng-module/src/main.ts__tpl__ +0 -12
  231. package/src/generators/application/files/standalone-components/src/app/app.component.__style__ +0 -0
  232. package/src/generators/application/files/standalone-components/src/app/app.component.html__tpl__ +0 -1
  233. package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__ +0 -25
  234. package/src/generators/application/files/standalone-components/src/app/app.component.ts__tpl__ +0 -17
  235. package/src/generators/application/files/standalone-components/src/app/app.routes.ts__tpl__ +0 -3
  236. package/src/generators/application/files/standalone-components/src/app/nx-welcome.component.ts__tpl__ +0 -798
  237. package/src/generators/application/files/standalone-components/src/main.ts__tpl__ +0 -11
  238. package/src/generators/application/files/tsconfig.editor.json__tpl__ +0 -5
  239. package/src/generators/application/files/v14/.browserlistrc__tpl__ +0 -16
  240. package/src/generators/application/files/v14/src/environments/environment.prod.ts__tpl__ +0 -3
  241. package/src/generators/application/files/v14/src/environments/environment.ts__tpl__ +0 -16
  242. package/src/generators/application/files/v14/src/polyfills.ts__tpl__ +0 -53
  243. package/src/generators/application/lib/add-e2e.d.ts +0 -3
  244. package/src/generators/application/lib/add-e2e.js +0 -40
  245. package/src/generators/application/lib/add-e2e.js.map +0 -1
  246. package/src/generators/application/lib/add-linting.d.ts +0 -3
  247. package/src/generators/application/lib/add-linting.js +0 -24
  248. package/src/generators/application/lib/add-linting.js.map +0 -1
  249. package/src/generators/application/lib/add-proxy-config.d.ts +0 -3
  250. package/src/generators/application/lib/add-proxy-config.js +0 -23
  251. package/src/generators/application/lib/add-proxy-config.js.map +0 -1
  252. package/src/generators/application/lib/add-unit-test-runner.d.ts +0 -3
  253. package/src/generators/application/lib/add-unit-test-runner.js +0 -22
  254. package/src/generators/application/lib/add-unit-test-runner.js.map +0 -1
  255. package/src/generators/application/lib/create-files.d.ts +0 -3
  256. package/src/generators/application/lib/create-files.js +0 -58
  257. package/src/generators/application/lib/create-files.js.map +0 -1
  258. package/src/generators/application/lib/create-project.d.ts +0 -3
  259. package/src/generators/application/lib/create-project.js +0 -97
  260. package/src/generators/application/lib/create-project.js.map +0 -1
  261. package/src/generators/application/lib/enable-strict-type-checking.d.ts +0 -3
  262. package/src/generators/application/lib/enable-strict-type-checking.js +0 -37
  263. package/src/generators/application/lib/enable-strict-type-checking.js.map +0 -1
  264. package/src/generators/application/lib/index.d.ts +0 -13
  265. package/src/generators/application/lib/index.js +0 -17
  266. package/src/generators/application/lib/index.js.map +0 -1
  267. package/src/generators/application/lib/normalize-options.d.ts +0 -4
  268. package/src/generators/application/lib/normalize-options.js +0 -40
  269. package/src/generators/application/lib/normalize-options.js.map +0 -1
  270. package/src/generators/application/lib/normalized-schema.d.ts +0 -15
  271. package/src/generators/application/lib/normalized-schema.js +0 -3
  272. package/src/generators/application/lib/normalized-schema.js.map +0 -1
  273. package/src/generators/application/lib/remove-scaffolded-e2e.d.ts +0 -3
  274. package/src/generators/application/lib/remove-scaffolded-e2e.js +0 -23
  275. package/src/generators/application/lib/remove-scaffolded-e2e.js.map +0 -1
  276. package/src/generators/application/lib/set-app-strict-default.d.ts +0 -2
  277. package/src/generators/application/lib/set-app-strict-default.js +0 -16
  278. package/src/generators/application/lib/set-app-strict-default.js.map +0 -1
  279. package/src/generators/application/lib/update-e2e-project.d.ts +0 -3
  280. package/src/generators/application/lib/update-e2e-project.js +0 -40
  281. package/src/generators/application/lib/update-e2e-project.js.map +0 -1
  282. package/src/generators/application/lib/update-editor-tsconfig.d.ts +0 -3
  283. package/src/generators/application/lib/update-editor-tsconfig.js +0 -27
  284. package/src/generators/application/lib/update-editor-tsconfig.js.map +0 -1
  285. package/src/generators/application/schema.d.ts +0 -30
  286. package/src/generators/application/schema.json +0 -172
  287. package/src/generators/component/component.compat.d.ts +0 -2
  288. package/src/generators/component/component.compat.js +0 -7
  289. package/src/generators/component/component.compat.js.map +0 -1
  290. package/src/generators/component/component.d.ts +0 -4
  291. package/src/generators/component/component.js +0 -77
  292. package/src/generators/component/component.js.map +0 -1
  293. package/src/generators/component/files/__fileName__/__fileName__.__type__.__style__ +0 -6
  294. package/src/generators/component/files/__fileName__/__fileName__.__type__.html__tpl__ +0 -1
  295. package/src/generators/component/files/__fileName__/__fileName__.__type__.spec.ts__tpl__ +0 -22
  296. package/src/generators/component/files/__fileName__/__fileName__.__type__.ts__tpl__ +0 -21
  297. package/src/generators/component/lib/component.d.ts +0 -3
  298. package/src/generators/component/lib/component.js +0 -37
  299. package/src/generators/component/lib/component.js.map +0 -1
  300. package/src/generators/component/lib/entry-point.d.ts +0 -2
  301. package/src/generators/component/lib/entry-point.js +0 -19
  302. package/src/generators/component/lib/entry-point.js.map +0 -1
  303. package/src/generators/component/lib/module.d.ts +0 -3
  304. package/src/generators/component/lib/module.js +0 -64
  305. package/src/generators/component/lib/module.js.map +0 -1
  306. package/src/generators/component/lib/normalize-options.d.ts +0 -3
  307. package/src/generators/component/lib/normalize-options.js +0 -20
  308. package/src/generators/component/lib/normalize-options.js.map +0 -1
  309. package/src/generators/component/schema.d.ts +0 -28
  310. package/src/generators/component/schema.json +0 -131
  311. package/src/generators/component-cypress-spec/compat.d.ts +0 -2
  312. package/src/generators/component-cypress-spec/compat.js +0 -7
  313. package/src/generators/component-cypress-spec/compat.js.map +0 -1
  314. package/src/generators/component-cypress-spec/component-cypress-spec.d.ts +0 -4
  315. package/src/generators/component-cypress-spec/component-cypress-spec.js +0 -40
  316. package/src/generators/component-cypress-spec/component-cypress-spec.js.map +0 -1
  317. package/src/generators/component-cypress-spec/files/__componentFileName__.__fileExt__ +0 -12
  318. package/src/generators/component-cypress-spec/lib/get-args-default-value.d.ts +0 -2
  319. package/src/generators/component-cypress-spec/lib/get-args-default-value.js +0 -26
  320. package/src/generators/component-cypress-spec/lib/get-args-default-value.js.map +0 -1
  321. package/src/generators/component-cypress-spec/lib/get-component-selector.d.ts +0 -2
  322. package/src/generators/component-cypress-spec/lib/get-component-selector.js +0 -25
  323. package/src/generators/component-cypress-spec/lib/get-component-selector.js.map +0 -1
  324. package/src/generators/component-cypress-spec/schema.d.ts +0 -10
  325. package/src/generators/component-cypress-spec/schema.json +0 -65
  326. package/src/generators/component-story/compat.d.ts +0 -2
  327. package/src/generators/component-story/compat.js +0 -7
  328. package/src/generators/component-story/compat.js.map +0 -1
  329. package/src/generators/component-story/component-story.d.ts +0 -4
  330. package/src/generators/component-story/component-story.js +0 -30
  331. package/src/generators/component-story/component-story.js.map +0 -1
  332. package/src/generators/component-story/files/__componentFileName__.stories.ts__tmpl__ +0 -16
  333. package/src/generators/component-story/schema.d.ts +0 -7
  334. package/src/generators/component-story/schema.json +0 -46
  335. package/src/generators/component-test/compat.d.ts +0 -2
  336. package/src/generators/component-test/compat.js +0 -7
  337. package/src/generators/component-test/compat.js.map +0 -1
  338. package/src/generators/component-test/component-test.d.ts +0 -4
  339. package/src/generators/component-test/component-test.js +0 -27
  340. package/src/generators/component-test/component-test.js.map +0 -1
  341. package/src/generators/component-test/files/__componentFileName__.cy.ts__tpl__ +0 -23
  342. package/src/generators/component-test/schema.d.ts +0 -12
  343. package/src/generators/component-test/schema.json +0 -49
  344. package/src/generators/convert-to-with-mf/convert-to-with-mf.compat.d.ts +0 -2
  345. package/src/generators/convert-to-with-mf/convert-to-with-mf.compat.js +0 -7
  346. package/src/generators/convert-to-with-mf/convert-to-with-mf.compat.js.map +0 -1
  347. package/src/generators/convert-to-with-mf/convert-to-with-mf.d.ts +0 -4
  348. package/src/generators/convert-to-with-mf/convert-to-with-mf.js +0 -34
  349. package/src/generators/convert-to-with-mf/convert-to-with-mf.js.map +0 -1
  350. package/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.d.ts +0 -5
  351. package/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.js +0 -449
  352. package/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.js.map +0 -1
  353. package/src/generators/convert-to-with-mf/lib/check-name-matches.d.ts +0 -2
  354. package/src/generators/convert-to-with-mf/lib/check-name-matches.js +0 -26
  355. package/src/generators/convert-to-with-mf/lib/check-name-matches.js.map +0 -1
  356. package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.d.ts +0 -2
  357. package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +0 -51
  358. package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js.map +0 -1
  359. package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.d.ts +0 -2
  360. package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js +0 -20
  361. package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js.map +0 -1
  362. package/src/generators/convert-to-with-mf/lib/index.d.ts +0 -6
  363. package/src/generators/convert-to-with-mf/lib/index.js +0 -10
  364. package/src/generators/convert-to-with-mf/lib/index.js.map +0 -1
  365. package/src/generators/convert-to-with-mf/lib/is-host-remote-config.d.ts +0 -5
  366. package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +0 -69
  367. package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js.map +0 -1
  368. package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.d.ts +0 -2
  369. package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +0 -15
  370. package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js.map +0 -1
  371. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.d.ts +0 -3
  372. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +0 -51
  373. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js.map +0 -1
  374. package/src/generators/convert-to-with-mf/schema.d.ts +0 -3
  375. package/src/generators/convert-to-with-mf/schema.json +0 -27
  376. package/src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint.d.ts +0 -4
  377. package/src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint.js +0 -174
  378. package/src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint.js.map +0 -1
  379. package/src/generators/convert-tslint-to-eslint/schema.json +0 -54
  380. package/src/generators/cypress-component-configuration/compat.d.ts +0 -2
  381. package/src/generators/cypress-component-configuration/compat.js +0 -7
  382. package/src/generators/cypress-component-configuration/compat.js.map +0 -1
  383. package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts +0 -8
  384. package/src/generators/cypress-component-configuration/cypress-component-configuration.js +0 -87
  385. package/src/generators/cypress-component-configuration/cypress-component-configuration.js.map +0 -1
  386. package/src/generators/cypress-component-configuration/files/cypress/support/commands.ts__tpl__ +0 -42
  387. package/src/generators/cypress-component-configuration/files/cypress.config.ts__tpl__ +0 -6
  388. package/src/generators/cypress-component-configuration/schema.d.ts +0 -6
  389. package/src/generators/cypress-component-configuration/schema.json +0 -40
  390. package/src/generators/directive/directive.d.ts +0 -4
  391. package/src/generators/directive/directive.js +0 -51
  392. package/src/generators/directive/directive.js.map +0 -1
  393. package/src/generators/directive/files/__directiveFileName__/__directiveFileName__.directive.spec.ts__tpl__ +0 -8
  394. package/src/generators/directive/files/__directiveFileName__/__directiveFileName__.directive.ts__tpl__ +0 -11
  395. package/src/generators/directive/schema.d.ts +0 -14
  396. package/src/generators/directive/schema.json +0 -92
  397. package/src/generators/host/files/src/main.server.ts__tmpl__ +0 -66
  398. package/src/generators/host/files/webpack.server.config.js__tmpl__ +0 -3
  399. package/src/generators/host/host.compat.d.ts +0 -2
  400. package/src/generators/host/host.compat.js +0 -7
  401. package/src/generators/host/host.compat.js.map +0 -1
  402. package/src/generators/host/host.d.ts +0 -4
  403. package/src/generators/host/host.js +0 -66
  404. package/src/generators/host/host.js.map +0 -1
  405. package/src/generators/host/lib/add-ssr.d.ts +0 -3
  406. package/src/generators/host/lib/add-ssr.js +0 -43
  407. package/src/generators/host/lib/add-ssr.js.map +0 -1
  408. package/src/generators/host/lib/index.d.ts +0 -1
  409. package/src/generators/host/lib/index.js +0 -5
  410. package/src/generators/host/lib/index.js.map +0 -1
  411. package/src/generators/host/schema.d.ts +0 -30
  412. package/src/generators/host/schema.json +0 -174
  413. package/src/generators/init/init.compat.d.ts +0 -1
  414. package/src/generators/init/init.compat.js +0 -8
  415. package/src/generators/init/init.compat.js.map +0 -1
  416. package/src/generators/init/init.d.ts +0 -4
  417. package/src/generators/init/init.js +0 -165
  418. package/src/generators/init/init.js.map +0 -1
  419. package/src/generators/init/schema.d.ts +0 -14
  420. package/src/generators/init/schema.json +0 -84
  421. package/src/generators/library/files/base/README.md__tpl__ +0 -9
  422. package/src/generators/library/files/base/ng-package.json__tpl__ +0 -7
  423. package/src/generators/library/files/base/package.json__tpl__ +0 -12
  424. package/src/generators/library/files/base/tsconfig.json__tpl__ +0 -14
  425. package/src/generators/library/files/base/tsconfig.lib.json__tpl__ +0 -17
  426. package/src/generators/library/files/base/tsconfig.lib.prod.json__tpl__ +0 -9
  427. package/src/generators/library/files/ng-module/src/index.ts__tpl__ +0 -2
  428. package/src/generators/library/files/ng-module/src/lib/__libFileName__.module.ts__tpl__ +0 -9
  429. package/src/generators/library/files/ng-module/src/lib/lib.routes.ts__tpl__ +0 -5
  430. package/src/generators/library/files/standalone-components/src/index.ts__tpl__ +0 -1
  431. package/src/generators/library/files/standalone-components/src/lib/lib.routes.ts__tpl__ +0 -6
  432. package/src/generators/library/lib/add-children.d.ts +0 -3
  433. package/src/generators/library/lib/add-children.js +0 -31
  434. package/src/generators/library/lib/add-children.js.map +0 -1
  435. package/src/generators/library/lib/add-lazy-loaded-router-configuration.d.ts +0 -3
  436. package/src/generators/library/lib/add-lazy-loaded-router-configuration.js +0 -30
  437. package/src/generators/library/lib/add-lazy-loaded-router-configuration.js.map +0 -1
  438. package/src/generators/library/lib/add-load-children.d.ts +0 -3
  439. package/src/generators/library/lib/add-load-children.js +0 -23
  440. package/src/generators/library/lib/add-load-children.js.map +0 -1
  441. package/src/generators/library/lib/add-module.d.ts +0 -3
  442. package/src/generators/library/lib/add-module.js +0 -23
  443. package/src/generators/library/lib/add-module.js.map +0 -1
  444. package/src/generators/library/lib/add-project.d.ts +0 -5
  445. package/src/generators/library/lib/add-project.js +0 -40
  446. package/src/generators/library/lib/add-project.js.map +0 -1
  447. package/src/generators/library/lib/add-router-configuration.d.ts +0 -3
  448. package/src/generators/library/lib/add-router-configuration.js +0 -29
  449. package/src/generators/library/lib/add-router-configuration.js.map +0 -1
  450. package/src/generators/library/lib/add-standalone-component.d.ts +0 -3
  451. package/src/generators/library/lib/add-standalone-component.js +0 -24
  452. package/src/generators/library/lib/add-standalone-component.js.map +0 -1
  453. package/src/generators/library/lib/create-files.d.ts +0 -5
  454. package/src/generators/library/lib/create-files.js +0 -50
  455. package/src/generators/library/lib/create-files.js.map +0 -1
  456. package/src/generators/library/lib/enable-strict-type-checking.d.ts +0 -7
  457. package/src/generators/library/lib/enable-strict-type-checking.js +0 -37
  458. package/src/generators/library/lib/enable-strict-type-checking.js.map +0 -1
  459. package/src/generators/library/lib/normalize-options.d.ts +0 -4
  460. package/src/generators/library/lib/normalize-options.js +0 -64
  461. package/src/generators/library/lib/normalize-options.js.map +0 -1
  462. package/src/generators/library/lib/normalized-schema.d.ts +0 -56
  463. package/src/generators/library/lib/normalized-schema.js +0 -3
  464. package/src/generators/library/lib/normalized-schema.js.map +0 -1
  465. package/src/generators/library/lib/update-lib-package-npm-scope.d.ts +0 -3
  466. package/src/generators/library/lib/update-lib-package-npm-scope.js +0 -12
  467. package/src/generators/library/lib/update-lib-package-npm-scope.js.map +0 -1
  468. package/src/generators/library/lib/update-tsconfig.d.ts +0 -3
  469. package/src/generators/library/lib/update-tsconfig.js +0 -38
  470. package/src/generators/library/lib/update-tsconfig.js.map +0 -1
  471. package/src/generators/library/library.compat.d.ts +0 -1
  472. package/src/generators/library/library.compat.js +0 -8
  473. package/src/generators/library/library.compat.js.map +0 -1
  474. package/src/generators/library/library.d.ts +0 -4
  475. package/src/generators/library/library.js +0 -124
  476. package/src/generators/library/library.js.map +0 -1
  477. package/src/generators/library/schema.d.ts +0 -45
  478. package/src/generators/library/schema.json +0 -209
  479. package/src/generators/library-secondary-entry-point/compat.d.ts +0 -2
  480. package/src/generators/library-secondary-entry-point/compat.js +0 -7
  481. package/src/generators/library-secondary-entry-point/compat.js.map +0 -1
  482. package/src/generators/library-secondary-entry-point/files/README.md__tmpl__ +0 -3
  483. package/src/generators/library-secondary-entry-point/files/ng-package.json__tmpl__ +0 -5
  484. package/src/generators/library-secondary-entry-point/files/src/index.ts__tmpl__ +0 -5
  485. package/src/generators/library-secondary-entry-point/files/src/lib/__fileName__.module.ts__tmpl__ +0 -7
  486. package/src/generators/library-secondary-entry-point/lib/add-files.d.ts +0 -3
  487. package/src/generators/library-secondary-entry-point/lib/add-files.js +0 -13
  488. package/src/generators/library-secondary-entry-point/lib/add-files.js.map +0 -1
  489. package/src/generators/library-secondary-entry-point/lib/add-path-mapping.d.ts +0 -3
  490. package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +0 -17
  491. package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js.map +0 -1
  492. package/src/generators/library-secondary-entry-point/lib/index.d.ts +0 -4
  493. package/src/generators/library-secondary-entry-point/lib/index.js +0 -8
  494. package/src/generators/library-secondary-entry-point/lib/index.js.map +0 -1
  495. package/src/generators/library-secondary-entry-point/lib/normalize-options.d.ts +0 -3
  496. package/src/generators/library-secondary-entry-point/lib/normalize-options.js +0 -29
  497. package/src/generators/library-secondary-entry-point/lib/normalize-options.js.map +0 -1
  498. package/src/generators/library-secondary-entry-point/lib/update-linting-file-patterns.d.ts +0 -3
  499. package/src/generators/library-secondary-entry-point/lib/update-linting-file-patterns.js +0 -17
  500. package/src/generators/library-secondary-entry-point/lib/update-linting-file-patterns.js.map +0 -1
  501. package/src/generators/library-secondary-entry-point/library-secondary-entry-point.d.ts +0 -4
  502. package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +0 -18
  503. package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js.map +0 -1
  504. package/src/generators/library-secondary-entry-point/schema.d.ts +0 -15
  505. package/src/generators/library-secondary-entry-point/schema.json +0 -37
  506. package/src/generators/move/lib/update-module-name.d.ts +0 -11
  507. package/src/generators/move/lib/update-module-name.js +0 -97
  508. package/src/generators/move/lib/update-module-name.js.map +0 -1
  509. package/src/generators/move/lib/update-ng-package.d.ts +0 -3
  510. package/src/generators/move/lib/update-ng-package.js +0 -40
  511. package/src/generators/move/lib/update-ng-package.js.map +0 -1
  512. package/src/generators/move/move.d.ts +0 -11
  513. package/src/generators/move/move.js +0 -29
  514. package/src/generators/move/move.js.map +0 -1
  515. package/src/generators/move/schema.d.ts +0 -7
  516. package/src/generators/move/schema.json +0 -49
  517. package/src/generators/ng-add/compat.d.ts +0 -2
  518. package/src/generators/ng-add/compat.js +0 -6
  519. package/src/generators/ng-add/compat.js.map +0 -1
  520. package/src/generators/ng-add/files/root/apps/__dot__gitkeep +0 -0
  521. package/src/generators/ng-add/files/root/libs/__dot__gitkeep +0 -0
  522. package/src/generators/ng-add/files/root/tools/generators/__dot__gitkeep +0 -0
  523. package/src/generators/ng-add/files/root/tools/tsconfig.tools.json__tmpl__ +0 -12
  524. package/src/generators/ng-add/files/root-karma/karma.conf.js__tmpl__ +0 -43
  525. package/src/generators/ng-add/migrate-from-angular-cli.d.ts +0 -3
  526. package/src/generators/ng-add/migrate-from-angular-cli.js +0 -63
  527. package/src/generators/ng-add/migrate-from-angular-cli.js.map +0 -1
  528. package/src/generators/ng-add/migrators/builders/angular-devkit-karma.migrator.d.ts +0 -9
  529. package/src/generators/ng-add/migrators/builders/angular-devkit-karma.migrator.js +0 -78
  530. package/src/generators/ng-add/migrators/builders/angular-devkit-karma.migrator.js.map +0 -1
  531. package/src/generators/ng-add/migrators/builders/angular-devkit-ng-packagr.migrator.d.ts +0 -10
  532. package/src/generators/ng-add/migrators/builders/angular-devkit-ng-packagr.migrator.js +0 -97
  533. package/src/generators/ng-add/migrators/builders/angular-devkit-ng-packagr.migrator.js.map +0 -1
  534. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.d.ts +0 -12
  535. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.js +0 -117
  536. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.js.map +0 -1
  537. package/src/generators/ng-add/migrators/builders/builder-migrator-class.type.d.ts +0 -6
  538. package/src/generators/ng-add/migrators/builders/builder-migrator-class.type.js +0 -3
  539. package/src/generators/ng-add/migrators/builders/builder-migrator-class.type.js.map +0 -1
  540. package/src/generators/ng-add/migrators/builders/builder.migrator.d.ts +0 -13
  541. package/src/generators/ng-add/migrators/builders/builder.migrator.js +0 -45
  542. package/src/generators/ng-add/migrators/builders/builder.migrator.js.map +0 -1
  543. package/src/generators/ng-add/migrators/builders/index.d.ts +0 -5
  544. package/src/generators/ng-add/migrators/builders/index.js +0 -9
  545. package/src/generators/ng-add/migrators/builders/index.js.map +0 -1
  546. package/src/generators/ng-add/migrators/index.d.ts +0 -2
  547. package/src/generators/ng-add/migrators/index.js +0 -6
  548. package/src/generators/ng-add/migrators/index.js.map +0 -1
  549. package/src/generators/ng-add/migrators/migrator.d.ts +0 -23
  550. package/src/generators/ng-add/migrators/migrator.js +0 -124
  551. package/src/generators/ng-add/migrators/migrator.js.map +0 -1
  552. package/src/generators/ng-add/migrators/projects/app.migrator.d.ts +0 -25
  553. package/src/generators/ng-add/migrators/projects/app.migrator.js +0 -304
  554. package/src/generators/ng-add/migrators/projects/app.migrator.js.map +0 -1
  555. package/src/generators/ng-add/migrators/projects/e2e.migrator.d.ts +0 -38
  556. package/src/generators/ng-add/migrators/projects/e2e.migrator.js +0 -585
  557. package/src/generators/ng-add/migrators/projects/e2e.migrator.js.map +0 -1
  558. package/src/generators/ng-add/migrators/projects/index.d.ts +0 -4
  559. package/src/generators/ng-add/migrators/projects/index.js +0 -8
  560. package/src/generators/ng-add/migrators/projects/index.js.map +0 -1
  561. package/src/generators/ng-add/migrators/projects/lib.migrator.d.ts +0 -11
  562. package/src/generators/ng-add/migrators/projects/lib.migrator.js +0 -62
  563. package/src/generators/ng-add/migrators/projects/lib.migrator.js.map +0 -1
  564. package/src/generators/ng-add/migrators/projects/project.migrator.d.ts +0 -25
  565. package/src/generators/ng-add/migrators/projects/project.migrator.js +0 -185
  566. package/src/generators/ng-add/migrators/projects/project.migrator.js.map +0 -1
  567. package/src/generators/ng-add/ng-add.d.ts +0 -4
  568. package/src/generators/ng-add/ng-add.js +0 -20
  569. package/src/generators/ng-add/ng-add.js.map +0 -1
  570. package/src/generators/ng-add/schema.d.ts +0 -18
  571. package/src/generators/ng-add/schema.json +0 -71
  572. package/src/generators/ng-add/utilities/dependencies.d.ts +0 -2
  573. package/src/generators/ng-add/utilities/dependencies.js +0 -30
  574. package/src/generators/ng-add/utilities/dependencies.js.map +0 -1
  575. package/src/generators/ng-add/utilities/format-files-task.d.ts +0 -2
  576. package/src/generators/ng-add/utilities/format-files-task.js +0 -17
  577. package/src/generators/ng-add/utilities/format-files-task.js.map +0 -1
  578. package/src/generators/ng-add/utilities/index.d.ts +0 -8
  579. package/src/generators/ng-add/utilities/index.js +0 -12
  580. package/src/generators/ng-add/utilities/index.js.map +0 -1
  581. package/src/generators/ng-add/utilities/logger.d.ts +0 -8
  582. package/src/generators/ng-add/utilities/logger.js +0 -21
  583. package/src/generators/ng-add/utilities/logger.js.map +0 -1
  584. package/src/generators/ng-add/utilities/normalize-options.d.ts +0 -4
  585. package/src/generators/ng-add/utilities/normalize-options.js +0 -30
  586. package/src/generators/ng-add/utilities/normalize-options.js.map +0 -1
  587. package/src/generators/ng-add/utilities/projects.d.ts +0 -4
  588. package/src/generators/ng-add/utilities/projects.js +0 -36
  589. package/src/generators/ng-add/utilities/projects.js.map +0 -1
  590. package/src/generators/ng-add/utilities/types.d.ts +0 -31
  591. package/src/generators/ng-add/utilities/types.js +0 -3
  592. package/src/generators/ng-add/utilities/types.js.map +0 -1
  593. package/src/generators/ng-add/utilities/validation-logging.d.ts +0 -3
  594. package/src/generators/ng-add/utilities/validation-logging.js +0 -39
  595. package/src/generators/ng-add/utilities/validation-logging.js.map +0 -1
  596. package/src/generators/ng-add/utilities/workspace.d.ts +0 -17
  597. package/src/generators/ng-add/utilities/workspace.js +0 -305
  598. package/src/generators/ng-add/utilities/workspace.js.map +0 -1
  599. package/src/generators/ngrx/compat.d.ts +0 -2
  600. package/src/generators/ngrx/compat.js +0 -7
  601. package/src/generators/ngrx/compat.js.map +0 -1
  602. package/src/generators/ngrx/files/base/__directory__/__fileName__.actions.ts__tmpl__ +0 -16
  603. package/src/generators/ngrx/files/base/__directory__/__fileName__.effects.spec.ts__tmpl__ +0 -37
  604. package/src/generators/ngrx/files/base/__directory__/__fileName__.effects.ts__tmpl__ +0 -22
  605. package/src/generators/ngrx/files/base/__directory__/__fileName__.facade.spec.ts__tmpl__ +0 -99
  606. package/src/generators/ngrx/files/base/__directory__/__fileName__.facade.ts__tmpl__ +0 -27
  607. package/src/generators/ngrx/files/base/__directory__/__fileName__.models.ts__tmpl__ +0 -7
  608. package/src/generators/ngrx/files/base/__directory__/__fileName__.reducer.spec.ts__tmpl__ +0 -37
  609. package/src/generators/ngrx/files/base/__directory__/__fileName__.reducer.ts__tmpl__ +0 -41
  610. package/src/generators/ngrx/files/base/__directory__/__fileName__.selectors.spec.ts__tmpl__ +0 -58
  611. package/src/generators/ngrx/files/base/__directory__/__fileName__.selectors.ts__tmpl__ +0 -38
  612. package/src/generators/ngrx/files/no-inject/__directory__/__fileName__.effects.ts__tmpl__ +0 -22
  613. package/src/generators/ngrx/files/no-inject/__directory__/__fileName__.facade.ts__tmpl__ +0 -27
  614. package/src/generators/ngrx/lib/add-exports-barrel.d.ts +0 -6
  615. package/src/generators/ngrx/lib/add-exports-barrel.js +0 -46
  616. package/src/generators/ngrx/lib/add-exports-barrel.js.map +0 -1
  617. package/src/generators/ngrx/lib/add-imports-to-module.d.ts +0 -3
  618. package/src/generators/ngrx/lib/add-imports-to-module.js +0 -168
  619. package/src/generators/ngrx/lib/add-imports-to-module.js.map +0 -1
  620. package/src/generators/ngrx/lib/add-ngrx-to-package-json.d.ts +0 -3
  621. package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +0 -25
  622. package/src/generators/ngrx/lib/add-ngrx-to-package-json.js.map +0 -1
  623. package/src/generators/ngrx/lib/generate-files.d.ts +0 -6
  624. package/src/generators/ngrx/lib/generate-files.js +0 -24
  625. package/src/generators/ngrx/lib/generate-files.js.map +0 -1
  626. package/src/generators/ngrx/lib/index.d.ts +0 -6
  627. package/src/generators/ngrx/lib/index.js +0 -16
  628. package/src/generators/ngrx/lib/index.js.map +0 -1
  629. package/src/generators/ngrx/lib/normalize-options.d.ts +0 -7
  630. package/src/generators/ngrx/lib/normalize-options.js +0 -24
  631. package/src/generators/ngrx/lib/normalize-options.js.map +0 -1
  632. package/src/generators/ngrx/lib/validate-options.d.ts +0 -3
  633. package/src/generators/ngrx/lib/validate-options.js +0 -39
  634. package/src/generators/ngrx/lib/validate-options.js.map +0 -1
  635. package/src/generators/ngrx/ngrx.d.ts +0 -4
  636. package/src/generators/ngrx/ngrx.js +0 -30
  637. package/src/generators/ngrx/ngrx.js.map +0 -1
  638. package/src/generators/ngrx/schema.d.ts +0 -14
  639. package/src/generators/ngrx/schema.json +0 -93
  640. package/src/generators/pipe/files/__pipeFileName__/__pipeFileName__.pipe.spec.ts__tpl__ +0 -8
  641. package/src/generators/pipe/files/__pipeFileName__/__pipeFileName__.pipe.ts__tpl__ +0 -13
  642. package/src/generators/pipe/pipe.d.ts +0 -4
  643. package/src/generators/pipe/pipe.js +0 -45
  644. package/src/generators/pipe/pipe.js.map +0 -1
  645. package/src/generators/pipe/schema.d.ts +0 -12
  646. package/src/generators/pipe/schema.json +0 -73
  647. package/src/generators/remote/files/src/main.server.ts__tmpl__ +0 -74
  648. package/src/generators/remote/files/webpack.server.config.js__tmpl__ +0 -3
  649. package/src/generators/remote/lib/add-ssr.d.ts +0 -5
  650. package/src/generators/remote/lib/add-ssr.js +0 -48
  651. package/src/generators/remote/lib/add-ssr.js.map +0 -1
  652. package/src/generators/remote/lib/find-next-available-port.d.ts +0 -2
  653. package/src/generators/remote/lib/find-next-available-port.js +0 -19
  654. package/src/generators/remote/lib/find-next-available-port.js.map +0 -1
  655. package/src/generators/remote/lib/index.d.ts +0 -2
  656. package/src/generators/remote/lib/index.js +0 -6
  657. package/src/generators/remote/lib/index.js.map +0 -1
  658. package/src/generators/remote/remote.compat.d.ts +0 -2
  659. package/src/generators/remote/remote.compat.js +0 -7
  660. package/src/generators/remote/remote.compat.js.map +0 -1
  661. package/src/generators/remote/remote.d.ts +0 -4
  662. package/src/generators/remote/remote.js +0 -54
  663. package/src/generators/remote/remote.js.map +0 -1
  664. package/src/generators/remote/schema.d.ts +0 -29
  665. package/src/generators/remote/schema.json +0 -167
  666. package/src/generators/scam/lib/convert-component-to-scam.d.ts +0 -4
  667. package/src/generators/scam/lib/convert-component-to-scam.js +0 -48
  668. package/src/generators/scam/lib/convert-component-to-scam.js.map +0 -1
  669. package/src/generators/scam/lib/index.d.ts +0 -2
  670. package/src/generators/scam/lib/index.js +0 -6
  671. package/src/generators/scam/lib/index.js.map +0 -1
  672. package/src/generators/scam/lib/normalize-options.d.ts +0 -3
  673. package/src/generators/scam/lib/normalize-options.js +0 -14
  674. package/src/generators/scam/lib/normalize-options.js.map +0 -1
  675. package/src/generators/scam/scam.compat.d.ts +0 -2
  676. package/src/generators/scam/scam.compat.js +0 -7
  677. package/src/generators/scam/scam.compat.js.map +0 -1
  678. package/src/generators/scam/scam.d.ts +0 -4
  679. package/src/generators/scam/scam.js +0 -39
  680. package/src/generators/scam/scam.js.map +0 -1
  681. package/src/generators/scam/schema.d.ts +0 -26
  682. package/src/generators/scam/schema.json +0 -129
  683. package/src/generators/scam-directive/lib/convert-directive-to-scam.d.ts +0 -4
  684. package/src/generators/scam-directive/lib/convert-directive-to-scam.js +0 -47
  685. package/src/generators/scam-directive/lib/convert-directive-to-scam.js.map +0 -1
  686. package/src/generators/scam-directive/lib/index.d.ts +0 -2
  687. package/src/generators/scam-directive/lib/index.js +0 -6
  688. package/src/generators/scam-directive/lib/index.js.map +0 -1
  689. package/src/generators/scam-directive/lib/normalize-options.d.ts +0 -3
  690. package/src/generators/scam-directive/lib/normalize-options.js +0 -14
  691. package/src/generators/scam-directive/lib/normalize-options.js.map +0 -1
  692. package/src/generators/scam-directive/scam-directive.compat.d.ts +0 -2
  693. package/src/generators/scam-directive/scam-directive.compat.js +0 -7
  694. package/src/generators/scam-directive/scam-directive.compat.js.map +0 -1
  695. package/src/generators/scam-directive/scam-directive.d.ts +0 -4
  696. package/src/generators/scam-directive/scam-directive.js +0 -38
  697. package/src/generators/scam-directive/scam-directive.js.map +0 -1
  698. package/src/generators/scam-directive/schema.d.ts +0 -19
  699. package/src/generators/scam-directive/schema.json +0 -83
  700. package/src/generators/scam-pipe/lib/convert-pipe-to-scam.d.ts +0 -4
  701. package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +0 -47
  702. package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js.map +0 -1
  703. package/src/generators/scam-pipe/lib/index.d.ts +0 -2
  704. package/src/generators/scam-pipe/lib/index.js +0 -6
  705. package/src/generators/scam-pipe/lib/index.js.map +0 -1
  706. package/src/generators/scam-pipe/lib/normalize-options.d.ts +0 -3
  707. package/src/generators/scam-pipe/lib/normalize-options.js +0 -14
  708. package/src/generators/scam-pipe/lib/normalize-options.js.map +0 -1
  709. package/src/generators/scam-pipe/scam-pipe.compat.d.ts +0 -2
  710. package/src/generators/scam-pipe/scam-pipe.compat.js +0 -7
  711. package/src/generators/scam-pipe/scam-pipe.compat.js.map +0 -1
  712. package/src/generators/scam-pipe/scam-pipe.d.ts +0 -4
  713. package/src/generators/scam-pipe/scam-pipe.js +0 -36
  714. package/src/generators/scam-pipe/scam-pipe.js.map +0 -1
  715. package/src/generators/scam-pipe/schema.d.ts +0 -17
  716. package/src/generators/scam-pipe/schema.json +0 -64
  717. package/src/generators/scam-to-standalone/compat.d.ts +0 -2
  718. package/src/generators/scam-to-standalone/compat.js +0 -7
  719. package/src/generators/scam-to-standalone/compat.js.map +0 -1
  720. package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.d.ts +0 -3
  721. package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js +0 -34
  722. package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js.map +0 -1
  723. package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.d.ts +0 -6
  724. package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js +0 -19
  725. package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js.map +0 -1
  726. package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.d.ts +0 -9
  727. package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js +0 -65
  728. package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js.map +0 -1
  729. package/src/generators/scam-to-standalone/lib/get-target-project.d.ts +0 -2
  730. package/src/generators/scam-to-standalone/lib/get-target-project.js +0 -15
  731. package/src/generators/scam-to-standalone/lib/get-target-project.js.map +0 -1
  732. package/src/generators/scam-to-standalone/lib/index.d.ts +0 -8
  733. package/src/generators/scam-to-standalone/lib/index.js +0 -12
  734. package/src/generators/scam-to-standalone/lib/index.js.map +0 -1
  735. package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.d.ts +0 -2
  736. package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js +0 -20
  737. package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js.map +0 -1
  738. package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.d.ts +0 -2
  739. package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js +0 -9
  740. package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js.map +0 -1
  741. package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.d.ts +0 -2
  742. package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js +0 -12
  743. package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js.map +0 -1
  744. package/src/generators/scam-to-standalone/lib/verify-module-is-scam.d.ts +0 -1
  745. package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js +0 -13
  746. package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js.map +0 -1
  747. package/src/generators/scam-to-standalone/scam-to-standalone.d.ts +0 -4
  748. package/src/generators/scam-to-standalone/scam-to-standalone.js +0 -38
  749. package/src/generators/scam-to-standalone/scam-to-standalone.js.map +0 -1
  750. package/src/generators/scam-to-standalone/schema.d.ts +0 -5
  751. package/src/generators/scam-to-standalone/schema.json +0 -32
  752. package/src/generators/setup-mf/files/entry-module-files/entry.component.ts__tmpl__ +0 -9
  753. package/src/generators/setup-mf/files/entry-module-files/entry.module.ts__tmpl__ +0 -18
  754. package/src/generators/setup-mf/files/entry-module-files/entry.routes.ts__tmpl__ +0 -4
  755. package/src/generators/setup-mf/files/host-files/app.component.spec.ts__tmpl__ +0 -40
  756. package/src/generators/setup-mf/files/standalone-entry-component-files/entry.component.ts__tmpl__ +0 -13
  757. package/src/generators/setup-mf/files/standalone-entry-component-files/entry.routes.ts__tmpl__ +0 -4
  758. package/src/generators/setup-mf/files/webpack/module-federation.config.js__tmpl__ +0 -8
  759. package/src/generators/setup-mf/files/webpack/webpack.config.js__tmpl__ +0 -3
  760. package/src/generators/setup-mf/files/webpack/webpack.prod.config.js__tmpl__ +0 -15
  761. package/src/generators/setup-mf/lib/add-cypress-workaround.d.ts +0 -3
  762. package/src/generators/setup-mf/lib/add-cypress-workaround.js +0 -42
  763. package/src/generators/setup-mf/lib/add-cypress-workaround.js.map +0 -1
  764. package/src/generators/setup-mf/lib/add-remote-entry.d.ts +0 -3
  765. package/src/generators/setup-mf/lib/add-remote-entry.js +0 -35
  766. package/src/generators/setup-mf/lib/add-remote-entry.js.map +0 -1
  767. package/src/generators/setup-mf/lib/add-remote-to-host.d.ts +0 -4
  768. package/src/generators/setup-mf/lib/add-remote-to-host.js +0 -96
  769. package/src/generators/setup-mf/lib/add-remote-to-host.js.map +0 -1
  770. package/src/generators/setup-mf/lib/change-build-target.d.ts +0 -3
  771. package/src/generators/setup-mf/lib/change-build-target.js +0 -17
  772. package/src/generators/setup-mf/lib/change-build-target.js.map +0 -1
  773. package/src/generators/setup-mf/lib/fix-bootstrap.d.ts +0 -3
  774. package/src/generators/setup-mf/lib/fix-bootstrap.js +0 -48
  775. package/src/generators/setup-mf/lib/fix-bootstrap.js.map +0 -1
  776. package/src/generators/setup-mf/lib/generate-config.d.ts +0 -6
  777. package/src/generators/setup-mf/lib/generate-config.js +0 -22
  778. package/src/generators/setup-mf/lib/generate-config.js.map +0 -1
  779. package/src/generators/setup-mf/lib/get-remotes-with-ports.d.ts +0 -6
  780. package/src/generators/setup-mf/lib/get-remotes-with-ports.js +0 -23
  781. package/src/generators/setup-mf/lib/get-remotes-with-ports.js.map +0 -1
  782. package/src/generators/setup-mf/lib/index.d.ts +0 -12
  783. package/src/generators/setup-mf/lib/index.js +0 -16
  784. package/src/generators/setup-mf/lib/index.js.map +0 -1
  785. package/src/generators/setup-mf/lib/remove-dead-code-from-remote.d.ts +0 -3
  786. package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +0 -61
  787. package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js.map +0 -1
  788. package/src/generators/setup-mf/lib/set-tsconfig-target.d.ts +0 -3
  789. package/src/generators/setup-mf/lib/set-tsconfig-target.js +0 -11
  790. package/src/generators/setup-mf/lib/set-tsconfig-target.js.map +0 -1
  791. package/src/generators/setup-mf/lib/setup-host-if-dynamic.d.ts +0 -3
  792. package/src/generators/setup-mf/lib/setup-host-if-dynamic.js +0 -15
  793. package/src/generators/setup-mf/lib/setup-host-if-dynamic.js.map +0 -1
  794. package/src/generators/setup-mf/lib/setup-serve-target.d.ts +0 -3
  795. package/src/generators/setup-mf/lib/setup-serve-target.js +0 -32
  796. package/src/generators/setup-mf/lib/setup-serve-target.js.map +0 -1
  797. package/src/generators/setup-mf/lib/update-host-app-routes.d.ts +0 -3
  798. package/src/generators/setup-mf/lib/update-host-app-routes.js +0 -37
  799. package/src/generators/setup-mf/lib/update-host-app-routes.js.map +0 -1
  800. package/src/generators/setup-mf/schema.d.ts +0 -15
  801. package/src/generators/setup-mf/schema.json +0 -81
  802. package/src/generators/setup-mf/setup-mf.compat.d.ts +0 -2
  803. package/src/generators/setup-mf/setup-mf.compat.js +0 -7
  804. package/src/generators/setup-mf/setup-mf.compat.js.map +0 -1
  805. package/src/generators/setup-mf/setup-mf.d.ts +0 -4
  806. package/src/generators/setup-mf/setup-mf.js +0 -48
  807. package/src/generators/setup-mf/setup-mf.js.map +0 -1
  808. package/src/generators/setup-ssr/files/__serverFileName__ +0 -60
  809. package/src/generators/setup-ssr/files/src/__main__ +0 -11
  810. package/src/generators/setup-ssr/files/src/app/__rootModuleFileName__ +0 -14
  811. package/src/generators/setup-ssr/files/src/main.ts__tpl__ +0 -16
  812. package/src/generators/setup-ssr/files/tsconfig.server.json__tpl__ +0 -15
  813. package/src/generators/setup-ssr/lib/generate-files.d.ts +0 -3
  814. package/src/generators/setup-ssr/lib/generate-files.js +0 -11
  815. package/src/generators/setup-ssr/lib/generate-files.js.map +0 -1
  816. package/src/generators/setup-ssr/lib/index.d.ts +0 -4
  817. package/src/generators/setup-ssr/lib/index.js +0 -8
  818. package/src/generators/setup-ssr/lib/index.js.map +0 -1
  819. package/src/generators/setup-ssr/lib/normalize-options.d.ts +0 -12
  820. package/src/generators/setup-ssr/lib/normalize-options.js +0 -19
  821. package/src/generators/setup-ssr/lib/normalize-options.js.map +0 -1
  822. package/src/generators/setup-ssr/lib/update-app-module.d.ts +0 -3
  823. package/src/generators/setup-ssr/lib/update-app-module.js +0 -23
  824. package/src/generators/setup-ssr/lib/update-app-module.js.map +0 -1
  825. package/src/generators/setup-ssr/lib/update-project-config.d.ts +0 -3
  826. package/src/generators/setup-ssr/lib/update-project-config.js +0 -73
  827. package/src/generators/setup-ssr/lib/update-project-config.js.map +0 -1
  828. package/src/generators/setup-ssr/schema.d.ts +0 -10
  829. package/src/generators/setup-ssr/schema.json +0 -60
  830. package/src/generators/setup-ssr/setup-ssr.compat.d.ts +0 -2
  831. package/src/generators/setup-ssr/setup-ssr.compat.js +0 -7
  832. package/src/generators/setup-ssr/setup-ssr.compat.js.map +0 -1
  833. package/src/generators/setup-ssr/setup-ssr.d.ts +0 -4
  834. package/src/generators/setup-ssr/setup-ssr.js +0 -31
  835. package/src/generators/setup-ssr/setup-ssr.js.map +0 -1
  836. package/src/generators/setup-tailwind/files/v2/tailwind.config.js__tmpl__ +0 -18
  837. package/src/generators/setup-tailwind/files/v3/tailwind.config.js__tmpl__ +0 -14
  838. package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.d.ts +0 -3
  839. package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js +0 -32
  840. package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js.map +0 -1
  841. package/src/generators/setup-tailwind/lib/add-tailwind-config.d.ts +0 -3
  842. package/src/generators/setup-tailwind/lib/add-tailwind-config.js +0 -18
  843. package/src/generators/setup-tailwind/lib/add-tailwind-config.js.map +0 -1
  844. package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.d.ts +0 -2
  845. package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js +0 -15
  846. package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js.map +0 -1
  847. package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.d.ts +0 -2
  848. package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js +0 -21
  849. package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js.map +0 -1
  850. package/src/generators/setup-tailwind/lib/index.d.ts +0 -6
  851. package/src/generators/setup-tailwind/lib/index.js +0 -10
  852. package/src/generators/setup-tailwind/lib/index.js.map +0 -1
  853. package/src/generators/setup-tailwind/lib/normalize-options.d.ts +0 -2
  854. package/src/generators/setup-tailwind/lib/normalize-options.js +0 -8
  855. package/src/generators/setup-tailwind/lib/normalize-options.js.map +0 -1
  856. package/src/generators/setup-tailwind/lib/update-application-styles.d.ts +0 -3
  857. package/src/generators/setup-tailwind/lib/update-application-styles.js +0 -54
  858. package/src/generators/setup-tailwind/lib/update-application-styles.js.map +0 -1
  859. package/src/generators/setup-tailwind/schema.d.ts +0 -11
  860. package/src/generators/setup-tailwind/schema.json +0 -42
  861. package/src/generators/setup-tailwind/setup-tailwind.compat.d.ts +0 -2
  862. package/src/generators/setup-tailwind/setup-tailwind.compat.js +0 -7
  863. package/src/generators/setup-tailwind/setup-tailwind.compat.js.map +0 -1
  864. package/src/generators/setup-tailwind/setup-tailwind.d.ts +0 -4
  865. package/src/generators/setup-tailwind/setup-tailwind.js +0 -33
  866. package/src/generators/setup-tailwind/setup-tailwind.js.map +0 -1
  867. package/src/generators/stories/compat.d.ts +0 -2
  868. package/src/generators/stories/compat.js +0 -7
  869. package/src/generators/stories/compat.js.map +0 -1
  870. package/src/generators/stories/lib/get-e2e-project.d.ts +0 -2
  871. package/src/generators/stories/lib/get-e2e-project.js +0 -16
  872. package/src/generators/stories/lib/get-e2e-project.js.map +0 -1
  873. package/src/generators/stories/schema.d.ts +0 -7
  874. package/src/generators/stories/schema.json +0 -56
  875. package/src/generators/stories/stories.d.ts +0 -4
  876. package/src/generators/stories/stories.js +0 -65
  877. package/src/generators/stories/stories.js.map +0 -1
  878. package/src/generators/storybook-configuration/compat.d.ts +0 -2
  879. package/src/generators/storybook-configuration/compat.js +0 -7
  880. package/src/generators/storybook-configuration/compat.js.map +0 -1
  881. package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.d.ts +0 -1
  882. package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js +0 -16
  883. package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js.map +0 -1
  884. package/src/generators/storybook-configuration/lib/generate-stories.d.ts +0 -3
  885. package/src/generators/storybook-configuration/lib/generate-stories.js +0 -22
  886. package/src/generators/storybook-configuration/lib/generate-stories.js.map +0 -1
  887. package/src/generators/storybook-configuration/lib/generate-storybook-configuration.d.ts +0 -3
  888. package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +0 -25
  889. package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js.map +0 -1
  890. package/src/generators/storybook-configuration/lib/validate-options.d.ts +0 -2
  891. package/src/generators/storybook-configuration/lib/validate-options.js +0 -10
  892. package/src/generators/storybook-configuration/lib/validate-options.js.map +0 -1
  893. package/src/generators/storybook-configuration/schema.d.ts +0 -16
  894. package/src/generators/storybook-configuration/schema.json +0 -101
  895. package/src/generators/storybook-configuration/storybook-configuration.d.ts +0 -4
  896. package/src/generators/storybook-configuration/storybook-configuration.js +0 -28
  897. package/src/generators/storybook-configuration/storybook-configuration.js.map +0 -1
  898. package/src/generators/utils/create-ts-config.d.ts +0 -8
  899. package/src/generators/utils/create-ts-config.js +0 -36
  900. package/src/generators/utils/create-ts-config.js.map +0 -1
  901. package/src/generators/utils/dependencies.d.ts +0 -2
  902. package/src/generators/utils/dependencies.js +0 -16
  903. package/src/generators/utils/dependencies.js.map +0 -1
  904. package/src/generators/utils/entry-point.d.ts +0 -2
  905. package/src/generators/utils/entry-point.js +0 -22
  906. package/src/generators/utils/entry-point.js.map +0 -1
  907. package/src/generators/utils/export-scam.d.ts +0 -9
  908. package/src/generators/utils/export-scam.js +0 -38
  909. package/src/generators/utils/export-scam.js.map +0 -1
  910. package/src/generators/utils/file-info.d.ts +0 -16
  911. package/src/generators/utils/file-info.js +0 -30
  912. package/src/generators/utils/file-info.js.map +0 -1
  913. package/src/generators/utils/find-module.d.ts +0 -4
  914. package/src/generators/utils/find-module.js +0 -62
  915. package/src/generators/utils/find-module.js.map +0 -1
  916. package/src/generators/utils/get-new-project-name.d.ts +0 -6
  917. package/src/generators/utils/get-new-project-name.js +0 -13
  918. package/src/generators/utils/get-new-project-name.js.map +0 -1
  919. package/src/generators/utils/index.d.ts +0 -2
  920. package/src/generators/utils/index.js +0 -6
  921. package/src/generators/utils/index.js.map +0 -1
  922. package/src/generators/utils/insert-ngmodule-import.d.ts +0 -4
  923. package/src/generators/utils/insert-ngmodule-import.js +0 -164
  924. package/src/generators/utils/insert-ngmodule-import.js.map +0 -1
  925. package/src/generators/utils/path.d.ts +0 -4
  926. package/src/generators/utils/path.js +0 -32
  927. package/src/generators/utils/path.js.map +0 -1
  928. package/src/generators/utils/project.d.ts +0 -3
  929. package/src/generators/utils/project.js +0 -37
  930. package/src/generators/utils/project.js.map +0 -1
  931. package/src/generators/utils/storybook-ast/component-info.d.ts +0 -11
  932. package/src/generators/utils/storybook-ast/component-info.js +0 -167
  933. package/src/generators/utils/storybook-ast/component-info.js.map +0 -1
  934. package/src/generators/utils/storybook-ast/entry-point.d.ts +0 -7
  935. package/src/generators/utils/storybook-ast/entry-point.js +0 -65
  936. package/src/generators/utils/storybook-ast/entry-point.js.map +0 -1
  937. package/src/generators/utils/storybook-ast/module-info.d.ts +0 -5
  938. package/src/generators/utils/storybook-ast/module-info.js +0 -222
  939. package/src/generators/utils/storybook-ast/module-info.js.map +0 -1
  940. package/src/generators/utils/storybook-ast/storybook-inputs.d.ts +0 -12
  941. package/src/generators/utils/storybook-ast/storybook-inputs.js +0 -80
  942. package/src/generators/utils/storybook-ast/storybook-inputs.js.map +0 -1
  943. package/src/generators/utils/storybook-ast/tree-utilities.d.ts +0 -2
  944. package/src/generators/utils/storybook-ast/tree-utilities.js +0 -32
  945. package/src/generators/utils/storybook-ast/tree-utilities.js.map +0 -1
  946. package/src/generators/utils/testing.d.ts +0 -10
  947. package/src/generators/utils/testing.js +0 -232
  948. package/src/generators/utils/testing.js.map +0 -1
  949. package/src/generators/utils/types.d.ts +0 -1
  950. package/src/generators/utils/types.js +0 -3
  951. package/src/generators/utils/types.js.map +0 -1
  952. package/src/generators/utils/version-utils.d.ts +0 -16
  953. package/src/generators/utils/version-utils.js +0 -76
  954. package/src/generators/utils/version-utils.js.map +0 -1
  955. package/src/generators/utils/warn-for-schematic-usage.d.ts +0 -1
  956. package/src/generators/utils/warn-for-schematic-usage.js +0 -9
  957. package/src/generators/utils/warn-for-schematic-usage.js.map +0 -1
  958. package/src/generators/web-worker/compat.d.ts +0 -2
  959. package/src/generators/web-worker/compat.js +0 -7
  960. package/src/generators/web-worker/compat.js.map +0 -1
  961. package/src/generators/web-worker/files/config/tsconfig.worker.json__tpl__ +0 -14
  962. package/src/generators/web-worker/files/worker/__name__.worker.ts__tpl__ +0 -6
  963. package/src/generators/web-worker/lib/add-snippet.d.ts +0 -2
  964. package/src/generators/web-worker/lib/add-snippet.js +0 -34
  965. package/src/generators/web-worker/lib/add-snippet.js.map +0 -1
  966. package/src/generators/web-worker/lib/index.d.ts +0 -2
  967. package/src/generators/web-worker/lib/index.js +0 -6
  968. package/src/generators/web-worker/lib/index.js.map +0 -1
  969. package/src/generators/web-worker/lib/normalize-options.d.ts +0 -3
  970. package/src/generators/web-worker/lib/normalize-options.js +0 -23
  971. package/src/generators/web-worker/lib/normalize-options.js.map +0 -1
  972. package/src/generators/web-worker/schema.d.ts +0 -7
  973. package/src/generators/web-worker/schema.json +0 -48
  974. package/src/generators/web-worker/web-worker.d.ts +0 -4
  975. package/src/generators/web-worker/web-worker.js +0 -38
  976. package/src/generators/web-worker/web-worker.js.map +0 -1
  977. package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.d.ts +0 -2
  978. package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js +0 -27
  979. package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js.map +0 -1
  980. package/src/migrations/update-14-2-0/update-angular-cli.d.ts +0 -2
  981. package/src/migrations/update-14-2-0/update-angular-cli.js +0 -27
  982. package/src/migrations/update-14-2-0/update-angular-cli.js.map +0 -1
  983. package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.d.ts +0 -2
  984. package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js +0 -39
  985. package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js.map +0 -1
  986. package/src/migrations/update-14-2-0/update-ngcc-target.d.ts +0 -2
  987. package/src/migrations/update-14-2-0/update-ngcc-target.js +0 -22
  988. package/src/migrations/update-14-2-0/update-ngcc-target.js.map +0 -1
  989. package/src/migrations/update-14-2-0/update-router-initial-navigation.d.ts +0 -2
  990. package/src/migrations/update-14-2-0/update-router-initial-navigation.js +0 -79
  991. package/src/migrations/update-14-2-0/update-router-initial-navigation.js.map +0 -1
  992. package/src/migrations/update-14-2-0/update-tsconfig-target.d.ts +0 -2
  993. package/src/migrations/update-14-2-0/update-tsconfig-target.js +0 -164
  994. package/src/migrations/update-14-2-0/update-tsconfig-target.js.map +0 -1
  995. package/src/migrations/update-14-5-0/migrate-mfe-to-mf.d.ts +0 -5
  996. package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js +0 -95
  997. package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js.map +0 -1
  998. package/src/migrations/update-14-5-2/update-angular-cli.d.ts +0 -2
  999. package/src/migrations/update-14-5-2/update-angular-cli.js +0 -27
  1000. package/src/migrations/update-14-5-2/update-angular-cli.js.map +0 -1
  1001. package/src/migrations/update-14-6-0/update-angular-cli.d.ts +0 -2
  1002. package/src/migrations/update-14-6-0/update-angular-cli.js +0 -27
  1003. package/src/migrations/update-14-6-0/update-angular-cli.js.map +0 -1
  1004. package/src/migrations/update-14-8-0/rename-webpack-server.d.ts +0 -2
  1005. package/src/migrations/update-14-8-0/rename-webpack-server.js +0 -22
  1006. package/src/migrations/update-14-8-0/rename-webpack-server.js.map +0 -1
  1007. package/src/migrations/update-15-0-0/add-karma-inputs.d.ts +0 -2
  1008. package/src/migrations/update-15-0-0/add-karma-inputs.js +0 -47
  1009. package/src/migrations/update-15-0-0/add-karma-inputs.js.map +0 -1
  1010. package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.d.ts +0 -2
  1011. package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js +0 -94
  1012. package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js.map +0 -1
  1013. package/src/migrations/update-15-2-0/remove-browserlist-config.d.ts +0 -3
  1014. package/src/migrations/update-15-2-0/remove-browserlist-config.js +0 -62
  1015. package/src/migrations/update-15-2-0/remove-browserlist-config.js.map +0 -1
  1016. package/src/migrations/update-15-2-0/remove-platform-server-exports.d.ts +0 -2
  1017. package/src/migrations/update-15-2-0/remove-platform-server-exports.js +0 -65
  1018. package/src/migrations/update-15-2-0/remove-platform-server-exports.js.map +0 -1
  1019. package/src/migrations/update-15-2-0/update-angular-cli.d.ts +0 -2
  1020. package/src/migrations/update-15-2-0/update-angular-cli.js +0 -27
  1021. package/src/migrations/update-15-2-0/update-angular-cli.js.map +0 -1
  1022. package/src/migrations/update-15-2-0/update-karma-main-file.d.ts +0 -2
  1023. package/src/migrations/update-15-2-0/update-karma-main-file.js +0 -73
  1024. package/src/migrations/update-15-2-0/update-karma-main-file.js.map +0 -1
  1025. package/src/migrations/update-15-2-0/update-typescript-target.d.ts +0 -2
  1026. package/src/migrations/update-15-2-0/update-typescript-target.js +0 -52
  1027. package/src/migrations/update-15-2-0/update-typescript-target.js.map +0 -1
  1028. package/src/migrations/update-15-2-0/update-workspace-config.d.ts +0 -2
  1029. package/src/migrations/update-15-2-0/update-workspace-config.js +0 -28
  1030. package/src/migrations/update-15-2-0/update-workspace-config.js.map +0 -1
  1031. package/src/migrations/update-15-5-0/update-angular-cli.d.ts +0 -2
  1032. package/src/migrations/update-15-5-0/update-angular-cli.js +0 -27
  1033. package/src/migrations/update-15-5-0/update-angular-cli.js.map +0 -1
  1034. package/src/migrations/update-15-7-0/install-required-packages.d.ts +0 -2
  1035. package/src/migrations/update-15-7-0/install-required-packages.js +0 -39
  1036. package/src/migrations/update-15-7-0/install-required-packages.js.map +0 -1
  1037. package/src/migrations/update-15-8-0/update-angular-cli.d.ts +0 -2
  1038. package/src/migrations/update-15-8-0/update-angular-cli.js +0 -27
  1039. package/src/migrations/update-15-8-0/update-angular-cli.js.map +0 -1
  1040. package/src/migrations/update-15-9-0/update-file-server-executor.d.ts +0 -2
  1041. package/src/migrations/update-15-9-0/update-file-server-executor.js +0 -47
  1042. package/src/migrations/update-15-9-0/update-file-server-executor.js.map +0 -1
  1043. package/src/migrations/update-15-9-0/update-testing-tsconfig.d.ts +0 -3
  1044. package/src/migrations/update-15-9-0/update-testing-tsconfig.js +0 -39
  1045. package/src/migrations/update-15-9-0/update-testing-tsconfig.js.map +0 -1
  1046. package/src/runtime/nx/data-persistence.d.ts +0 -271
  1047. package/src/runtime/nx/data-persistence.js +0 -351
  1048. package/src/runtime/nx/data-persistence.js.map +0 -1
  1049. package/src/utils/backward-compatible-versions.d.ts +0 -6
  1050. package/src/utils/backward-compatible-versions.js +0 -33
  1051. package/src/utils/backward-compatible-versions.js.map +0 -1
  1052. package/src/utils/cli-config-utils.d.ts +0 -1
  1053. package/src/utils/cli-config-utils.js +0 -46
  1054. package/src/utils/cli-config-utils.js.map +0 -1
  1055. package/src/utils/file-change-recorder.d.ts +0 -16
  1056. package/src/utils/file-change-recorder.js +0 -37
  1057. package/src/utils/file-change-recorder.js.map +0 -1
  1058. package/src/utils/get-mf-projects.d.ts +0 -4
  1059. package/src/utils/get-mf-projects.js +0 -33
  1060. package/src/utils/get-mf-projects.js.map +0 -1
  1061. package/src/utils/mf/utils.d.ts +0 -13
  1062. package/src/utils/mf/utils.js +0 -64
  1063. package/src/utils/mf/utils.js.map +0 -1
  1064. package/src/utils/mf/with-module-federation-ssr.d.ts +0 -2
  1065. package/src/utils/mf/with-module-federation-ssr.js +0 -45
  1066. package/src/utils/mf/with-module-federation-ssr.js.map +0 -1
  1067. package/src/utils/mf/with-module-federation.d.ts +0 -2
  1068. package/src/utils/mf/with-module-federation.js +0 -43
  1069. package/src/utils/mf/with-module-federation.js.map +0 -1
  1070. package/src/utils/nx-devkit/ast-utils.d.ts +0 -32
  1071. package/src/utils/nx-devkit/ast-utils.js +0 -503
  1072. package/src/utils/nx-devkit/ast-utils.js.map +0 -1
  1073. package/src/utils/nx-devkit/route-utils.d.ts +0 -3
  1074. package/src/utils/nx-devkit/route-utils.js +0 -87
  1075. package/src/utils/nx-devkit/route-utils.js.map +0 -1
  1076. package/src/utils/nx-devkit/testing.d.ts +0 -14
  1077. package/src/utils/nx-devkit/testing.js +0 -89
  1078. package/src/utils/nx-devkit/testing.js.map +0 -1
  1079. package/src/utils/test-runners.d.ts +0 -8
  1080. package/src/utils/test-runners.js +0 -14
  1081. package/src/utils/test-runners.js.map +0 -1
  1082. package/src/utils/version-utils.d.ts +0 -3
  1083. package/src/utils/version-utils.js +0 -22
  1084. package/src/utils/version-utils.js.map +0 -1
  1085. package/src/utils/versions.d.ts +0 -26
  1086. package/src/utils/versions.js +0 -30
  1087. package/src/utils/versions.js.map +0 -1
  1088. package/testing/src/testing-utils.d.ts +0 -31
  1089. package/testing/src/testing-utils.js +0 -41
  1090. package/testing/src/testing-utils.js.map +0 -1
@@ -1,351 +1,8 @@
1
- import { ROUTER_NAVIGATION } from '@ngrx/router-store';
2
- import { isObservable, of } from 'rxjs';
3
- import { concatMap, groupBy, mergeMap, switchMap, filter, map, catchError } from 'rxjs/operators';
4
-
5
- /**
6
- *
7
- * @whatItDoes Handles pessimistic updates (updating the server first).
8
- *
9
- * Updating the server, when implemented naively, suffers from race conditions and poor error handling.
10
- *
11
- * `pessimisticUpdate` addresses these problems. It runs all fetches in order, which removes race conditions
12
- * and forces the developer to handle errors.
13
- *
14
- * ## Example:
15
- *
16
- * ```typescript
17
- * @Injectable()
18
- * class TodoEffects {
19
- * updateTodo$ = createEffect(() =>
20
- * this.actions$.pipe(
21
- * ofType('UPDATE_TODO'),
22
- * pessimisticUpdate({
23
- * // provides an action
24
- * run: (action: UpdateTodo) => {
25
- * // update the backend first, and then dispatch an action that will
26
- * // update the client side
27
- * return this.backend.updateTodo(action.todo.id, action.todo).pipe(
28
- * map((updated) => ({
29
- * type: 'UPDATE_TODO_SUCCESS',
30
- * todo: updated,
31
- * }))
32
- * );
33
- * },
34
- * onError: (action: UpdateTodo, error: any) => {
35
- * // we don't need to undo the changes on the client side.
36
- * // we can dispatch an error, or simply log the error here and return `null`
37
- * return null;
38
- * },
39
- * })
40
- * )
41
- * );
42
- *
43
- * constructor(private actions$: Actions, private backend: Backend) {}
44
- * }
45
- * ```
46
- *
47
- * Note that if you don't return a new action from the run callback, you must set the dispatch property
48
- * of the effect to false, like this:
49
- *
50
- * ```typescript
51
- * class TodoEffects {
52
- * updateTodo$ = createEffect(() =>
53
- * this.actions$.pipe(
54
- * //...
55
- * ), { dispatch: false }
56
- * );
57
- * }
58
- * ```
59
- *
60
- * @param opts
61
- */
62
- function pessimisticUpdate(opts) {
63
- return (source) => {
64
- return source.pipe(mapActionAndState(), concatMap(runWithErrorHandling(opts.run, opts.onError)));
65
- };
66
- }
67
- /**
68
- *
69
- * @whatItDoes Handles optimistic updates (updating the client first).
70
- *
71
- * It runs all fetches in order, which removes race conditions and forces the developer to handle errors.
72
- *
73
- * When using `optimisticUpdate`, in case of a failure, the developer has already updated the state locally,
74
- * so the developer must provide an undo action.
75
- *
76
- * The error handling must be done in the callback, or by means of the undo action.
77
- *
78
- * ## Example:
79
- *
80
- * ```typescript
81
- * @Injectable()
82
- * class TodoEffects {
83
- * updateTodo$ = createEffect(() =>
84
- * this.actions$.pipe(
85
- * ofType('UPDATE_TODO'),
86
- * optimisticUpdate({
87
- * // provides an action
88
- * run: (action: UpdateTodo) => {
89
- * return this.backend.updateTodo(action.todo.id, action.todo).pipe(
90
- * mapTo({
91
- * type: 'UPDATE_TODO_SUCCESS',
92
- * })
93
- * );
94
- * },
95
- * undoAction: (action: UpdateTodo, error: any) => {
96
- * // dispatch an undo action to undo the changes in the client state
97
- * return {
98
- * type: 'UNDO_TODO_UPDATE',
99
- * todo: action.todo,
100
- * };
101
- * },
102
- * })
103
- * )
104
- * );
105
- *
106
- * constructor(private actions$: Actions, private backend: Backend) {}
107
- * }
108
- * ```
109
- *
110
- * Note that if you don't return a new action from the run callback, you must set the dispatch property
111
- * of the effect to false, like this:
112
- *
113
- * ```typescript
114
- * class TodoEffects {
115
- * updateTodo$ = createEffect(() =>
116
- * this.actions$.pipe(
117
- * //...
118
- * ), { dispatch: false }
119
- * );
120
- * }
121
- * ```
122
- *
123
- * @param opts
124
- */
125
- function optimisticUpdate(opts) {
126
- return (source) => {
127
- return source.pipe(mapActionAndState(), concatMap(runWithErrorHandling(opts.run, opts.undoAction)));
128
- };
129
- }
130
- /**
131
- *
132
- * @whatItDoes Handles data fetching.
133
- *
134
- * Data fetching implemented naively suffers from race conditions and poor error handling.
135
- *
136
- * `fetch` addresses these problems. It runs all fetches in order, which removes race conditions
137
- * and forces the developer to handle errors.
138
- *
139
- * ## Example:
140
- *
141
- * ```typescript
142
- * @Injectable()
143
- * class TodoEffects {
144
- * loadTodos$ = createEffect(() =>
145
- * this.actions$.pipe(
146
- * ofType('GET_TODOS'),
147
- * fetch({
148
- * // provides an action
149
- * run: (a: GetTodos) => {
150
- * return this.backend.getAll().pipe(
151
- * map((response) => ({
152
- * type: 'TODOS',
153
- * todos: response.todos,
154
- * }))
155
- * );
156
- * },
157
- * onError: (action: GetTodos, error: any) => {
158
- * // dispatch an undo action to undo the changes in the client state
159
- * return null;
160
- * },
161
- * })
162
- * )
163
- * );
164
- *
165
- * constructor(private actions$: Actions, private backend: Backend) {}
166
- * }
167
- * ```
168
- *
169
- * This is correct, but because it set the concurrency to 1, it may not be performant.
170
- *
171
- * To fix that, you can provide the `id` function, like this:
172
- *
173
- * ```typescript
174
- * @Injectable()
175
- * class TodoEffects {
176
- * loadTodo$ = createEffect(() =>
177
- * this.actions$.pipe(
178
- * ofType('GET_TODO'),
179
- * fetch({
180
- * id: (todo: GetTodo) => {
181
- * return todo.id;
182
- * },
183
- * // provides an action
184
- * run: (todo: GetTodo) => {
185
- * return this.backend.getTodo(todo.id).map((response) => ({
186
- * type: 'LOAD_TODO_SUCCESS',
187
- * todo: response.todo,
188
- * }));
189
- * },
190
- * onError: (action: GetTodo, error: any) => {
191
- * // dispatch an undo action to undo the changes in the client state
192
- * return null;
193
- * },
194
- * })
195
- * )
196
- * );
197
- *
198
- * constructor(private actions$: Actions, private backend: Backend) {}
199
- * }
200
- * ```
201
- *
202
- * With this setup, the requests for Todo 1 will run concurrently with the requests for Todo 2.
203
- *
204
- * In addition, if there are multiple requests for Todo 1 scheduled, it will only run the last one.
205
- *
206
- * @param opts
207
- */
208
- function fetch(opts) {
209
- return (source) => {
210
- if (opts.id) {
211
- const groupedFetches = source.pipe(mapActionAndState(), groupBy(([action, ...store]) => {
212
- return opts.id(action, ...store);
213
- }));
214
- return groupedFetches.pipe(mergeMap((pairs) => pairs.pipe(switchMap(runWithErrorHandling(opts.run, opts.onError)))));
215
- }
216
- return source.pipe(mapActionAndState(), concatMap(runWithErrorHandling(opts.run, opts.onError)));
217
- };
218
- }
219
- /**
220
- * @whatItDoes Handles data fetching as part of router navigation.
221
- *
222
- * Data fetching implemented naively suffers from race conditions and poor error handling.
223
- *
224
- * `navigation` addresses these problems.
225
- *
226
- * It checks if an activated router state contains the passed in component type, and, if it does, runs the `run`
227
- * callback. It provides the activated snapshot associated with the component and the current state. And it only runs
228
- * the last request.
229
- *
230
- * ## Example:
231
- *
232
- * ```typescript
233
- * @Injectable()
234
- * class TodoEffects {
235
- * loadTodo$ = createEffect(() =>
236
- * this.actions$.pipe(
237
- * // listens for the routerNavigation action from @ngrx/router-store
238
- * navigation(TodoComponent, {
239
- * run: (activatedRouteSnapshot: ActivatedRouteSnapshot) => {
240
- * return this.backend
241
- * .fetchTodo(activatedRouteSnapshot.params['id'])
242
- * .pipe(
243
- * map((todo) => ({
244
- * type: 'LOAD_TODO_SUCCESS',
245
- * todo: todo,
246
- * }))
247
- * );
248
- * },
249
- * onError: (
250
- * activatedRouteSnapshot: ActivatedRouteSnapshot,
251
- * error: any
252
- * ) => {
253
- * // we can log and error here and return null
254
- * // we can also navigate back
255
- * return null;
256
- * },
257
- * })
258
- * )
259
- * );
260
- *
261
- * constructor(private actions$: Actions, private backend: Backend) {}
262
- * }
263
- * ```
264
- *
265
- * @param component
266
- * @param opts
267
- */
268
- function navigation(component, opts) {
269
- return (source) => {
270
- const nav = source.pipe(mapActionAndState(), filter(([action]) => isStateSnapshot(action)), map(([action, ...slices]) => {
271
- if (!isStateSnapshot(action)) {
272
- // Because of the above filter we'll never get here,
273
- // but this properly type narrows `action`
274
- return;
275
- }
276
- return [
277
- findSnapshot(component, action.payload.routerState.root),
278
- ...slices,
279
- ];
280
- }), filter(([snapshot]) => !!snapshot));
281
- return nav.pipe(switchMap(runWithErrorHandling(opts.run, opts.onError)));
282
- };
283
- }
284
- function isStateSnapshot(action) {
285
- return action.type === ROUTER_NAVIGATION;
286
- }
287
- function runWithErrorHandling(run, onError) {
288
- return ([action, ...slices]) => {
289
- try {
290
- const r = wrapIntoObservable(run(action, ...slices));
291
- return r.pipe(catchError((e) => wrapIntoObservable(onError(action, e))));
292
- }
293
- catch (e) {
294
- return wrapIntoObservable(onError(action, e));
295
- }
296
- };
297
- }
298
- /**
299
- * @whatItDoes maps Observable<Action | [Action, State]> to
300
- * Observable<[Action, State]>
301
- */
302
- function mapActionAndState() {
303
- return (source) => {
304
- return source.pipe(map((value) => normalizeActionAndState(value)));
305
- };
306
- }
307
- /**
308
- * @whatItDoes Normalizes either a bare action or an array of action and slices
309
- * into an array of action and slices (or undefined)
310
- */
311
- function normalizeActionAndState(args) {
312
- let action, slices;
313
- if (args instanceof Array) {
314
- [action, ...slices] = args;
315
- }
316
- else {
317
- slices = [];
318
- action = args;
319
- }
320
- return [action, ...slices];
321
- }
322
- function findSnapshot(component, s) {
323
- if (s.routeConfig && s.routeConfig.component === component) {
324
- return s;
325
- }
326
- for (const c of s.children) {
327
- const ss = findSnapshot(component, c);
328
- if (ss) {
329
- return ss;
330
- }
331
- }
332
- return null;
333
- }
334
- function wrapIntoObservable(obj) {
335
- if (isObservable(obj)) {
336
- return obj;
337
- }
338
- else if (!obj) {
339
- return of();
340
- }
341
- else {
342
- return of(obj);
343
- }
344
- }
345
-
1
+ "use strict";
346
2
  /**
347
3
  * Generated bundle index. Do not edit.
348
4
  */
349
-
350
- export { fetch, navigation, optimisticUpdate, pessimisticUpdate };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ tslib_1.__exportStar(require("./index"), exports);
351
8
  //# sourceMappingURL=nrwl-angular.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"nrwl-angular.mjs","sources":["../../src/runtime/nx/data-persistence.ts","../../nrwl-angular.ts"],"sourcesContent":["import type { Type } from '@angular/core';\nimport type {\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n} from '@angular/router';\nimport type { RouterNavigationAction } from '@ngrx/router-store';\nimport { ROUTER_NAVIGATION } from '@ngrx/router-store';\nimport type { Action } from '@ngrx/store';\nimport type { Observable } from 'rxjs';\nimport { isObservable, of } from 'rxjs';\nimport {\n catchError,\n concatMap,\n filter,\n groupBy,\n map,\n mergeMap,\n switchMap,\n} from 'rxjs/operators';\n\nexport interface PessimisticUpdateOpts<T extends Array<unknown>, A> {\n run(a: A, ...slices: [...T]): Observable<Action> | Action | void;\n onError(a: A, e: any): Observable<any> | any;\n}\n\nexport interface OptimisticUpdateOpts<T extends Array<unknown>, A> {\n run(a: A, ...slices: [...T]): Observable<Action> | Action | void;\n undoAction(a: A, e: any): Observable<Action> | Action;\n}\n\nexport interface FetchOpts<T extends Array<unknown>, A> {\n id?(a: A, ...slices: [...T]): any;\n run(a: A, ...slices: [...T]): Observable<Action> | Action | void;\n onError?(a: A, e: any): Observable<any> | any;\n}\n\nexport interface HandleNavigationOpts<T extends Array<unknown>> {\n run(\n a: ActivatedRouteSnapshot,\n ...slices: [...T]\n ): Observable<Action> | Action | void;\n onError?(a: ActivatedRouteSnapshot, e: any): Observable<any> | any;\n}\n\nexport type ActionOrActionWithStates<T extends Array<unknown>, A> =\n | A\n | [A, ...T];\nexport type ActionOrActionWithState<T, A> = ActionOrActionWithStates<[T], A>;\nexport type ActionStatesStream<T extends Array<unknown>, A> = Observable<\n ActionOrActionWithStates<T, A>\n>;\nexport type ActionStateStream<T, A> = Observable<\n ActionOrActionWithStates<[T], A>\n>;\n\n/**\n *\n * @whatItDoes Handles pessimistic updates (updating the server first).\n *\n * Updating the server, when implemented naively, suffers from race conditions and poor error handling.\n *\n * `pessimisticUpdate` addresses these problems. It runs all fetches in order, which removes race conditions\n * and forces the developer to handle errors.\n *\n * ## Example:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * updateTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * ofType('UPDATE_TODO'),\n * pessimisticUpdate({\n * // provides an action\n * run: (action: UpdateTodo) => {\n * // update the backend first, and then dispatch an action that will\n * // update the client side\n * return this.backend.updateTodo(action.todo.id, action.todo).pipe(\n * map((updated) => ({\n * type: 'UPDATE_TODO_SUCCESS',\n * todo: updated,\n * }))\n * );\n * },\n * onError: (action: UpdateTodo, error: any) => {\n * // we don't need to undo the changes on the client side.\n * // we can dispatch an error, or simply log the error here and return `null`\n * return null;\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * Note that if you don't return a new action from the run callback, you must set the dispatch property\n * of the effect to false, like this:\n *\n * ```typescript\n * class TodoEffects {\n * updateTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * //...\n * ), { dispatch: false }\n * );\n * }\n * ```\n *\n * @param opts\n */\nexport function pessimisticUpdate<T extends Array<unknown>, A extends Action>(\n opts: PessimisticUpdateOpts<T, A>\n) {\n return (source: ActionStatesStream<T, A>): Observable<Action> => {\n return source.pipe(\n mapActionAndState(),\n concatMap(runWithErrorHandling(opts.run, opts.onError))\n );\n };\n}\n\n/**\n *\n * @whatItDoes Handles optimistic updates (updating the client first).\n *\n * It runs all fetches in order, which removes race conditions and forces the developer to handle errors.\n *\n * When using `optimisticUpdate`, in case of a failure, the developer has already updated the state locally,\n * so the developer must provide an undo action.\n *\n * The error handling must be done in the callback, or by means of the undo action.\n *\n * ## Example:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * updateTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * ofType('UPDATE_TODO'),\n * optimisticUpdate({\n * // provides an action\n * run: (action: UpdateTodo) => {\n * return this.backend.updateTodo(action.todo.id, action.todo).pipe(\n * mapTo({\n * type: 'UPDATE_TODO_SUCCESS',\n * })\n * );\n * },\n * undoAction: (action: UpdateTodo, error: any) => {\n * // dispatch an undo action to undo the changes in the client state\n * return {\n * type: 'UNDO_TODO_UPDATE',\n * todo: action.todo,\n * };\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * Note that if you don't return a new action from the run callback, you must set the dispatch property\n * of the effect to false, like this:\n *\n * ```typescript\n * class TodoEffects {\n * updateTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * //...\n * ), { dispatch: false }\n * );\n * }\n * ```\n *\n * @param opts\n */\nexport function optimisticUpdate<T extends Array<unknown>, A extends Action>(\n opts: OptimisticUpdateOpts<T, A>\n) {\n return (source: ActionStatesStream<T, A>): Observable<Action> => {\n return source.pipe(\n mapActionAndState(),\n concatMap(runWithErrorHandling(opts.run, opts.undoAction))\n );\n };\n}\n\n/**\n *\n * @whatItDoes Handles data fetching.\n *\n * Data fetching implemented naively suffers from race conditions and poor error handling.\n *\n * `fetch` addresses these problems. It runs all fetches in order, which removes race conditions\n * and forces the developer to handle errors.\n *\n * ## Example:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * loadTodos$ = createEffect(() =>\n * this.actions$.pipe(\n * ofType('GET_TODOS'),\n * fetch({\n * // provides an action\n * run: (a: GetTodos) => {\n * return this.backend.getAll().pipe(\n * map((response) => ({\n * type: 'TODOS',\n * todos: response.todos,\n * }))\n * );\n * },\n * onError: (action: GetTodos, error: any) => {\n * // dispatch an undo action to undo the changes in the client state\n * return null;\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * This is correct, but because it set the concurrency to 1, it may not be performant.\n *\n * To fix that, you can provide the `id` function, like this:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * loadTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * ofType('GET_TODO'),\n * fetch({\n * id: (todo: GetTodo) => {\n * return todo.id;\n * },\n * // provides an action\n * run: (todo: GetTodo) => {\n * return this.backend.getTodo(todo.id).map((response) => ({\n * type: 'LOAD_TODO_SUCCESS',\n * todo: response.todo,\n * }));\n * },\n * onError: (action: GetTodo, error: any) => {\n * // dispatch an undo action to undo the changes in the client state\n * return null;\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * With this setup, the requests for Todo 1 will run concurrently with the requests for Todo 2.\n *\n * In addition, if there are multiple requests for Todo 1 scheduled, it will only run the last one.\n *\n * @param opts\n */\nexport function fetch<T extends Array<unknown>, A extends Action>(\n opts: FetchOpts<T, A>\n) {\n return (source: ActionStatesStream<T, A>): Observable<Action> => {\n if (opts.id) {\n const groupedFetches = source.pipe(\n mapActionAndState(),\n groupBy(([action, ...store]) => {\n return opts.id(action, ...store);\n })\n );\n\n return groupedFetches.pipe(\n mergeMap((pairs) =>\n pairs.pipe(switchMap(runWithErrorHandling(opts.run, opts.onError)))\n )\n );\n }\n\n return source.pipe(\n mapActionAndState(),\n concatMap(runWithErrorHandling(opts.run, opts.onError))\n );\n };\n}\n\n/**\n * @whatItDoes Handles data fetching as part of router navigation.\n *\n * Data fetching implemented naively suffers from race conditions and poor error handling.\n *\n * `navigation` addresses these problems.\n *\n * It checks if an activated router state contains the passed in component type, and, if it does, runs the `run`\n * callback. It provides the activated snapshot associated with the component and the current state. And it only runs\n * the last request.\n *\n * ## Example:\n *\n * ```typescript\n * @Injectable()\n * class TodoEffects {\n * loadTodo$ = createEffect(() =>\n * this.actions$.pipe(\n * // listens for the routerNavigation action from @ngrx/router-store\n * navigation(TodoComponent, {\n * run: (activatedRouteSnapshot: ActivatedRouteSnapshot) => {\n * return this.backend\n * .fetchTodo(activatedRouteSnapshot.params['id'])\n * .pipe(\n * map((todo) => ({\n * type: 'LOAD_TODO_SUCCESS',\n * todo: todo,\n * }))\n * );\n * },\n * onError: (\n * activatedRouteSnapshot: ActivatedRouteSnapshot,\n * error: any\n * ) => {\n * // we can log and error here and return null\n * // we can also navigate back\n * return null;\n * },\n * })\n * )\n * );\n *\n * constructor(private actions$: Actions, private backend: Backend) {}\n * }\n * ```\n *\n * @param component\n * @param opts\n */\nexport function navigation<T extends Array<unknown>, A extends Action>(\n component: Type<any>,\n opts: HandleNavigationOpts<T>\n) {\n return (source: ActionStatesStream<T, A>) => {\n const nav = source.pipe(\n mapActionAndState(),\n filter(([action]) => isStateSnapshot(action)),\n map(([action, ...slices]) => {\n if (!isStateSnapshot(action)) {\n // Because of the above filter we'll never get here,\n // but this properly type narrows `action`\n return;\n }\n\n return [\n findSnapshot(component, action.payload.routerState.root),\n ...slices,\n ] as [ActivatedRouteSnapshot, ...T];\n }),\n filter(([snapshot]) => !!snapshot)\n );\n\n return nav.pipe(switchMap(runWithErrorHandling(opts.run, opts.onError)));\n };\n}\n\nfunction isStateSnapshot(\n action: any\n): action is RouterNavigationAction<RouterStateSnapshot> {\n return action.type === ROUTER_NAVIGATION;\n}\n\nfunction runWithErrorHandling<T extends Array<unknown>, A, R>(\n run: (a: A, ...slices: [...T]) => Observable<R> | R | void,\n onError: any\n) {\n return ([action, ...slices]: [A, ...T]): Observable<R> => {\n try {\n const r = wrapIntoObservable(run(action, ...slices));\n return r.pipe(catchError((e) => wrapIntoObservable(onError(action, e))));\n } catch (e) {\n return wrapIntoObservable(onError(action, e));\n }\n };\n}\n\n/**\n * @whatItDoes maps Observable<Action | [Action, State]> to\n * Observable<[Action, State]>\n */\nfunction mapActionAndState<T extends Array<unknown>, A>() {\n return (source: Observable<ActionOrActionWithStates<T, A>>) => {\n return source.pipe(\n map((value) => normalizeActionAndState(value) as [A, ...T])\n );\n };\n}\n\n/**\n * @whatItDoes Normalizes either a bare action or an array of action and slices\n * into an array of action and slices (or undefined)\n */\nfunction normalizeActionAndState<T extends Array<unknown>, A>(\n args: ActionOrActionWithStates<T, A>\n): [A, ...T] {\n let action: A, slices: T;\n\n if (args instanceof Array) {\n [action, ...slices] = args;\n } else {\n slices = [] as T;\n action = args;\n }\n\n return [action, ...slices];\n}\n\nfunction findSnapshot(\n component: Type<any>,\n s: ActivatedRouteSnapshot\n): ActivatedRouteSnapshot {\n if (s.routeConfig && s.routeConfig.component === component) {\n return s;\n }\n for (const c of s.children) {\n const ss = findSnapshot(component, c);\n if (ss) {\n return ss;\n }\n }\n return null;\n}\n\nfunction wrapIntoObservable<O>(obj: Observable<O> | O | void): Observable<O> {\n if (isObservable(obj)) {\n return obj;\n } else if (!obj) {\n return of();\n } else {\n return of(obj as O);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAuDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDG;AACG,SAAU,iBAAiB,CAC/B,IAAiC,EAAA;IAEjC,OAAO,CAAC,MAAgC,KAAwB;QAC9D,OAAO,MAAM,CAAC,IAAI,CAChB,iBAAiB,EAAE,EACnB,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CACxD,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDG;AACG,SAAU,gBAAgB,CAC9B,IAAgC,EAAA;IAEhC,OAAO,CAAC,MAAgC,KAAwB;QAC9D,OAAO,MAAM,CAAC,IAAI,CAChB,iBAAiB,EAAE,EACnB,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAC3D,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EG;AACG,SAAU,KAAK,CACnB,IAAqB,EAAA;IAErB,OAAO,CAAC,MAAgC,KAAwB;QAC9D,IAAI,IAAI,CAAC,EAAE,EAAE;AACX,YAAA,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAChC,iBAAiB,EAAE,EACnB,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAI;gBAC7B,OAAO,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC;aAClC,CAAC,CACH,CAAC;AAEF,YAAA,OAAO,cAAc,CAAC,IAAI,CACxB,QAAQ,CAAC,CAAC,KAAK,KACb,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CACpE,CACF,CAAC;AACH,SAAA;QAED,OAAO,MAAM,CAAC,IAAI,CAChB,iBAAiB,EAAE,EACnB,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CACxD,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDG;AACa,SAAA,UAAU,CACxB,SAAoB,EACpB,IAA6B,EAAA;IAE7B,OAAO,CAAC,MAAgC,KAAI;AAC1C,QAAA,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CACrB,iBAAiB,EAAE,EACnB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,eAAe,CAAC,MAAM,CAAC,CAAC,EAC7C,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,KAAI;AAC1B,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE;;;gBAG5B,OAAO;AACR,aAAA;YAED,OAAO;gBACL,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;AACxD,gBAAA,GAAG,MAAM;aACwB,CAAC;AACtC,SAAC,CAAC,EACF,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CACnC,CAAC;AAEF,QAAA,OAAO,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC3E,KAAC,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CACtB,MAAW,EAAA;AAEX,IAAA,OAAO,MAAM,CAAC,IAAI,KAAK,iBAAiB,CAAC;AAC3C,CAAC;AAED,SAAS,oBAAoB,CAC3B,GAA0D,EAC1D,OAAY,EAAA;IAEZ,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAY,KAAmB;QACvD,IAAI;AACF,YAAA,MAAM,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC;YACrD,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E,SAAA;AAAC,QAAA,OAAO,CAAC,EAAE;YACV,OAAO,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/C,SAAA;AACH,KAAC,CAAC;AACJ,CAAC;AAED;;;AAGG;AACH,SAAS,iBAAiB,GAAA;IACxB,OAAO,CAAC,MAAkD,KAAI;AAC5D,QAAA,OAAO,MAAM,CAAC,IAAI,CAChB,GAAG,CAAC,CAAC,KAAK,KAAK,uBAAuB,CAAC,KAAK,CAAc,CAAC,CAC5D,CAAC;AACJ,KAAC,CAAC;AACJ,CAAC;AAED;;;AAGG;AACH,SAAS,uBAAuB,CAC9B,IAAoC,EAAA;IAEpC,IAAI,MAAS,EAAE,MAAS,CAAC;IAEzB,IAAI,IAAI,YAAY,KAAK,EAAE;AACzB,QAAA,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;AAC5B,KAAA;AAAM,SAAA;QACL,MAAM,GAAG,EAAO,CAAC;QACjB,MAAM,GAAG,IAAI,CAAC;AACf,KAAA;AAED,IAAA,OAAO,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,YAAY,CACnB,SAAoB,EACpB,CAAyB,EAAA;IAEzB,IAAI,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,CAAC,SAAS,KAAK,SAAS,EAAE;AAC1D,QAAA,OAAO,CAAC,CAAC;AACV,KAAA;AACD,IAAA,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QAC1B,MAAM,EAAE,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AACtC,QAAA,IAAI,EAAE,EAAE;AACN,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACF,KAAA;AACD,IAAA,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,kBAAkB,CAAI,GAA6B,EAAA;AAC1D,IAAA,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE;AACrB,QAAA,OAAO,GAAG,CAAC;AACZ,KAAA;SAAM,IAAI,CAAC,GAAG,EAAE;QACf,OAAO,EAAE,EAAE,CAAC;AACb,KAAA;AAAM,SAAA;AACL,QAAA,OAAO,EAAE,CAAC,GAAQ,CAAC,CAAC;AACrB,KAAA;AACH;;AC/bA;;AAEG;;;;"}
1
+ {"version":3,"file":"nrwl-angular.mjs","sources":["../../../../packages-legacy/angular/nrwl-angular.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";AAAA;;AAEG;;;AAEH,OAAwB,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA,CAAA"}
@@ -1,54 +1,8 @@
1
- let resolveRemoteUrl;
2
- function setRemoteUrlResolver(_resolveRemoteUrl) {
3
- resolveRemoteUrl = _resolveRemoteUrl;
4
- }
5
- let remoteUrlDefinitions;
6
- function setRemoteDefinitions(definitions) {
7
- remoteUrlDefinitions = definitions;
8
- }
9
- let remoteModuleMap = new Map();
10
- let remoteContainerMap = new Map();
11
- async function loadRemoteModule(remoteName, moduleName) {
12
- const remoteModuleKey = `${remoteName}:${moduleName}`;
13
- if (remoteModuleMap.has(remoteModuleKey)) {
14
- return remoteModuleMap.get(remoteModuleKey);
15
- }
16
- const container = remoteContainerMap.has(remoteName)
17
- ? remoteContainerMap.get(remoteName)
18
- : await loadRemoteContainer(remoteName);
19
- const factory = await container.get(moduleName);
20
- const Module = factory();
21
- remoteModuleMap.set(remoteModuleKey, Module);
22
- return Module;
23
- }
24
- function loadModule(url) {
25
- return import(/* webpackIgnore:true */ url);
26
- }
27
- let initialSharingScopeCreated = false;
28
- async function loadRemoteContainer(remoteName) {
29
- if (!resolveRemoteUrl && !remoteUrlDefinitions) {
30
- throw new Error('Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.');
31
- }
32
- if (!initialSharingScopeCreated) {
33
- initialSharingScopeCreated = true;
34
- await __webpack_init_sharing__('default');
35
- }
36
- const remoteUrl = remoteUrlDefinitions
37
- ? remoteUrlDefinitions[remoteName]
38
- : await resolveRemoteUrl(remoteName);
39
- let containerUrl = remoteUrl;
40
- if (!remoteUrl.endsWith('.mjs') && !remoteUrl.endsWith('.js')) {
41
- containerUrl = `${remoteUrl}${remoteUrl.endsWith('/') ? '' : '/'}remoteEntry.mjs`;
42
- }
43
- const container = await loadModule(containerUrl);
44
- await container.init(__webpack_share_scopes__.default);
45
- remoteContainerMap.set(remoteName, container);
46
- return container;
47
- }
48
-
1
+ "use strict";
49
2
  /**
50
3
  * Generated bundle index. Do not edit.
51
4
  */
52
-
53
- export { loadRemoteModule, setRemoteDefinitions, setRemoteUrlResolver };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ tslib_1.__exportStar(require("./index"), exports);
54
8
  //# sourceMappingURL=nrwl-angular-mf.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"nrwl-angular-mf.mjs","sources":["../../mf/mf.ts","../../mf/nrwl-angular-mf.ts"],"sourcesContent":["export type ResolveRemoteUrlFunction = (\n remoteName: string\n) => string | Promise<string>;\n\ndeclare const __webpack_init_sharing__: (scope: 'default') => Promise<void>;\ndeclare const __webpack_share_scopes__: { default: unknown };\n\nlet resolveRemoteUrl: ResolveRemoteUrlFunction;\nexport function setRemoteUrlResolver(\n _resolveRemoteUrl: ResolveRemoteUrlFunction\n) {\n resolveRemoteUrl = _resolveRemoteUrl;\n}\n\nlet remoteUrlDefinitions: Record<string, string>;\nexport function setRemoteDefinitions(definitions: Record<string, string>) {\n remoteUrlDefinitions = definitions;\n}\n\nlet remoteModuleMap = new Map<string, unknown>();\nlet remoteContainerMap = new Map<string, unknown>();\nexport async function loadRemoteModule(remoteName: string, moduleName: string) {\n const remoteModuleKey = `${remoteName}:${moduleName}`;\n if (remoteModuleMap.has(remoteModuleKey)) {\n return remoteModuleMap.get(remoteModuleKey);\n }\n\n const container = remoteContainerMap.has(remoteName)\n ? remoteContainerMap.get(remoteName)\n : await loadRemoteContainer(remoteName);\n\n const factory = await container.get(moduleName);\n const Module = factory();\n\n remoteModuleMap.set(remoteModuleKey, Module);\n\n return Module;\n}\n\nfunction loadModule(url: string) {\n return import(/* webpackIgnore:true */ url);\n}\n\nlet initialSharingScopeCreated = false;\nasync function loadRemoteContainer(remoteName: string) {\n if (!resolveRemoteUrl && !remoteUrlDefinitions) {\n throw new Error(\n 'Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.'\n );\n }\n\n if (!initialSharingScopeCreated) {\n initialSharingScopeCreated = true;\n await __webpack_init_sharing__('default');\n }\n\n const remoteUrl = remoteUrlDefinitions\n ? remoteUrlDefinitions[remoteName]\n : await resolveRemoteUrl(remoteName);\n\n let containerUrl = remoteUrl;\n if (!remoteUrl.endsWith('.mjs') && !remoteUrl.endsWith('.js')) {\n containerUrl = `${remoteUrl}${\n remoteUrl.endsWith('/') ? '' : '/'\n }remoteEntry.mjs`;\n }\n\n const container = await loadModule(containerUrl);\n await container.init(__webpack_share_scopes__.default);\n\n remoteContainerMap.set(remoteName, container);\n return container;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAOA,IAAI,gBAA0C,CAAC;AACzC,SAAU,oBAAoB,CAClC,iBAA2C,EAAA;IAE3C,gBAAgB,GAAG,iBAAiB,CAAC;AACvC,CAAC;AAED,IAAI,oBAA4C,CAAC;AAC3C,SAAU,oBAAoB,CAAC,WAAmC,EAAA;IACtE,oBAAoB,GAAG,WAAW,CAAC;AACrC,CAAC;AAED,IAAI,eAAe,GAAG,IAAI,GAAG,EAAmB,CAAC;AACjD,IAAI,kBAAkB,GAAG,IAAI,GAAG,EAAmB,CAAC;AAC7C,eAAe,gBAAgB,CAAC,UAAkB,EAAE,UAAkB,EAAA;AAC3E,IAAA,MAAM,eAAe,GAAG,CAAA,EAAG,UAAU,CAAI,CAAA,EAAA,UAAU,EAAE,CAAC;AACtD,IAAA,IAAI,eAAe,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE;AACxC,QAAA,OAAO,eAAe,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AAC7C,KAAA;AAED,IAAA,MAAM,SAAS,GAAG,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC;AAClD,UAAE,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC;AACpC,UAAE,MAAM,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAE1C,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAChD,IAAA,MAAM,MAAM,GAAG,OAAO,EAAE,CAAC;AAEzB,IAAA,eAAe,CAAC,GAAG,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AAE7C,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,UAAU,CAAC,GAAW,EAAA;AAC7B,IAAA,OAAO,gCAAgC,GAAG,CAAC,CAAC;AAC9C,CAAC;AAED,IAAI,0BAA0B,GAAG,KAAK,CAAC;AACvC,eAAe,mBAAmB,CAAC,UAAkB,EAAA;AACnD,IAAA,IAAI,CAAC,gBAAgB,IAAI,CAAC,oBAAoB,EAAE;AAC9C,QAAA,MAAM,IAAI,KAAK,CACb,kHAAkH,CACnH,CAAC;AACH,KAAA;IAED,IAAI,CAAC,0BAA0B,EAAE;QAC/B,0BAA0B,GAAG,IAAI,CAAC;AAClC,QAAA,MAAM,wBAAwB,CAAC,SAAS,CAAC,CAAC;AAC3C,KAAA;IAED,MAAM,SAAS,GAAG,oBAAoB;AACpC,UAAE,oBAAoB,CAAC,UAAU,CAAC;AAClC,UAAE,MAAM,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAEvC,IAAI,YAAY,GAAG,SAAS,CAAC;AAC7B,IAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC7D,QAAA,YAAY,GAAG,CAAG,EAAA,SAAS,GACzB,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,GACjC,iBAAiB,CAAC;AACnB,KAAA;AAED,IAAA,MAAM,SAAS,GAAG,MAAM,UAAU,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEvD,IAAA,kBAAkB,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAC9C,IAAA,OAAO,SAAS,CAAC;AACnB;;ACxEA;;AAEG;;;;"}
1
+ {"version":3,"file":"nrwl-angular-mf.mjs","sources":["../../../../packages-legacy/angular/mf/nrwl-angular-mf.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";AAAA;;AAEG;;;AAEH,OAAwB,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA,CAAA"}
@@ -1,43 +1,8 @@
1
- import { toArray, first } from 'rxjs/operators';
2
-
3
- /**
4
- * @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).
5
- *
6
- * @whatItDoes reads all the values from an observable and returns a promise
7
- * with an array of all values. This should be used in combination with async/await.
8
- *
9
- * ## Example
10
- *
11
- * ```typescript
12
- * const obs = of(1, 2, 3, 4);
13
- * const res = await readAll(obs)
14
- * expect(res).toEqual([1, 2, 3, 4]);
15
- * ```
16
- */
17
- function readAll(o) {
18
- return o.pipe(toArray()).toPromise();
19
- }
20
- /**
21
- * @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)
22
- *
23
- * @whatItDoes reads the first value from an observable and returns a promise
24
- * with it. This should be used in combination with async/await.
25
- *
26
- * ## Example
27
- *
28
- * ```typescript
29
- * const obs = of(1, 2, 3, 4);
30
- * const res = await readFirst(obs)
31
- * expect(res).toEqual(1);
32
- * ```
33
- */
34
- function readFirst(o) {
35
- return o.pipe(first()).toPromise();
36
- }
37
-
1
+ "use strict";
38
2
  /**
39
3
  * Generated bundle index. Do not edit.
40
4
  */
41
-
42
- export { readAll, readFirst };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ tslib_1.__exportStar(require("./index"), exports);
43
8
  //# sourceMappingURL=nrwl-angular-testing.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"nrwl-angular-testing.mjs","sources":["../../testing/src/testing-utils.ts","../../testing/nrwl-angular-testing.ts"],"sourcesContent":["import type { Observable } from 'rxjs';\nimport { first, toArray } from 'rxjs/operators';\n\n/**\n * @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).\n *\n * @whatItDoes reads all the values from an observable and returns a promise\n * with an array of all values. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readAll(obs)\n * expect(res).toEqual([1, 2, 3, 4]);\n * ```\n */\nexport function readAll<T>(o: Observable<T>): Promise<T[]> {\n return o.pipe(toArray()).toPromise();\n}\n\n/**\n * @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)\n *\n * @whatItDoes reads the first value from an observable and returns a promise\n * with it. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readFirst(obs)\n * expect(res).toEqual(1);\n * ```\n */\nexport function readFirst<T>(o: Observable<T>): Promise<T> {\n return o.pipe(first()).toPromise();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGA;;;;;;;;;;;;;AAaG;AACG,SAAU,OAAO,CAAI,CAAgB,EAAA;IACzC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;AAaG;AACG,SAAU,SAAS,CAAI,CAAgB,EAAA;IAC3C,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;AACrC;;ACrCA;;AAEG;;;;"}
1
+ {"version":3,"file":"nrwl-angular-testing.mjs","sources":["../../../../packages-legacy/angular/testing/nrwl-angular-testing.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";AAAA;;AAEG;;;AAEH,OAAwB,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA,CAAA"}