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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +68 -0
  3. package/ast-utils.d.ts +1 -0
  4. package/ast-utils.js +11 -0
  5. package/babel.d.ts +20 -0
  6. package/babel.js +50 -0
  7. package/executors.json +14 -0
  8. package/generators.json +112 -0
  9. package/index.d.ts +22 -0
  10. package/index.js +47 -0
  11. package/mf/dynamic-federation.d.ts +4 -0
  12. package/mf/dynamic-federation.js +75 -0
  13. package/mf/index.d.ts +1 -0
  14. package/mf/index.js +7 -0
  15. package/migrations.json +310 -0
  16. package/module-federation.d.ts +4 -0
  17. package/module-federation.js +12 -0
  18. package/package.json +49 -0
  19. package/plugins/bundle-rollup.d.ts +1 -0
  20. package/plugins/bundle-rollup.js +47 -0
  21. package/plugins/component-testing/index.d.ts +37 -0
  22. package/plugins/component-testing/index.js +222 -0
  23. package/plugins/component-testing/webpack-fallback.d.ts +5 -0
  24. package/plugins/component-testing/webpack-fallback.js +125 -0
  25. package/plugins/jest.d.ts +1 -0
  26. package/plugins/jest.js +59 -0
  27. package/plugins/nx-react-webpack-plugin/lib/apply-react-config.d.ts +4 -0
  28. package/plugins/nx-react-webpack-plugin/lib/apply-react-config.js +60 -0
  29. package/plugins/nx-react-webpack-plugin/nx-react-webpack-plugin.d.ts +8 -0
  30. package/plugins/nx-react-webpack-plugin/nx-react-webpack-plugin.js +13 -0
  31. package/plugins/storybook/index.d.ts +3 -0
  32. package/plugins/storybook/index.js +174 -0
  33. package/plugins/storybook/merge-plugins.d.ts +3 -0
  34. package/plugins/storybook/merge-plugins.js +17 -0
  35. package/plugins/webpack.d.ts +1 -0
  36. package/plugins/webpack.js +6 -0
  37. package/plugins/with-react.d.ts +10 -0
  38. package/plugins/with-react.js +22 -0
  39. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +25 -0
  40. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +211 -0
  41. package/src/executors/module-federation-dev-server/schema.json +114 -0
  42. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts +9 -0
  43. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +106 -0
  44. package/src/executors/module-federation-ssr-dev-server/schema.json +48 -0
  45. package/src/generators/application/application.d.ts +5 -0
  46. package/src/generators/application/application.js +232 -0
  47. package/src/generators/application/files/base-rspack/src/app/__fileName__.spec.tsx__tmpl__ +10 -0
  48. package/src/generators/application/files/base-rspack/src/assets/.gitkeep +0 -0
  49. package/src/generators/application/files/base-rspack/src/favicon.ico +0 -0
  50. package/src/generators/application/files/base-rspack/src/index.html +14 -0
  51. package/src/generators/application/files/base-rspack/src/main.tsx__tmpl__ +10 -0
  52. package/src/generators/application/files/base-rspack/tsconfig.app.json__tmpl__ +14 -0
  53. package/src/generators/application/files/base-vite/index.html__tmpl__ +16 -0
  54. package/src/generators/application/files/base-vite/public/favicon.ico +0 -0
  55. package/src/generators/application/files/base-vite/src/app/__fileName__.spec.tsx__tmpl__ +10 -0
  56. package/src/generators/application/files/base-vite/src/assets/.gitkeep +0 -0
  57. package/src/generators/application/files/base-vite/src/environments/environment.prod.ts__tmpl__ +3 -0
  58. package/src/generators/application/files/base-vite/src/environments/environment.ts__tmpl__ +6 -0
  59. package/src/generators/application/files/base-vite/src/main.tsx__tmpl__ +10 -0
  60. package/src/generators/application/files/base-vite/tsconfig.app.json__tmpl__ +14 -0
  61. package/src/generators/application/files/base-webpack/src/app/__fileName__.spec.tsx__tmpl__ +10 -0
  62. package/src/generators/application/files/base-webpack/src/assets/.gitkeep +0 -0
  63. package/src/generators/application/files/base-webpack/src/favicon.ico +0 -0
  64. package/src/generators/application/files/base-webpack/src/index.html +12 -0
  65. package/src/generators/application/files/base-webpack/src/main.tsx__tmpl__ +10 -0
  66. package/src/generators/application/files/base-webpack/tsconfig.app.json__tmpl__ +14 -0
  67. package/src/generators/application/files/base-webpack/webpack.config.js__tmpl__ +50 -0
  68. package/src/generators/application/files/nx-welcome/src/app/nx-welcome.tsx +886 -0
  69. package/src/generators/application/files/style-css-module/src/app/__fileName__.module.__style__ +1 -0
  70. package/src/generators/application/files/style-css-module/src/app/__fileName__.tsx__tmpl__ +36 -0
  71. package/src/generators/application/files/style-css-module/src/styles.__style__ +1 -0
  72. package/src/generators/application/files/style-global-css/src/app/__fileName__.__style__ +1 -0
  73. package/src/generators/application/files/style-global-css/src/app/__fileName__.tsx__tmpl__ +35 -0
  74. package/src/generators/application/files/style-global-css/src/styles.__style__ +1 -0
  75. package/src/generators/application/files/style-none/src/app/__fileName__.tsx__tmpl__ +34 -0
  76. package/src/generators/application/files/style-styled-jsx/src/app/__fileName__.tsx__tmpl__ +37 -0
  77. package/src/generators/application/files/style-styled-module/src/app/__fileName__.tsx__tmpl__ +40 -0
  78. package/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ +33 -0
  79. package/src/generators/application/files/style-tailwind/src/styles.css +1 -0
  80. package/src/generators/application/lib/add-e2e.d.ts +3 -0
  81. package/src/generators/application/lib/add-e2e.js +79 -0
  82. package/src/generators/application/lib/add-jest.d.ts +3 -0
  83. package/src/generators/application/lib/add-jest.js +21 -0
  84. package/src/generators/application/lib/add-project.d.ts +3 -0
  85. package/src/generators/application/lib/add-project.js +96 -0
  86. package/src/generators/application/lib/add-routing.d.ts +3 -0
  87. package/src/generators/application/lib/add-routing.js +27 -0
  88. package/src/generators/application/lib/create-application-files.d.ts +3 -0
  89. package/src/generators/application/lib/create-application-files.js +143 -0
  90. package/src/generators/application/lib/find-free-port.d.ts +2 -0
  91. package/src/generators/application/lib/find-free-port.js +16 -0
  92. package/src/generators/application/lib/get-app-tests.d.ts +2 -0
  93. package/src/generators/application/lib/get-app-tests.js +21 -0
  94. package/src/generators/application/lib/install-common-dependencies.d.ts +3 -0
  95. package/src/generators/application/lib/install-common-dependencies.js +47 -0
  96. package/src/generators/application/lib/normalize-options.d.ts +5 -0
  97. package/src/generators/application/lib/normalize-options.js +72 -0
  98. package/src/generators/application/lib/set-defaults.d.ts +3 -0
  99. package/src/generators/application/lib/set-defaults.js +43 -0
  100. package/src/generators/application/lib/show-possible-warnings.d.ts +3 -0
  101. package/src/generators/application/lib/show-possible-warnings.js +11 -0
  102. package/src/generators/application/lib/update-jest-config.d.ts +3 -0
  103. package/src/generators/application/lib/update-jest-config.js +30 -0
  104. package/src/generators/application/schema.d.ts +45 -0
  105. package/src/generators/application/schema.json +201 -0
  106. package/src/generators/component/component.d.ts +5 -0
  107. package/src/generators/component/component.js +93 -0
  108. package/src/generators/component/files/__fileName__.__style__ +0 -0
  109. package/src/generators/component/files/__fileName__.module.__style__ +7 -0
  110. package/src/generators/component/files/__fileName__.spec.tsx__tmpl__ +7 -0
  111. package/src/generators/component/files/__fileName__.tsx__tmpl__ +88 -0
  112. package/src/generators/component/lib/get-component-tests.d.ts +2 -0
  113. package/src/generators/component/lib/get-component-tests.js +12 -0
  114. package/src/generators/component/lib/normalize-options.d.ts +3 -0
  115. package/src/generators/component/lib/normalize-options.js +50 -0
  116. package/src/generators/component/schema.d.ts +48 -0
  117. package/src/generators/component/schema.json +150 -0
  118. package/src/generators/component-cypress-spec/component-cypress-spec.d.ts +13 -0
  119. package/src/generators/component-cypress-spec/component-cypress-spec.js +100 -0
  120. package/src/generators/component-cypress-spec/files/__componentName__.__fileExt__ +13 -0
  121. package/src/generators/component-cypress-spec/schema.json +44 -0
  122. package/src/generators/component-story/component-story.d.ts +12 -0
  123. package/src/generators/component-story/component-story.js +72 -0
  124. package/src/generators/component-story/files/jsx/__componentFileName__.stories.jsx__tmpl__ +29 -0
  125. package/src/generators/component-story/files/tsx/__componentFileName__.stories.tsx__tmpl__ +36 -0
  126. package/src/generators/component-story/schema.json +42 -0
  127. package/src/generators/component-test/component-test.d.ts +4 -0
  128. package/src/generators/component-test/component-test.js +76 -0
  129. package/src/generators/component-test/files/__fileName__.cy__ext__ +21 -0
  130. package/src/generators/component-test/schema.d.ts +4 -0
  131. package/src/generators/component-test/schema.js +2 -0
  132. package/src/generators/component-test/schema.json +31 -0
  133. package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts +10 -0
  134. package/src/generators/cypress-component-configuration/cypress-component-configuration.js +51 -0
  135. package/src/generators/cypress-component-configuration/lib/add-files.d.ts +4 -0
  136. package/src/generators/cypress-component-configuration/lib/add-files.js +45 -0
  137. package/src/generators/cypress-component-configuration/schema.d.ts +8 -0
  138. package/src/generators/cypress-component-configuration/schema.json +54 -0
  139. package/src/generators/federate-module/federate-module.d.ts +4 -0
  140. package/src/generators/federate-module/federate-module.js +70 -0
  141. package/src/generators/federate-module/lib/utils.d.ts +23 -0
  142. package/src/generators/federate-module/lib/utils.js +100 -0
  143. package/src/generators/federate-module/schema.d.ts +13 -0
  144. package/src/generators/federate-module/schema.json +83 -0
  145. package/src/generators/hook/files/__fileName__.spec.tsx__tmpl__ +18 -0
  146. package/src/generators/hook/files/__fileName__.ts__tmpl__ +15 -0
  147. package/src/generators/hook/hook.d.ts +5 -0
  148. package/src/generators/hook/hook.js +131 -0
  149. package/src/generators/hook/schema.d.ts +24 -0
  150. package/src/generators/hook/schema.json +84 -0
  151. package/src/generators/host/files/common/src/app/__fileName__.js__tmpl__ +33 -0
  152. package/src/generators/host/files/common/src/main.js__tmpl__ +10 -0
  153. package/src/generators/host/files/common/tsconfig.lint.json__tmpl__ +19 -0
  154. package/src/generators/host/files/common-ts/src/app/__fileName__.tsx__tmpl__ +41 -0
  155. package/src/generators/host/files/common-ts/src/main.ts__tmpl__ +10 -0
  156. package/src/generators/host/files/module-federation/module-federation.config.js__tmpl__ +21 -0
  157. package/src/generators/host/files/module-federation/webpack.config.js__tmpl__ +12 -0
  158. package/src/generators/host/files/module-federation/webpack.config.prod.js__tmpl__ +32 -0
  159. package/src/generators/host/files/module-federation-ssr/module-federation.server.config.js__tmpl__ +16 -0
  160. package/src/generators/host/files/module-federation-ssr/server.ts__tmpl__ +28 -0
  161. package/src/generators/host/files/module-federation-ssr/tsconfig.server.json__tmpl__ +17 -0
  162. package/src/generators/host/files/module-federation-ssr/webpack.server.config.js__tmpl__ +12 -0
  163. package/src/generators/host/files/module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +13 -0
  164. package/src/generators/host/files/module-federation-ssr-ts/server.ts__tmpl__ +28 -0
  165. package/src/generators/host/files/module-federation-ssr-ts/tsconfig.server.json__tmpl__ +17 -0
  166. package/src/generators/host/files/module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +12 -0
  167. package/src/generators/host/files/module-federation-ts/module-federation.config.ts__tmpl__ +25 -0
  168. package/src/generators/host/files/module-federation-ts/webpack.config.prod.ts__tmpl__ +33 -0
  169. package/src/generators/host/files/module-federation-ts/webpack.config.ts__tmpl__ +12 -0
  170. package/src/generators/host/host.d.ts +5 -0
  171. package/src/generators/host/host.js +95 -0
  172. package/src/generators/host/lib/add-module-federation-files.d.ts +6 -0
  173. package/src/generators/host/lib/add-module-federation-files.js +52 -0
  174. package/src/generators/host/lib/normalize-remote.d.ts +4 -0
  175. package/src/generators/host/lib/normalize-remote.js +28 -0
  176. package/src/generators/host/lib/setup-ssr-for-host.d.ts +6 -0
  177. package/src/generators/host/lib/setup-ssr-for-host.js +33 -0
  178. package/src/generators/host/lib/update-module-federation-e2e-project.d.ts +3 -0
  179. package/src/generators/host/lib/update-module-federation-e2e-project.js +20 -0
  180. package/src/generators/host/schema.d.ts +37 -0
  181. package/src/generators/host/schema.json +184 -0
  182. package/src/generators/init/init.d.ts +4 -0
  183. package/src/generators/init/init.js +23 -0
  184. package/src/generators/init/schema.d.ts +5 -0
  185. package/src/generators/init/schema.json +27 -0
  186. package/src/generators/library/files/common/README.md +7 -0
  187. package/src/generators/library/files/common/package.json__tmpl__ +4 -0
  188. package/src/generators/library/files/common/src/index.ts__tmpl__ +0 -0
  189. package/src/generators/library/files/common/tsconfig.lib.json__tmpl__ +14 -0
  190. package/src/generators/library/files/vite/README.md +7 -0
  191. package/src/generators/library/files/vite/package.json__tmpl__ +12 -0
  192. package/src/generators/library/files/vite/tsconfig.lib.json__tmpl__ +14 -0
  193. package/src/generators/library/lib/add-linting.d.ts +3 -0
  194. package/src/generators/library/lib/add-linting.js +36 -0
  195. package/src/generators/library/lib/add-rollup-build-target.d.ts +4 -0
  196. package/src/generators/library/lib/add-rollup-build-target.js +59 -0
  197. package/src/generators/library/lib/create-files.d.ts +3 -0
  198. package/src/generators/library/lib/create-files.js +53 -0
  199. package/src/generators/library/lib/install-common-dependencies.d.ts +3 -0
  200. package/src/generators/library/lib/install-common-dependencies.js +47 -0
  201. package/src/generators/library/lib/normalize-options.d.ts +3 -0
  202. package/src/generators/library/lib/normalize-options.js +92 -0
  203. package/src/generators/library/lib/set-defaults.d.ts +3 -0
  204. package/src/generators/library/lib/set-defaults.js +23 -0
  205. package/src/generators/library/lib/update-app-routes.d.ts +3 -0
  206. package/src/generators/library/lib/update-app-routes.js +62 -0
  207. package/src/generators/library/library.d.ts +5 -0
  208. package/src/generators/library/library.js +193 -0
  209. package/src/generators/library/schema.d.ts +45 -0
  210. package/src/generators/library/schema.json +198 -0
  211. package/src/generators/redux/files/__fileName__.slice.spec.ts__tmpl__ +56 -0
  212. package/src/generators/redux/files/__fileName__.slice.ts__tmpl__ +129 -0
  213. package/src/generators/redux/redux.d.ts +5 -0
  214. package/src/generators/redux/redux.js +143 -0
  215. package/src/generators/redux/schema.d.ts +23 -0
  216. package/src/generators/redux/schema.json +51 -0
  217. package/src/generators/remote/files/common/src/main.js__tmpl__ +1 -0
  218. package/src/generators/remote/files/common/src/remote-entry.js__tmpl__ +1 -0
  219. package/src/generators/remote/files/common-ts/src/main.ts__tmpl__ +1 -0
  220. package/src/generators/remote/files/common-ts/src/remote-entry.ts__tmpl__ +1 -0
  221. package/src/generators/remote/files/module-federation/module-federation.config.js__tmpl__ +9 -0
  222. package/src/generators/remote/files/module-federation/webpack.config.js__tmpl__ +12 -0
  223. package/src/generators/remote/files/module-federation/webpack.config.prod.js__tmpl__ +1 -0
  224. package/src/generators/remote/files/module-federation-ssr/module-federation.server.config.js__tmpl__ +6 -0
  225. package/src/generators/remote/files/module-federation-ssr/server.ts__tmpl__ +45 -0
  226. package/src/generators/remote/files/module-federation-ssr/webpack.server.config.js__tmpl__ +12 -0
  227. package/src/generators/remote/files/module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +10 -0
  228. package/src/generators/remote/files/module-federation-ssr-ts/server.ts__tmpl__ +45 -0
  229. package/src/generators/remote/files/module-federation-ssr-ts/tsconfig.lint.json__tmpl__ +19 -0
  230. package/src/generators/remote/files/module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +12 -0
  231. package/src/generators/remote/files/module-federation-ts/module-federation.config.ts__tmpl__ +13 -0
  232. package/src/generators/remote/files/module-federation-ts/tsconfig.lint.json__tmpl__ +19 -0
  233. package/src/generators/remote/files/module-federation-ts/webpack.config.prod.ts__tmpl__ +1 -0
  234. package/src/generators/remote/files/module-federation-ts/webpack.config.ts__tmpl__ +12 -0
  235. package/src/generators/remote/lib/add-remote-to-dynamic-host.d.ts +2 -0
  236. package/src/generators/remote/lib/add-remote-to-dynamic-host.js +11 -0
  237. package/src/generators/remote/lib/setup-ssr-for-remote.d.ts +4 -0
  238. package/src/generators/remote/lib/setup-ssr-for-remote.js +40 -0
  239. package/src/generators/remote/lib/setup-tspath-for-remote.d.ts +3 -0
  240. package/src/generators/remote/lib/setup-tspath-for-remote.js +15 -0
  241. package/src/generators/remote/lib/update-host-with-remote.d.ts +2 -0
  242. package/src/generators/remote/lib/update-host-with-remote.js +64 -0
  243. package/src/generators/remote/remote.d.ts +7 -0
  244. package/src/generators/remote/remote.js +104 -0
  245. package/src/generators/remote/schema.d.ts +34 -0
  246. package/src/generators/remote/schema.json +183 -0
  247. package/src/generators/setup-ssr/files/server.ts__tmpl__ +28 -0
  248. package/src/generators/setup-ssr/files/src/main.server.tsx__tmpl__ +47 -0
  249. package/src/generators/setup-ssr/files/tsconfig.server.json__tmpl__ +17 -0
  250. package/src/generators/setup-ssr/schema.d.ts +7 -0
  251. package/src/generators/setup-ssr/schema.json +48 -0
  252. package/src/generators/setup-ssr/setup-ssr.d.ts +4 -0
  253. package/src/generators/setup-ssr/setup-ssr.js +183 -0
  254. package/src/generators/setup-tailwind/files/postcss.config.js__tmpl__ +15 -0
  255. package/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ +17 -0
  256. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +3 -0
  257. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +36 -0
  258. package/src/generators/setup-tailwind/lib/update-project.d.ts +3 -0
  259. package/src/generators/setup-tailwind/lib/update-project.js +13 -0
  260. package/src/generators/setup-tailwind/schema.d.ts +6 -0
  261. package/src/generators/setup-tailwind/schema.js +2 -0
  262. package/src/generators/setup-tailwind/schema.json +47 -0
  263. package/src/generators/setup-tailwind/setup-tailwind.d.ts +4 -0
  264. package/src/generators/setup-tailwind/setup-tailwind.js +35 -0
  265. package/src/generators/stories/schema.json +67 -0
  266. package/src/generators/stories/stories.d.ts +15 -0
  267. package/src/generators/stories/stories.js +130 -0
  268. package/src/generators/storybook-configuration/configuration.d.ts +6 -0
  269. package/src/generators/storybook-configuration/configuration.js +74 -0
  270. package/src/generators/storybook-configuration/schema.d.ts +16 -0
  271. package/src/generators/storybook-configuration/schema.json +95 -0
  272. package/src/migrations/update-15-3-0/install-webpack-rollup-dependencies.d.ts +3 -0
  273. package/src/migrations/update-15-3-0/install-webpack-rollup-dependencies.js +37 -0
  274. package/src/migrations/update-15-3-0/update-rollup-executor.d.ts +3 -0
  275. package/src/migrations/update-15-3-0/update-rollup-executor.js +15 -0
  276. package/src/migrations/update-15-6-3/webpack-config-setup.d.ts +2 -0
  277. package/src/migrations/update-15-6-3/webpack-config-setup.js +103 -0
  278. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
  279. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +9 -0
  280. package/src/migrations/update-16-2-0-remove-package/update-16-2-0-remove-package.d.ts +2 -0
  281. package/src/migrations/update-16-2-0-remove-package/update-16-2-0-remove-package.js +8 -0
  282. package/src/migrations/update-16-3-0/remove-types-react-router-dom-package.d.ts +2 -0
  283. package/src/migrations/update-16-3-0/remove-types-react-router-dom-package.js +8 -0
  284. package/src/migrations/update-16-7-0/add-babel-core.d.ts +2 -0
  285. package/src/migrations/update-16-7-0/add-babel-core.js +14 -0
  286. package/src/migrations/update-16-7-0-add-typings/update-16-7-0-add-typings.d.ts +2 -0
  287. package/src/migrations/update-16-7-0-add-typings/update-16-7-0-add-typings.js +57 -0
  288. package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts +2 -0
  289. package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +26 -0
  290. package/src/module-federation/ast-utils.d.ts +8 -0
  291. package/src/module-federation/ast-utils.js +102 -0
  292. package/src/module-federation/load-config.d.ts +3 -0
  293. package/src/module-federation/load-config.js +16 -0
  294. package/src/module-federation/models.d.ts +24 -0
  295. package/src/module-federation/models.js +2 -0
  296. package/src/module-federation/package-json.d.ts +8 -0
  297. package/src/module-federation/package-json.js +13 -0
  298. package/src/module-federation/utils.d.ts +12 -0
  299. package/src/module-federation/utils.js +76 -0
  300. package/src/module-federation/with-module-federation-ssr.d.ts +2 -0
  301. package/src/module-federation/with-module-federation-ssr.js +34 -0
  302. package/src/module-federation/with-module-federation.d.ts +7 -0
  303. package/src/module-federation/with-module-federation.js +50 -0
  304. package/src/rules/add-styled-dependencies.d.ts +5 -0
  305. package/src/rules/add-styled-dependencies.js +17 -0
  306. package/src/rules/update-module-federation-project.d.ts +9 -0
  307. package/src/rules/update-module-federation-project.js +50 -0
  308. package/src/utils/add-mf-env-to-inputs.d.ts +2 -0
  309. package/src/utils/add-mf-env-to-inputs.js +24 -0
  310. package/src/utils/assertion.d.ts +1 -0
  311. package/src/utils/assertion.js +19 -0
  312. package/src/utils/ast-utils.d.ts +29 -0
  313. package/src/utils/ast-utils.js +522 -0
  314. package/src/utils/component-props.d.ts +15 -0
  315. package/src/utils/component-props.js +60 -0
  316. package/src/utils/create-ts-config.d.ts +9 -0
  317. package/src/utils/create-ts-config.js +65 -0
  318. package/src/utils/ct-utils.d.ts +14 -0
  319. package/src/utils/ct-utils.js +94 -0
  320. package/src/utils/dependencies.d.ts +7 -0
  321. package/src/utils/dependencies.js +2 -0
  322. package/src/utils/format-file.d.ts +1 -0
  323. package/src/utils/format-file.js +12 -0
  324. package/src/utils/get-in-source-vitest-tests-template.d.ts +1 -0
  325. package/src/utils/get-in-source-vitest-tests-template.js +21 -0
  326. package/src/utils/has-vite-plugin.d.ts +2 -0
  327. package/src/utils/has-vite-plugin.js +11 -0
  328. package/src/utils/has-webpack-plugin.d.ts +2 -0
  329. package/src/utils/has-webpack-plugin.js +11 -0
  330. package/src/utils/jest-utils.d.ts +1 -0
  331. package/src/utils/jest-utils.js +9 -0
  332. package/src/utils/lint.d.ts +36 -0
  333. package/src/utils/lint.js +24 -0
  334. package/src/utils/maybe-js.d.ts +3 -0
  335. package/src/utils/maybe-js.js +9 -0
  336. package/src/utils/styled.d.ts +3 -0
  337. package/src/utils/styled.js +62 -0
  338. package/src/utils/testing-generators.d.ts +3 -0
  339. package/src/utils/testing-generators.js +30 -0
  340. package/src/utils/versions.d.ts +46 -0
  341. package/src/utils/versions.js +54 -0
  342. package/tailwind.d.ts +6 -0
  343. package/tailwind.js +29 -0
  344. package/typings/cssmodule.d.ts +19 -0
  345. package/typings/image.d.ts +48 -0
  346. package/typings/style.d.ts +9 -0
  347. package/typings/styled-jsx.d.ts +8 -0
@@ -0,0 +1,211 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseStaticRemotesConfig = void 0;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const dev_server_impl_1 = require("@nx/webpack/src/executors/dev-server/dev-server.impl");
6
+ const file_server_impl_1 = require("@nx/web/src/executors/file-server/file-server.impl");
7
+ const module_federation_1 = require("@nx/webpack/src/utils/module-federation");
8
+ const async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
9
+ const wait_for_port_open_1 = require("@nx/web/src/utils/wait-for-port-open");
10
+ const child_process_1 = require("child_process");
11
+ const path_1 = require("path");
12
+ const fs_1 = require("fs");
13
+ function getBuildOptions(buildTarget, context) {
14
+ const target = (0, devkit_1.parseTargetString)(buildTarget, context);
15
+ const buildOptions = (0, devkit_1.readTargetOptions)(target, context);
16
+ return {
17
+ ...buildOptions,
18
+ };
19
+ }
20
+ function startStaticRemotesFileServer(staticRemotesConfig, context, options) {
21
+ let shouldMoveToCommonLocation = false;
22
+ let commonOutputDirectory;
23
+ for (const app of staticRemotesConfig.remotes) {
24
+ const remoteBasePath = staticRemotesConfig.config[app].basePath;
25
+ if (!commonOutputDirectory) {
26
+ commonOutputDirectory = remoteBasePath;
27
+ }
28
+ else if (commonOutputDirectory !== remoteBasePath) {
29
+ shouldMoveToCommonLocation = true;
30
+ break;
31
+ }
32
+ }
33
+ if (shouldMoveToCommonLocation) {
34
+ commonOutputDirectory = (0, path_1.join)(devkit_1.workspaceRoot, 'tmp/static-remotes');
35
+ for (const app of staticRemotesConfig.remotes) {
36
+ const remoteConfig = staticRemotesConfig.config[app];
37
+ (0, fs_1.cpSync)(remoteConfig.outputPath, (0, path_1.join)(commonOutputDirectory, remoteConfig.urlSegment), {
38
+ force: true,
39
+ recursive: true,
40
+ });
41
+ }
42
+ }
43
+ const staticRemotesIter = (0, file_server_impl_1.default)({
44
+ cors: true,
45
+ watch: false,
46
+ staticFilePath: commonOutputDirectory,
47
+ parallel: false,
48
+ spa: false,
49
+ withDeps: false,
50
+ host: options.host,
51
+ port: options.staticRemotesPort,
52
+ ssl: options.ssl,
53
+ sslCert: options.sslCert,
54
+ sslKey: options.sslKey,
55
+ }, context);
56
+ return staticRemotesIter;
57
+ }
58
+ async function startDevRemotes(remotes, context, options) {
59
+ const devRemoteIters = [];
60
+ for (const app of remotes.devRemotes) {
61
+ const remoteProjectServeTarget = context.projectGraph.nodes[app].data.targets['serve'];
62
+ const isUsingModuleFederationDevServerExecutor = remoteProjectServeTarget.executor.includes('module-federation-dev-server');
63
+ devRemoteIters.push(await (0, devkit_1.runExecutor)({
64
+ project: app,
65
+ target: 'serve',
66
+ configuration: context.configurationName,
67
+ }, {
68
+ watch: true,
69
+ ...(options.host ? { host: options.host } : {}),
70
+ ...(options.ssl ? { ssl: options.ssl } : {}),
71
+ ...(options.sslCert ? { sslCert: options.sslCert } : {}),
72
+ ...(options.sslKey ? { sslKey: options.sslKey } : {}),
73
+ ...(isUsingModuleFederationDevServerExecutor
74
+ ? { isInitialHost: false }
75
+ : {}),
76
+ }, context));
77
+ }
78
+ return devRemoteIters;
79
+ }
80
+ async function buildStaticRemotes(staticRemotesConfig, nxBin, context, options) {
81
+ if (!staticRemotesConfig.remotes.length) {
82
+ return;
83
+ }
84
+ devkit_1.logger.info(`NX Building ${staticRemotesConfig.remotes.length} static remotes...`);
85
+ const mappedLocationOfRemotes = {};
86
+ for (const app of staticRemotesConfig.remotes) {
87
+ mappedLocationOfRemotes[app] = `http${options.ssl ? 's' : ''}://${options.host}:${options.staticRemotesPort}/${staticRemotesConfig.config[app].urlSegment}`;
88
+ }
89
+ process.env.NX_MF_DEV_SERVER_STATIC_REMOTES = JSON.stringify(mappedLocationOfRemotes);
90
+ await new Promise((res) => {
91
+ const staticProcess = (0, child_process_1.fork)(nxBin, [
92
+ 'run-many',
93
+ `--target=build`,
94
+ `--projects=${staticRemotesConfig.remotes.join(',')}`,
95
+ ...(context.configurationName
96
+ ? [`--configuration=${context.configurationName}`]
97
+ : []),
98
+ ...(options.parallel ? [`--parallel=${options.parallel}`] : []),
99
+ ], {
100
+ cwd: context.root,
101
+ stdio: ['ignore', 'pipe', 'pipe', 'ipc'],
102
+ });
103
+ staticProcess.stdout.on('data', (data) => {
104
+ const ANSII_CODE_REGEX = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
105
+ const stdoutString = data.toString().replace(ANSII_CODE_REGEX, '');
106
+ if (stdoutString.includes('Successfully ran target build')) {
107
+ staticProcess.stdout.removeAllListeners('data');
108
+ devkit_1.logger.info(`NX Built ${staticRemotesConfig.remotes.length} static remotes`);
109
+ res();
110
+ }
111
+ });
112
+ staticProcess.stderr.on('data', (data) => devkit_1.logger.info(data.toString()));
113
+ staticProcess.on('exit', (code) => {
114
+ if (code !== 0) {
115
+ throw new Error(`Remote failed to start. See above for errors.`);
116
+ }
117
+ });
118
+ process.on('SIGTERM', () => staticProcess.kill('SIGTERM'));
119
+ process.on('exit', () => staticProcess.kill('SIGTERM'));
120
+ });
121
+ }
122
+ function parseStaticRemotesConfig(staticRemotes, context) {
123
+ if (!staticRemotes?.length) {
124
+ return { remotes: [], config: undefined };
125
+ }
126
+ const config = {};
127
+ for (const app of staticRemotes) {
128
+ const outputPath = context.projectGraph.nodes[app].data.targets['build'].options.outputPath;
129
+ const basePath = (0, path_1.dirname)(outputPath);
130
+ const urlSegment = (0, path_1.basename)(outputPath);
131
+ config[app] = { basePath, outputPath, urlSegment };
132
+ }
133
+ return { remotes: staticRemotes, config };
134
+ }
135
+ exports.parseStaticRemotesConfig = parseStaticRemotesConfig;
136
+ async function* moduleFederationDevServer(options, context) {
137
+ const initialStaticRemotesPorts = options.staticRemotesPort;
138
+ options.staticRemotesPort ??= options.port + 1;
139
+ // Force Node to resolve to look for the nx binary that is inside node_modules
140
+ const nxBin = require.resolve('nx/bin/nx');
141
+ const currIter = options.static
142
+ ? (0, file_server_impl_1.default)({
143
+ ...options,
144
+ parallel: false,
145
+ withDeps: false,
146
+ spa: false,
147
+ cors: true,
148
+ }, context)
149
+ : (0, dev_server_impl_1.default)(options, context);
150
+ const p = context.projectsConfigurations.projects[context.projectName];
151
+ const buildOptions = getBuildOptions(options.buildTarget, context);
152
+ if (!options.isInitialHost) {
153
+ return yield* currIter;
154
+ }
155
+ const moduleFederationConfig = (0, module_federation_1.getModuleFederationConfig)(buildOptions.tsConfig, context.root, p.root, 'react');
156
+ const remotes = (0, module_federation_1.getRemotes)(options.devRemotes, options.skipRemotes, moduleFederationConfig, {
157
+ projectName: context.projectName,
158
+ projectGraph: context.projectGraph,
159
+ root: context.root,
160
+ });
161
+ if (remotes.devRemotes.length > 0 && !initialStaticRemotesPorts) {
162
+ options.staticRemotesPort = options.devRemotes.reduce((portToUse, r) => {
163
+ const remotePort = context.projectGraph.nodes[r].data.targets['serve'].options.port;
164
+ if (remotePort >= portToUse) {
165
+ return remotePort + 1;
166
+ }
167
+ else {
168
+ return portToUse;
169
+ }
170
+ }, options.staticRemotesPort);
171
+ }
172
+ const staticRemotesConfig = parseStaticRemotesConfig(remotes.staticRemotes, context);
173
+ await buildStaticRemotes(staticRemotesConfig, nxBin, context, options);
174
+ const devRemoteIters = await startDevRemotes(remotes, context, options);
175
+ const staticRemotesIter = remotes.staticRemotes.length > 0
176
+ ? startStaticRemotesFileServer(staticRemotesConfig, context, options)
177
+ : undefined;
178
+ return yield* (0, async_iterable_1.combineAsyncIterables)(currIter, ...devRemoteIters, ...(staticRemotesIter ? [staticRemotesIter] : []), (0, async_iterable_1.createAsyncIterable)(async ({ next, done }) => {
179
+ if (!options.isInitialHost) {
180
+ done();
181
+ return;
182
+ }
183
+ if (remotes.remotePorts.length === 0) {
184
+ done();
185
+ return;
186
+ }
187
+ try {
188
+ const host = options.host ?? 'localhost';
189
+ const baseUrl = `http${options.ssl ? 's' : ''}://${host}:${options.port}`;
190
+ const portsToWaitFor = staticRemotesIter
191
+ ? [options.staticRemotesPort, ...remotes.remotePorts]
192
+ : [...remotes.remotePorts];
193
+ await Promise.all(portsToWaitFor.map((port) => (0, wait_for_port_open_1.waitForPortOpen)(port, {
194
+ retries: 480,
195
+ retryDelay: 2500,
196
+ host: host,
197
+ })));
198
+ devkit_1.logger.info(`NX All remotes started, server ready at ${baseUrl}`);
199
+ next({ success: true, baseUrl: baseUrl });
200
+ }
201
+ catch (err) {
202
+ throw new Error(`Failed to start remotes. Check above for any errors.`, {
203
+ cause: err,
204
+ });
205
+ }
206
+ finally {
207
+ done();
208
+ }
209
+ }));
210
+ }
211
+ exports.default = moduleFederationDevServer;
@@ -0,0 +1,114 @@
1
+ {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
4
+ "title": "Module Federation Dev Server",
5
+ "description": "Serve a web application.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "devRemotes": {
10
+ "type": "array",
11
+ "items": {
12
+ "type": "string"
13
+ },
14
+ "description": "List of remote applications to run in development mode (i.e. using serve target).",
15
+ "x-priority": "important"
16
+ },
17
+ "skipRemotes": {
18
+ "type": "array",
19
+ "items": {
20
+ "type": "string"
21
+ },
22
+ "description": "List of remote applications to not automatically serve, either statically or in development mode. This will not remove the remotes from the `module-federation.config` file, and therefore the application may still try to fetch these remotes.\nThis option is useful for when the `host` application is using a `remote` that does not live in the same workspace as the `host`.",
23
+ "x-priority": "important"
24
+ },
25
+ "buildTarget": {
26
+ "type": "string",
27
+ "description": "Target which builds the application.",
28
+ "x-priority": "important"
29
+ },
30
+ "port": {
31
+ "type": "number",
32
+ "description": "Port to listen on.",
33
+ "default": 4200,
34
+ "x-priority": "important"
35
+ },
36
+ "host": {
37
+ "type": "string",
38
+ "description": "Host to listen on.",
39
+ "default": "localhost"
40
+ },
41
+ "ssl": {
42
+ "type": "boolean",
43
+ "description": "Serve using `HTTPS`.",
44
+ "default": false
45
+ },
46
+ "sslKey": {
47
+ "type": "string",
48
+ "description": "SSL key to use for serving `HTTPS`."
49
+ },
50
+ "sslCert": {
51
+ "type": "string",
52
+ "description": "SSL certificate to use for serving `HTTPS`."
53
+ },
54
+ "watch": {
55
+ "type": "boolean",
56
+ "description": "Watches for changes and rebuilds application.",
57
+ "default": true
58
+ },
59
+ "liveReload": {
60
+ "type": "boolean",
61
+ "description": "Whether to reload the page on change, using live-reload.",
62
+ "default": true
63
+ },
64
+ "hmr": {
65
+ "type": "boolean",
66
+ "description": "Enable hot module replacement.",
67
+ "default": false
68
+ },
69
+ "publicHost": {
70
+ "type": "string",
71
+ "description": "Public URL where the application will be served."
72
+ },
73
+ "open": {
74
+ "type": "boolean",
75
+ "description": "Open the application in the browser.",
76
+ "default": false,
77
+ "x-priority": "important"
78
+ },
79
+ "allowedHosts": {
80
+ "type": "string",
81
+ "description": "This option allows you to whitelist services that are allowed to access the dev server."
82
+ },
83
+ "memoryLimit": {
84
+ "type": "number",
85
+ "description": "Memory limit for type checking service process in `MB`."
86
+ },
87
+ "maxWorkers": {
88
+ "type": "number",
89
+ "description": "Number of workers to use for type checking."
90
+ },
91
+ "baseHref": {
92
+ "type": "string",
93
+ "description": "Base url for the application being built."
94
+ },
95
+ "static": {
96
+ "type": "boolean",
97
+ "description": "Whether to use a static file server instead of the webpack-dev-server. This should be used for remote applications that are also host applications."
98
+ },
99
+ "isInitialHost": {
100
+ "type": "boolean",
101
+ "description": "Whether the host that is running this executor is the first in the project tree to do so.",
102
+ "default": true,
103
+ "x-priority": "internal"
104
+ },
105
+ "parallel": {
106
+ "type": "number",
107
+ "description": "Max number of parallel processes for building static remotes"
108
+ },
109
+ "staticRemotesPort": {
110
+ "type": "number",
111
+ "description": "The port at which to serve the file-server for the static remotes."
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,9 @@
1
+ import { ExecutorContext } from '@nx/devkit';
2
+ import { WebSsrDevServerOptions } from '@nx/webpack/src/executors/ssr-dev-server/schema';
3
+ type ModuleFederationDevServerOptions = WebSsrDevServerOptions & {
4
+ devRemotes?: string | string[];
5
+ skipRemotes?: string[];
6
+ host: string;
7
+ };
8
+ export default function moduleFederationSsrDevServer(options: ModuleFederationDevServerOptions, context: ExecutorContext): AsyncGenerator<any, any, undefined>;
9
+ export {};
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ const ssr_dev_server_impl_1 = require("@nx/webpack/src/executors/ssr-dev-server/ssr-dev-server.impl");
5
+ const path_1 = require("path");
6
+ const chalk = require("chalk");
7
+ const async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
8
+ const child_process_1 = require("child_process");
9
+ const fs_1 = require("fs");
10
+ const internal_1 = require("@nx/js/src/internal");
11
+ function getBuildOptions(buildTarget, context) {
12
+ const target = (0, devkit_1.parseTargetString)(buildTarget, context);
13
+ const buildOptions = (0, devkit_1.readTargetOptions)(target, context);
14
+ return {
15
+ ...buildOptions,
16
+ };
17
+ }
18
+ function getModuleFederationConfig(tsconfigPath, workspaceRoot, projectRoot) {
19
+ const moduleFederationConfigPathJS = (0, path_1.join)(workspaceRoot, projectRoot, 'module-federation.config.js');
20
+ const moduleFederationConfigPathTS = (0, path_1.join)(workspaceRoot, projectRoot, 'module-federation.config.ts');
21
+ let moduleFederationConfigPath = moduleFederationConfigPathJS;
22
+ const fullTSconfigPath = tsconfigPath.startsWith(workspaceRoot)
23
+ ? tsconfigPath
24
+ : (0, path_1.join)(workspaceRoot, tsconfigPath);
25
+ // create a no-op so this can be called with issue
26
+ let cleanupTranspiler = () => { };
27
+ if ((0, fs_1.existsSync)(moduleFederationConfigPathTS)) {
28
+ cleanupTranspiler = (0, internal_1.registerTsProject)(fullTSconfigPath);
29
+ moduleFederationConfigPath = moduleFederationConfigPathTS;
30
+ }
31
+ try {
32
+ const config = require(moduleFederationConfigPath);
33
+ cleanupTranspiler();
34
+ return config.default || config;
35
+ }
36
+ catch {
37
+ throw new Error(`Could not load ${moduleFederationConfigPath}. Was this project generated with "@nx/react:host"?\nSee: https://nx.dev/concepts/more-concepts/faster-builds-with-module-federation`);
38
+ }
39
+ }
40
+ async function* moduleFederationSsrDevServer(options, context) {
41
+ let iter = (0, ssr_dev_server_impl_1.default)(options, context);
42
+ const p = context.projectsConfigurations.projects[context.projectName];
43
+ const buildOptions = getBuildOptions(options.browserTarget, context);
44
+ const moduleFederationConfig = getModuleFederationConfig(buildOptions.tsConfig, context.root, p.root);
45
+ const remotesToSkip = new Set(options.skipRemotes ?? []);
46
+ const remotesNotInWorkspace = [];
47
+ const knownRemotes = (moduleFederationConfig.remotes ?? []).filter((r) => {
48
+ const validRemote = Array.isArray(r) ? r[0] : r;
49
+ if (remotesToSkip.has(validRemote)) {
50
+ return false;
51
+ }
52
+ else if (!context.projectGraph.nodes[validRemote]) {
53
+ remotesNotInWorkspace.push(validRemote);
54
+ return false;
55
+ }
56
+ else {
57
+ return true;
58
+ }
59
+ });
60
+ if (remotesNotInWorkspace.length > 0) {
61
+ devkit_1.logger.warn(`Skipping serving ${remotesNotInWorkspace.join(', ')} as they could not be found in the workspace. Ensure they are served correctly.`);
62
+ }
63
+ const devServeApps = !options.devRemotes
64
+ ? []
65
+ : Array.isArray(options.devRemotes)
66
+ ? options.devRemotes
67
+ : [options.devRemotes];
68
+ for (const app of knownRemotes) {
69
+ const [appName] = Array.isArray(app) ? app : [app];
70
+ const isDev = devServeApps.includes(appName);
71
+ const remoteServeIter = isDev
72
+ ? await (0, devkit_1.runExecutor)({
73
+ project: appName,
74
+ target: 'serve',
75
+ configuration: context.configurationName,
76
+ }, {
77
+ watch: isDev,
78
+ }, context)
79
+ : (0, async_iterable_1.mapAsyncIterable)((0, async_iterable_1.createAsyncIterable)(async ({ next, done }) => {
80
+ const remoteProject = context.projectsConfigurations.projects[appName];
81
+ const remoteServerOutput = (0, path_1.join)(devkit_1.workspaceRoot, remoteProject.targets.server.options.outputPath, remoteProject.targets.server.options.outputFileName);
82
+ const pm = (0, devkit_1.getPackageManagerCommand)();
83
+ (0, child_process_1.execSync)(`${pm.exec} nx run ${appName}:server${context.configurationName ? `:${context.configurationName}` : ''}`, { stdio: 'inherit' });
84
+ const child = (0, child_process_1.fork)(remoteServerOutput, {
85
+ env: {
86
+ PORT: remoteProject.targets['serve-browser'].options.port,
87
+ },
88
+ });
89
+ child.on('message', (msg) => {
90
+ if (msg === 'nx.server.ready') {
91
+ next(true);
92
+ done();
93
+ }
94
+ });
95
+ }), (x) => x);
96
+ iter = (0, async_iterable_1.combineAsyncIterables)(iter, remoteServeIter);
97
+ }
98
+ let numAwaiting = knownRemotes.length + 1; // remotes + host
99
+ return yield* (0, async_iterable_1.tapAsyncIterable)(iter, (x) => {
100
+ numAwaiting--;
101
+ if (numAwaiting === 0) {
102
+ devkit_1.logger.info(`[ ${chalk.green('ready')} ] http://${options.host ?? 'localhost'}:${options.port ?? 4200}`);
103
+ }
104
+ });
105
+ }
106
+ exports.default = moduleFederationSsrDevServer;
@@ -0,0 +1,48 @@
1
+ {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
4
+ "title": "Module Federation SSR Dev Server",
5
+ "description": "Serve a SSR host application along with its known remotes.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "browserTarget": {
10
+ "type": "string",
11
+ "description": "Target which builds the browser application.",
12
+ "x-priority": "important"
13
+ },
14
+ "serverTarget": {
15
+ "type": "string",
16
+ "description": "Target which builds the server application.",
17
+ "x-priority": "important"
18
+ },
19
+ "port": {
20
+ "type": "number",
21
+ "description": "The port to be set on `process.env.PORT` for use in the server.",
22
+ "default": 4200,
23
+ "x-priority": "important"
24
+ },
25
+ "devRemotes": {
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string"
29
+ },
30
+ "description": "List of remote applications to run in development mode (i.e. using serve target).",
31
+ "x-priority": "important"
32
+ },
33
+ "skipRemotes": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "string"
37
+ },
38
+ "description": "List of remote applications to not automatically serve, either statically or in development mode.",
39
+ "x-priority": "important"
40
+ },
41
+ "host": {
42
+ "type": "string",
43
+ "description": "Host to listen on.",
44
+ "default": "localhost"
45
+ }
46
+ },
47
+ "required": ["browserTarget", "serverTarget"]
48
+ }
@@ -0,0 +1,5 @@
1
+ import { Schema } from './schema';
2
+ import { GeneratorCallback, Tree } from '@nx/devkit';
3
+ export declare function applicationGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
4
+ export declare function applicationGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
5
+ export default applicationGenerator;