@nx/react 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 (421) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +22 -0
  3. package/README.md +63 -0
  4. package/ast-utils.d.ts +1 -0
  5. package/ast-utils.js +12 -0
  6. package/ast-utils.js.map +1 -0
  7. package/babel.d.ts +16 -0
  8. package/babel.js +52 -0
  9. package/babel.js.map +1 -0
  10. package/executors.json +26 -0
  11. package/generators.json +223 -0
  12. package/index.d.ts +21 -0
  13. package/index.js +47 -0
  14. package/index.js.map +1 -0
  15. package/migrations.json +870 -0
  16. package/module-federation.d.ts +4 -0
  17. package/module-federation.js +13 -0
  18. package/module-federation.js.map +1 -0
  19. package/package.json +49 -0
  20. package/plugins/bundle-rollup.d.ts +1 -0
  21. package/plugins/bundle-rollup.js +42 -0
  22. package/plugins/bundle-rollup.js.map +1 -0
  23. package/plugins/component-testing/index.d.ts +38 -0
  24. package/plugins/component-testing/index.js +122 -0
  25. package/plugins/component-testing/index.js.map +1 -0
  26. package/plugins/component-testing/webpack-fallback.d.ts +5 -0
  27. package/plugins/component-testing/webpack-fallback.js +135 -0
  28. package/plugins/component-testing/webpack-fallback.js.map +1 -0
  29. package/plugins/jest.d.ts +1 -0
  30. package/plugins/jest.js +62 -0
  31. package/plugins/jest.js.map +1 -0
  32. package/plugins/storybook/index.d.ts +3 -0
  33. package/plugins/storybook/index.js +77 -0
  34. package/plugins/storybook/index.js.map +1 -0
  35. package/plugins/storybook/merge-plugins.d.ts +3 -0
  36. package/plugins/storybook/merge-plugins.js +18 -0
  37. package/plugins/storybook/merge-plugins.js.map +1 -0
  38. package/plugins/webpack.d.ts +3 -0
  39. package/plugins/webpack.js +15 -0
  40. package/plugins/webpack.js.map +1 -0
  41. package/plugins/with-react.d.ts +12 -0
  42. package/plugins/with-react.js +82 -0
  43. package/plugins/with-react.js.map +1 -0
  44. package/src/executors/module-federation-dev-server/compat.d.ts +2 -0
  45. package/src/executors/module-federation-dev-server/compat.js +6 -0
  46. package/src/executors/module-federation-dev-server/compat.js.map +1 -0
  47. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +11 -0
  48. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +55 -0
  49. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js.map +1 -0
  50. package/src/executors/module-federation-dev-server/schema.json +96 -0
  51. package/src/executors/module-federation-ssr-dev-server/compat.d.ts +2 -0
  52. package/src/executors/module-federation-ssr-dev-server/compat.js +6 -0
  53. package/src/executors/module-federation-ssr-dev-server/compat.js.map +1 -0
  54. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts +9 -0
  55. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +71 -0
  56. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js.map +1 -0
  57. package/src/executors/module-federation-ssr-dev-server/schema.json +48 -0
  58. package/src/generators/application/application.d.ts +5 -0
  59. package/src/generators/application/application.js +129 -0
  60. package/src/generators/application/application.js.map +1 -0
  61. package/src/generators/application/files/base-vite/index.html__tmpl__ +16 -0
  62. package/src/generators/application/files/base-vite/public/favicon.ico +0 -0
  63. package/src/generators/application/files/base-vite/src/app/__fileName__.spec.tsx__tmpl__ +10 -0
  64. package/src/generators/application/files/base-vite/src/assets/.gitkeep +0 -0
  65. package/src/generators/application/files/base-vite/src/environments/environment.prod.ts__tmpl__ +3 -0
  66. package/src/generators/application/files/base-vite/src/environments/environment.ts__tmpl__ +6 -0
  67. package/src/generators/application/files/base-vite/src/main.tsx__tmpl__ +10 -0
  68. package/src/generators/application/files/base-vite/tsconfig.app.json__tmpl__ +14 -0
  69. package/src/generators/application/files/base-webpack/.babelrc__tmpl__ +13 -0
  70. package/src/generators/application/files/base-webpack/src/app/__fileName__.spec.tsx__tmpl__ +10 -0
  71. package/src/generators/application/files/base-webpack/src/assets/.gitkeep +0 -0
  72. package/src/generators/application/files/base-webpack/src/environments/environment.prod.ts__tmpl__ +3 -0
  73. package/src/generators/application/files/base-webpack/src/environments/environment.ts__tmpl__ +6 -0
  74. package/src/generators/application/files/base-webpack/src/favicon.ico +0 -0
  75. package/src/generators/application/files/base-webpack/src/index.html +14 -0
  76. package/src/generators/application/files/base-webpack/src/main.tsx__tmpl__ +10 -0
  77. package/src/generators/application/files/base-webpack/tsconfig.app.json__tmpl__ +14 -0
  78. package/src/generators/application/files/base-webpack/webpack.config.js__tmpl__ +9 -0
  79. package/src/generators/application/files/nx-welcome/src/app/nx-welcome.tsx +845 -0
  80. package/src/generators/application/files/style-css-module/src/app/__fileName__.module.__style__ +1 -0
  81. package/src/generators/application/files/style-css-module/src/app/__fileName__.tsx__tmpl__ +37 -0
  82. package/src/generators/application/files/style-css-module/src/styles.__style__ +1 -0
  83. package/src/generators/application/files/style-global-css/src/app/__fileName__.__style__ +1 -0
  84. package/src/generators/application/files/style-global-css/src/app/__fileName__.tsx__tmpl__ +36 -0
  85. package/src/generators/application/files/style-global-css/src/styles.__style__ +1 -0
  86. package/src/generators/application/files/style-none/src/app/__fileName__.tsx__tmpl__ +35 -0
  87. package/src/generators/application/files/style-styled-jsx/src/app/__fileName__.tsx__tmpl__ +29 -0
  88. package/src/generators/application/files/style-styled-module/src/app/__fileName__.tsx__tmpl__ +40 -0
  89. package/src/generators/application/lib/add-cypress.d.ts +3 -0
  90. package/src/generators/application/lib/add-cypress.js +22 -0
  91. package/src/generators/application/lib/add-cypress.js.map +1 -0
  92. package/src/generators/application/lib/add-jest.d.ts +3 -0
  93. package/src/generators/application/lib/add-jest.js +17 -0
  94. package/src/generators/application/lib/add-jest.js.map +1 -0
  95. package/src/generators/application/lib/add-project.d.ts +2 -0
  96. package/src/generators/application/lib/add-project.js +98 -0
  97. package/src/generators/application/lib/add-project.js.map +1 -0
  98. package/src/generators/application/lib/add-routing.d.ts +3 -0
  99. package/src/generators/application/lib/add-routing.js +32 -0
  100. package/src/generators/application/lib/add-routing.js.map +1 -0
  101. package/src/generators/application/lib/create-application-files.d.ts +3 -0
  102. package/src/generators/application/lib/create-application-files.js +47 -0
  103. package/src/generators/application/lib/create-application-files.js.map +1 -0
  104. package/src/generators/application/lib/find-free-port.d.ts +2 -0
  105. package/src/generators/application/lib/find-free-port.js +18 -0
  106. package/src/generators/application/lib/find-free-port.js.map +1 -0
  107. package/src/generators/application/lib/get-app-tests.d.ts +2 -0
  108. package/src/generators/application/lib/get-app-tests.js +22 -0
  109. package/src/generators/application/lib/get-app-tests.js.map +1 -0
  110. package/src/generators/application/lib/install-common-dependencies.d.ts +3 -0
  111. package/src/generators/application/lib/install-common-dependencies.js +29 -0
  112. package/src/generators/application/lib/install-common-dependencies.js.map +1 -0
  113. package/src/generators/application/lib/normalize-options.d.ts +5 -0
  114. package/src/generators/application/lib/normalize-options.js +60 -0
  115. package/src/generators/application/lib/normalize-options.js.map +1 -0
  116. package/src/generators/application/lib/set-defaults.d.ts +3 -0
  117. package/src/generators/application/lib/set-defaults.js +23 -0
  118. package/src/generators/application/lib/set-defaults.js.map +1 -0
  119. package/src/generators/application/lib/update-jest-config.d.ts +3 -0
  120. package/src/generators/application/lib/update-jest-config.js +30 -0
  121. package/src/generators/application/lib/update-jest-config.js.map +1 -0
  122. package/src/generators/application/schema.d.ts +44 -0
  123. package/src/generators/application/schema.json +196 -0
  124. package/src/generators/component/component.d.ts +5 -0
  125. package/src/generators/component/component.js +141 -0
  126. package/src/generators/component/component.js.map +1 -0
  127. package/src/generators/component/files/__fileName__.__style__ +0 -0
  128. package/src/generators/component/files/__fileName__.module.__style__ +7 -0
  129. package/src/generators/component/files/__fileName__.spec.tsx__tmpl__ +7 -0
  130. package/src/generators/component/files/__fileName__.tsx__tmpl__ +71 -0
  131. package/src/generators/component/get-component-tests.d.ts +2 -0
  132. package/src/generators/component/get-component-tests.js +13 -0
  133. package/src/generators/component/get-component-tests.js.map +1 -0
  134. package/src/generators/component/noramlized-schema.d.ts +8 -0
  135. package/src/generators/component/noramlized-schema.js +3 -0
  136. package/src/generators/component/noramlized-schema.js.map +1 -0
  137. package/src/generators/component/schema.d.ts +20 -0
  138. package/src/generators/component/schema.json +153 -0
  139. package/src/generators/component-cypress-spec/component-cypress-spec.d.ts +14 -0
  140. package/src/generators/component-cypress-spec/component-cypress-spec.js +105 -0
  141. package/src/generators/component-cypress-spec/component-cypress-spec.js.map +1 -0
  142. package/src/generators/component-cypress-spec/files/__componentName__.__fileExt__ +13 -0
  143. package/src/generators/component-cypress-spec/schema.json +44 -0
  144. package/src/generators/component-story/component-story.d.ts +12 -0
  145. package/src/generators/component-story/component-story.js +81 -0
  146. package/src/generators/component-story/component-story.js.map +1 -0
  147. package/src/generators/component-story/files/__componentFileName__.stories.__fileExt__ +32 -0
  148. package/src/generators/component-story/schema.json +36 -0
  149. package/src/generators/component-test/component-test.d.ts +4 -0
  150. package/src/generators/component-test/component-test.js +78 -0
  151. package/src/generators/component-test/component-test.js.map +1 -0
  152. package/src/generators/component-test/files/__fileName__.cy__ext__ +21 -0
  153. package/src/generators/component-test/schema.d.ts +4 -0
  154. package/src/generators/component-test/schema.js +3 -0
  155. package/src/generators/component-test/schema.js.map +1 -0
  156. package/src/generators/component-test/schema.json +31 -0
  157. package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts +9 -0
  158. package/src/generators/cypress-component-configuration/cypress-component-configuration.js +34 -0
  159. package/src/generators/cypress-component-configuration/cypress-component-configuration.js.map +1 -0
  160. package/src/generators/cypress-component-configuration/files/cypress/support/commands.ts__tpl__ +42 -0
  161. package/src/generators/cypress-component-configuration/files/cypress.config.ts__tpl__ +8 -0
  162. package/src/generators/cypress-component-configuration/lib/add-files.d.ts +4 -0
  163. package/src/generators/cypress-component-configuration/lib/add-files.js +75 -0
  164. package/src/generators/cypress-component-configuration/lib/add-files.js.map +1 -0
  165. package/src/generators/cypress-component-configuration/lib/update-configs.d.ts +7 -0
  166. package/src/generators/cypress-component-configuration/lib/update-configs.js +30 -0
  167. package/src/generators/cypress-component-configuration/lib/update-configs.js.map +1 -0
  168. package/src/generators/cypress-component-configuration/schema.d.ts +7 -0
  169. package/src/generators/cypress-component-configuration/schema.json +54 -0
  170. package/src/generators/hook/files/__fileName__.spec.tsx__tmpl__ +18 -0
  171. package/src/generators/hook/files/__fileName__.ts__tmpl__ +15 -0
  172. package/src/generators/hook/hook.d.ts +5 -0
  173. package/src/generators/hook/hook.js +117 -0
  174. package/src/generators/hook/hook.js.map +1 -0
  175. package/src/generators/hook/schema.d.ts +11 -0
  176. package/src/generators/hook/schema.json +77 -0
  177. package/src/generators/host/files/common/src/app/__fileName__.tsx__tmpl__ +33 -0
  178. package/src/generators/host/files/module-federation/module-federation.config.js__tmpl__ +6 -0
  179. package/src/generators/host/files/module-federation/src/main.ts__tmpl__ +1 -0
  180. package/src/generators/host/files/module-federation/src/remotes.d.ts__tmpl__ +4 -0
  181. package/src/generators/host/files/module-federation/webpack.config.js__tmpl__ +12 -0
  182. package/src/generators/host/files/module-federation/webpack.config.prod.js__tmpl__ +32 -0
  183. package/src/generators/host/files/module-federation-ssr/module-federation.server.config.js__tmpl__ +13 -0
  184. package/src/generators/host/files/module-federation-ssr/server.ts__tmpl__ +28 -0
  185. package/src/generators/host/files/module-federation-ssr/tsconfig.server.json__tmpl__ +15 -0
  186. package/src/generators/host/files/module-federation-ssr/webpack.server.config.js__tmpl__ +12 -0
  187. package/src/generators/host/host.d.ts +4 -0
  188. package/src/generators/host/host.js +67 -0
  189. package/src/generators/host/host.js.map +1 -0
  190. package/src/generators/host/lib/add-module-federation-files.d.ts +5 -0
  191. package/src/generators/host/lib/add-module-federation-files.js +21 -0
  192. package/src/generators/host/lib/add-module-federation-files.js.map +1 -0
  193. package/src/generators/host/lib/setup-ssr-for-host.d.ts +6 -0
  194. package/src/generators/host/lib/setup-ssr-for-host.js +27 -0
  195. package/src/generators/host/lib/setup-ssr-for-host.js.map +1 -0
  196. package/src/generators/host/lib/update-module-federation-e2e-project.d.ts +3 -0
  197. package/src/generators/host/lib/update-module-federation-e2e-project.js +16 -0
  198. package/src/generators/host/lib/update-module-federation-e2e-project.js.map +1 -0
  199. package/src/generators/host/schema.d.ts +31 -0
  200. package/src/generators/host/schema.json +168 -0
  201. package/src/generators/init/init.d.ts +5 -0
  202. package/src/generators/init/init.js +80 -0
  203. package/src/generators/init/init.js.map +1 -0
  204. package/src/generators/init/schema.d.ts +11 -0
  205. package/src/generators/init/schema.json +49 -0
  206. package/src/generators/library/files/common/.babelrc__tmpl__ +16 -0
  207. package/src/generators/library/files/common/README.md +7 -0
  208. package/src/generators/library/files/common/package.json__tmpl__ +4 -0
  209. package/src/generators/library/files/common/src/index.ts__tmpl__ +0 -0
  210. package/src/generators/library/files/common/tsconfig.lib.json__tmpl__ +14 -0
  211. package/src/generators/library/files/vite/README.md +7 -0
  212. package/src/generators/library/files/vite/package.json__tmpl__ +12 -0
  213. package/src/generators/library/files/vite/tsconfig.lib.json__tmpl__ +14 -0
  214. package/src/generators/library/lib/add-linting.d.ts +3 -0
  215. package/src/generators/library/lib/add-linting.js +38 -0
  216. package/src/generators/library/lib/add-linting.js.map +1 -0
  217. package/src/generators/library/lib/add-rollup-build-target.d.ts +3 -0
  218. package/src/generators/library/lib/add-rollup-build-target.js +59 -0
  219. package/src/generators/library/lib/add-rollup-build-target.js.map +1 -0
  220. package/src/generators/library/lib/create-files.d.ts +3 -0
  221. package/src/generators/library/lib/create-files.js +26 -0
  222. package/src/generators/library/lib/create-files.js.map +1 -0
  223. package/src/generators/library/lib/install-common-dependencies.d.ts +3 -0
  224. package/src/generators/library/lib/install-common-dependencies.js +30 -0
  225. package/src/generators/library/lib/install-common-dependencies.js.map +1 -0
  226. package/src/generators/library/lib/maybe-js.d.ts +2 -0
  227. package/src/generators/library/lib/maybe-js.js +10 -0
  228. package/src/generators/library/lib/maybe-js.js.map +1 -0
  229. package/src/generators/library/lib/normalize-options.d.ts +3 -0
  230. package/src/generators/library/lib/normalize-options.js +57 -0
  231. package/src/generators/library/lib/normalize-options.js.map +1 -0
  232. package/src/generators/library/lib/set-defaults.d.ts +3 -0
  233. package/src/generators/library/lib/set-defaults.js +16 -0
  234. package/src/generators/library/lib/set-defaults.js.map +1 -0
  235. package/src/generators/library/lib/update-app-routes.d.ts +3 -0
  236. package/src/generators/library/lib/update-app-routes.js +63 -0
  237. package/src/generators/library/lib/update-app-routes.js.map +1 -0
  238. package/src/generators/library/library.d.ts +5 -0
  239. package/src/generators/library/library.js +128 -0
  240. package/src/generators/library/library.js.map +1 -0
  241. package/src/generators/library/schema.d.ts +43 -0
  242. package/src/generators/library/schema.json +192 -0
  243. package/src/generators/redux/files/__directory__/__fileName__.slice.spec.ts__tmpl__ +53 -0
  244. package/src/generators/redux/files/__directory__/__fileName__.slice.ts__tmpl__ +129 -0
  245. package/src/generators/redux/redux.d.ts +5 -0
  246. package/src/generators/redux/redux.js +117 -0
  247. package/src/generators/redux/redux.js.map +1 -0
  248. package/src/generators/redux/schema.d.ts +20 -0
  249. package/src/generators/redux/schema.json +47 -0
  250. package/src/generators/remote/files/module-federation/module-federation.config.js__tmpl__ +6 -0
  251. package/src/generators/remote/files/module-federation/src/main.ts__tmpl__ +1 -0
  252. package/src/generators/remote/files/module-federation/src/remote-entry.ts__tmpl__ +1 -0
  253. package/src/generators/remote/files/module-federation/webpack.config.js__tmpl__ +12 -0
  254. package/src/generators/remote/files/module-federation/webpack.config.prod.js__tmpl__ +1 -0
  255. package/src/generators/remote/files/module-federation-ssr/module-federation.server.config.js__tmpl__ +6 -0
  256. package/src/generators/remote/files/module-federation-ssr/server.ts__tmpl__ +45 -0
  257. package/src/generators/remote/files/module-federation-ssr/webpack.server.config.js__tmpl__ +12 -0
  258. package/src/generators/remote/lib/setup-ssr-for-remote.d.ts +4 -0
  259. package/src/generators/remote/lib/setup-ssr-for-remote.js +32 -0
  260. package/src/generators/remote/lib/setup-ssr-for-remote.js.map +1 -0
  261. package/src/generators/remote/lib/update-host-with-remote.d.ts +2 -0
  262. package/src/generators/remote/lib/update-host-with-remote.js +53 -0
  263. package/src/generators/remote/lib/update-host-with-remote.js.map +1 -0
  264. package/src/generators/remote/remote.d.ts +6 -0
  265. package/src/generators/remote/remote.js +56 -0
  266. package/src/generators/remote/remote.js.map +1 -0
  267. package/src/generators/remote/schema.d.ts +26 -0
  268. package/src/generators/remote/schema.json +167 -0
  269. package/src/generators/setup-ssr/files/server.ts__tmpl__ +28 -0
  270. package/src/generators/setup-ssr/files/src/main.server.tsx__tmpl__ +47 -0
  271. package/src/generators/setup-ssr/files/tsconfig.server.json__tmpl__ +15 -0
  272. package/src/generators/setup-ssr/schema.d.ts +7 -0
  273. package/src/generators/setup-ssr/schema.json +48 -0
  274. package/src/generators/setup-ssr/setup-ssr.d.ts +5 -0
  275. package/src/generators/setup-ssr/setup-ssr.js +162 -0
  276. package/src/generators/setup-ssr/setup-ssr.js.map +1 -0
  277. package/src/generators/setup-tailwind/files/postcss.config.js__tmpl__ +15 -0
  278. package/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ +17 -0
  279. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +3 -0
  280. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +36 -0
  281. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js.map +1 -0
  282. package/src/generators/setup-tailwind/lib/update-project.d.ts +3 -0
  283. package/src/generators/setup-tailwind/lib/update-project.js +15 -0
  284. package/src/generators/setup-tailwind/lib/update-project.js.map +1 -0
  285. package/src/generators/setup-tailwind/schema.d.ts +6 -0
  286. package/src/generators/setup-tailwind/schema.js +3 -0
  287. package/src/generators/setup-tailwind/schema.js.map +1 -0
  288. package/src/generators/setup-tailwind/schema.json +47 -0
  289. package/src/generators/setup-tailwind/setup-tailwind.d.ts +5 -0
  290. package/src/generators/setup-tailwind/setup-tailwind.js +39 -0
  291. package/src/generators/setup-tailwind/setup-tailwind.js.map +1 -0
  292. package/src/generators/stories/schema.json +59 -0
  293. package/src/generators/stories/stories.d.ts +15 -0
  294. package/src/generators/stories/stories.js +118 -0
  295. package/src/generators/stories/stories.js.map +1 -0
  296. package/src/generators/storybook-configuration/configuration.d.ts +5 -0
  297. package/src/generators/storybook-configuration/configuration.js +64 -0
  298. package/src/generators/storybook-configuration/configuration.js.map +1 -0
  299. package/src/generators/storybook-configuration/schema.d.ts +17 -0
  300. package/src/generators/storybook-configuration/schema.json +103 -0
  301. package/src/migrations/update-12-0-0/remove-react-redux-types-package.d.ts +3 -0
  302. package/src/migrations/update-12-0-0/remove-react-redux-types-package.js +13 -0
  303. package/src/migrations/update-12-0-0/remove-react-redux-types-package.js.map +1 -0
  304. package/src/migrations/update-12-0-0/update-emotion-setup.d.ts +3 -0
  305. package/src/migrations/update-12-0-0/update-emotion-setup.js +67 -0
  306. package/src/migrations/update-12-0-0/update-emotion-setup.js.map +1 -0
  307. package/src/migrations/update-12-0-0/use-react-jsx-in-tsconfig.d.ts +3 -0
  308. package/src/migrations/update-12-0-0/use-react-jsx-in-tsconfig.js +27 -0
  309. package/src/migrations/update-12-0-0/use-react-jsx-in-tsconfig.js.map +1 -0
  310. package/src/migrations/update-12-8-0/update-12-8-0.d.ts +3 -0
  311. package/src/migrations/update-12-8-0/update-12-8-0.js +15 -0
  312. package/src/migrations/update-12-8-0/update-12-8-0.js.map +1 -0
  313. package/src/migrations/update-13-0-0/migrate-storybook-to-webpack-5.d.ts +3 -0
  314. package/src/migrations/update-13-0-0/migrate-storybook-to-webpack-5.js +38 -0
  315. package/src/migrations/update-13-0-0/migrate-storybook-to-webpack-5.js.map +1 -0
  316. package/src/migrations/update-13-0-0/update-emotion-setup.d.ts +3 -0
  317. package/src/migrations/update-13-0-0/update-emotion-setup.js +39 -0
  318. package/src/migrations/update-13-0-0/update-emotion-setup.js.map +1 -0
  319. package/src/migrations/update-13-0-0/webpack5-changes-utils.d.ts +11 -0
  320. package/src/migrations/update-13-0-0/webpack5-changes-utils.js +269 -0
  321. package/src/migrations/update-13-0-0/webpack5-changes-utils.js.map +1 -0
  322. package/src/migrations/update-13-10-0/update-13-10-0.d.ts +3 -0
  323. package/src/migrations/update-13-10-0/update-13-10-0.js +29 -0
  324. package/src/migrations/update-13-10-0/update-13-10-0.js.map +1 -0
  325. package/src/migrations/update-14-0-0/add-default-development-configurations.d.ts +3 -0
  326. package/src/migrations/update-14-0-0/add-default-development-configurations.js +40 -0
  327. package/src/migrations/update-14-0-0/add-default-development-configurations.js.map +1 -0
  328. package/src/migrations/update-14-0-0/replace-testing-library-react-hook.d.ts +3 -0
  329. package/src/migrations/update-14-0-0/replace-testing-library-react-hook.js +27 -0
  330. package/src/migrations/update-14-0-0/replace-testing-library-react-hook.js.map +1 -0
  331. package/src/migrations/update-14-0-0/update-react-dom-render-for-v18.d.ts +5 -0
  332. package/src/migrations/update-14-0-0/update-react-dom-render-for-v18.js +69 -0
  333. package/src/migrations/update-14-0-0/update-react-dom-render-for-v18.js.map +1 -0
  334. package/src/migrations/update-14-1-0/update-external-emotion-jsx-runtime.d.ts +3 -0
  335. package/src/migrations/update-14-1-0/update-external-emotion-jsx-runtime.js +38 -0
  336. package/src/migrations/update-14-1-0/update-external-emotion-jsx-runtime.js.map +1 -0
  337. package/src/migrations/update-14-6-0/add-preset-jest-config.d.ts +3 -0
  338. package/src/migrations/update-14-6-0/add-preset-jest-config.js +40 -0
  339. package/src/migrations/update-14-6-0/add-preset-jest-config.js.map +1 -0
  340. package/src/migrations/update-15-3-0/install-webpack-rollup-dependencies.d.ts +3 -0
  341. package/src/migrations/update-15-3-0/install-webpack-rollup-dependencies.js +39 -0
  342. package/src/migrations/update-15-3-0/install-webpack-rollup-dependencies.js.map +1 -0
  343. package/src/migrations/update-15-3-0/update-rollup-executor.d.ts +3 -0
  344. package/src/migrations/update-15-3-0/update-rollup-executor.js +17 -0
  345. package/src/migrations/update-15-3-0/update-rollup-executor.js.map +1 -0
  346. package/src/migrations/update-15-6-3/webpack-config-setup.d.ts +2 -0
  347. package/src/migrations/update-15-6-3/webpack-config-setup.js +108 -0
  348. package/src/migrations/update-15-6-3/webpack-config-setup.js.map +1 -0
  349. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
  350. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
  351. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
  352. package/src/module-federation/ast-utils.d.ts +8 -0
  353. package/src/module-federation/ast-utils.js +103 -0
  354. package/src/module-federation/ast-utils.js.map +1 -0
  355. package/src/module-federation/load-config.d.ts +3 -0
  356. package/src/module-federation/load-config.js +17 -0
  357. package/src/module-federation/load-config.js.map +1 -0
  358. package/src/module-federation/models.d.ts +24 -0
  359. package/src/module-federation/models.js +3 -0
  360. package/src/module-federation/models.js.map +1 -0
  361. package/src/module-federation/package-json.d.ts +8 -0
  362. package/src/module-federation/package-json.js +14 -0
  363. package/src/module-federation/package-json.js.map +1 -0
  364. package/src/module-federation/utils.d.ts +10 -0
  365. package/src/module-federation/utils.js +38 -0
  366. package/src/module-federation/utils.js.map +1 -0
  367. package/src/module-federation/with-module-federation-ssr.d.ts +2 -0
  368. package/src/module-federation/with-module-federation-ssr.js +48 -0
  369. package/src/module-federation/with-module-federation-ssr.js.map +1 -0
  370. package/src/module-federation/with-module-federation.d.ts +7 -0
  371. package/src/module-federation/with-module-federation.js +50 -0
  372. package/src/module-federation/with-module-federation.js.map +1 -0
  373. package/src/rules/add-styled-dependencies.d.ts +2 -0
  374. package/src/rules/add-styled-dependencies.js +16 -0
  375. package/src/rules/add-styled-dependencies.js.map +1 -0
  376. package/src/rules/update-module-federation-project.d.ts +6 -0
  377. package/src/rules/update-module-federation-project.js +34 -0
  378. package/src/rules/update-module-federation-project.js.map +1 -0
  379. package/src/utils/assertion.d.ts +1 -0
  380. package/src/utils/assertion.js +20 -0
  381. package/src/utils/assertion.js.map +1 -0
  382. package/src/utils/ast-utils.d.ts +29 -0
  383. package/src/utils/ast-utils.js +526 -0
  384. package/src/utils/ast-utils.js.map +1 -0
  385. package/src/utils/component-props.d.ts +15 -0
  386. package/src/utils/component-props.js +61 -0
  387. package/src/utils/component-props.js.map +1 -0
  388. package/src/utils/create-ts-config.d.ts +9 -0
  389. package/src/utils/create-ts-config.js +64 -0
  390. package/src/utils/create-ts-config.js.map +1 -0
  391. package/src/utils/dependencies.d.ts +7 -0
  392. package/src/utils/dependencies.js +3 -0
  393. package/src/utils/dependencies.js.map +1 -0
  394. package/src/utils/format-file.d.ts +1 -0
  395. package/src/utils/format-file.js +13 -0
  396. package/src/utils/format-file.js.map +1 -0
  397. package/src/utils/get-in-source-vitest-tests-template.d.ts +1 -0
  398. package/src/utils/get-in-source-vitest-tests-template.js +22 -0
  399. package/src/utils/get-in-source-vitest-tests-template.js.map +1 -0
  400. package/src/utils/jest-utils.d.ts +1 -0
  401. package/src/utils/jest-utils.js +10 -0
  402. package/src/utils/jest-utils.js.map +1 -0
  403. package/src/utils/lint.d.ts +37 -0
  404. package/src/utils/lint.js +68 -0
  405. package/src/utils/lint.js.map +1 -0
  406. package/src/utils/styled.d.ts +4 -0
  407. package/src/utils/styled.js +33 -0
  408. package/src/utils/styled.js.map +1 -0
  409. package/src/utils/testing-generators.d.ts +3 -0
  410. package/src/utils/testing-generators.js +35 -0
  411. package/src/utils/testing-generators.js.map +1 -0
  412. package/src/utils/versions.d.ts +43 -0
  413. package/src/utils/versions.js +51 -0
  414. package/src/utils/versions.js.map +1 -0
  415. package/tailwind.d.ts +6 -0
  416. package/tailwind.js +30 -0
  417. package/tailwind.js.map +1 -0
  418. package/typings/cssmodule.d.ts +24 -0
  419. package/typings/image.d.ts +48 -0
  420. package/typings/style.d.ts +9 -0
  421. package/typings/styled-jsx.d.ts +8 -0
@@ -0,0 +1,845 @@
1
+ /*
2
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3
+ This is a starter component and can be deleted.
4
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * *
5
+ Delete this file and get started with your project!
6
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7
+ */
8
+ export function NxWelcome({ title }: { title: string }) {
9
+ return (
10
+ <>
11
+ <style
12
+ dangerouslySetInnerHTML={{
13
+ __html: `
14
+ html {
15
+ -webkit-text-size-adjust: 100%;
16
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
17
+ 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
18
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
19
+ 'Noto Color Emoji';
20
+ line-height: 1.5;
21
+ tab-size: 4;
22
+ scroll-behavior: smooth;
23
+ }
24
+ body {
25
+ font-family: inherit;
26
+ line-height: inherit;
27
+ margin: 0;
28
+ }
29
+ h1,
30
+ h2,
31
+ p,
32
+ pre {
33
+ margin: 0;
34
+ }
35
+ *,
36
+ ::before,
37
+ ::after {
38
+ box-sizing: border-box;
39
+ border-width: 0;
40
+ border-style: solid;
41
+ border-color: currentColor;
42
+ }
43
+ h1,
44
+ h2 {
45
+ font-size: inherit;
46
+ font-weight: inherit;
47
+ }
48
+ a {
49
+ color: inherit;
50
+ text-decoration: inherit;
51
+ }
52
+ pre {
53
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
54
+ 'Liberation Mono', 'Courier New', monospace;
55
+ }
56
+ svg {
57
+ display: block;
58
+ vertical-align: middle;
59
+ shape-rendering: auto;
60
+ text-rendering: optimizeLegibility;
61
+ }
62
+ pre {
63
+ background-color: rgba(55, 65, 81, 1);
64
+ border-radius: 0.25rem;
65
+ color: rgba(229, 231, 235, 1);
66
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
67
+ 'Liberation Mono', 'Courier New', monospace;
68
+ overflow: scroll;
69
+ padding: 0.5rem 0.75rem;
70
+ }
71
+
72
+ .shadow {
73
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1),
74
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
75
+ }
76
+ .rounded {
77
+ border-radius: 1.5rem;
78
+ }
79
+ .wrapper {
80
+ width: 100%;
81
+ }
82
+ .container {
83
+ margin-left: auto;
84
+ margin-right: auto;
85
+ max-width: 768px;
86
+ padding-bottom: 3rem;
87
+ padding-left: 1rem;
88
+ padding-right: 1rem;
89
+ color: rgba(55, 65, 81, 1);
90
+ width: 100%;
91
+ }
92
+ #welcome {
93
+ margin-top: 2.5rem;
94
+ }
95
+ #welcome h1 {
96
+ font-size: 3rem;
97
+ font-weight: 500;
98
+ letter-spacing: -0.025em;
99
+ line-height: 1;
100
+ }
101
+ #welcome span {
102
+ display: block;
103
+ font-size: 1.875rem;
104
+ font-weight: 300;
105
+ line-height: 2.25rem;
106
+ margin-bottom: 0.5rem;
107
+ }
108
+ #hero {
109
+ align-items: center;
110
+ background-color: hsla(214, 62%, 21%, 1);
111
+ border: none;
112
+ box-sizing: border-box;
113
+ color: rgba(55, 65, 81, 1);
114
+ display: grid;
115
+ grid-template-columns: 1fr;
116
+ margin-top: 3.5rem;
117
+ }
118
+ #hero .text-container {
119
+ color: rgba(255, 255, 255, 1);
120
+ padding: 3rem 2rem;
121
+ }
122
+ #hero .text-container h2 {
123
+ font-size: 1.5rem;
124
+ line-height: 2rem;
125
+ position: relative;
126
+ }
127
+ #hero .text-container h2 svg {
128
+ color: hsla(162, 47%, 50%, 1);
129
+ height: 2rem;
130
+ left: -0.25rem;
131
+ position: absolute;
132
+ top: 0;
133
+ width: 2rem;
134
+ }
135
+ #hero .text-container h2 span {
136
+ margin-left: 2.5rem;
137
+ }
138
+ #hero .text-container a {
139
+ background-color: rgba(255, 255, 255, 1);
140
+ border-radius: 0.75rem;
141
+ color: rgba(55, 65, 81, 1);
142
+ display: inline-block;
143
+ margin-top: 1.5rem;
144
+ padding: 1rem 2rem;
145
+ text-decoration: inherit;
146
+ }
147
+ #hero .logo-container {
148
+ display: none;
149
+ justify-content: center;
150
+ padding-left: 2rem;
151
+ padding-right: 2rem;
152
+ }
153
+ #hero .logo-container svg {
154
+ color: rgba(255, 255, 255, 1);
155
+ width: 66.666667%;
156
+ }
157
+ #middle-content {
158
+ align-items: flex-start;
159
+ display: grid;
160
+ gap: 4rem;
161
+ grid-template-columns: 1fr;
162
+ margin-top: 3.5rem;
163
+ }
164
+ #learning-materials {
165
+ padding: 2.5rem 2rem;
166
+ }
167
+ #learning-materials h2 {
168
+ font-weight: 500;
169
+ font-size: 1.25rem;
170
+ letter-spacing: -0.025em;
171
+ line-height: 1.75rem;
172
+ padding-left: 1rem;
173
+ padding-right: 1rem;
174
+ }
175
+ .list-item-link {
176
+ align-items: center;
177
+ border-radius: 0.75rem;
178
+ display: flex;
179
+ margin-top: 1rem;
180
+ padding: 1rem;
181
+ transition-property: background-color, border-color, color, fill, stroke,
182
+ opacity, box-shadow, transform, filter, backdrop-filter,
183
+ -webkit-backdrop-filter;
184
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
185
+ transition-duration: 150ms;
186
+ width: 100%;
187
+ }
188
+ .list-item-link svg:first-child {
189
+ margin-right: 1rem;
190
+ height: 1.5rem;
191
+ transition-property: background-color, border-color, color, fill, stroke,
192
+ opacity, box-shadow, transform, filter, backdrop-filter,
193
+ -webkit-backdrop-filter;
194
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
195
+ transition-duration: 150ms;
196
+ width: 1.5rem;
197
+ }
198
+ .list-item-link > span {
199
+ flex-grow: 1;
200
+ font-weight: 400;
201
+ transition-property: background-color, border-color, color, fill, stroke,
202
+ opacity, box-shadow, transform, filter, backdrop-filter,
203
+ -webkit-backdrop-filter;
204
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
205
+ transition-duration: 150ms;
206
+ }
207
+ .list-item-link > span > span {
208
+ color: rgba(107, 114, 128, 1);
209
+ display: block;
210
+ flex-grow: 1;
211
+ font-size: 0.75rem;
212
+ font-weight: 300;
213
+ line-height: 1rem;
214
+ transition-property: background-color, border-color, color, fill, stroke,
215
+ opacity, box-shadow, transform, filter, backdrop-filter,
216
+ -webkit-backdrop-filter;
217
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
218
+ transition-duration: 150ms;
219
+ }
220
+ .list-item-link svg:last-child {
221
+ height: 1rem;
222
+ transition-property: all;
223
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
224
+ transition-duration: 150ms;
225
+ width: 1rem;
226
+ }
227
+ .list-item-link:hover {
228
+ color: rgba(255, 255, 255, 1);
229
+ background-color: hsla(162, 47%, 50%, 1);
230
+ }
231
+ .list-item-link:hover > span {}
232
+ .list-item-link:hover > span > span {
233
+ color: rgba(243, 244, 246, 1);
234
+ }
235
+ .list-item-link:hover svg:last-child {
236
+ transform: translateX(0.25rem);
237
+ }
238
+ #other-links {}
239
+ .button-pill {
240
+ padding: 1.5rem 2rem;
241
+ margin-bottom: 2rem;
242
+ transition-duration: 300ms;
243
+ transition-property: background-color, border-color, color, fill, stroke,
244
+ opacity, box-shadow, transform, filter, backdrop-filter,
245
+ -webkit-backdrop-filter;
246
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
247
+ align-items: center;
248
+ display: flex;
249
+ }
250
+ .button-pill svg {
251
+ transition-property: background-color, border-color, color, fill, stroke,
252
+ opacity, box-shadow, transform, filter, backdrop-filter,
253
+ -webkit-backdrop-filter;
254
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
255
+ transition-duration: 150ms;
256
+ flex-shrink: 0;
257
+ width: 3rem;
258
+ }
259
+ .button-pill > span {
260
+ letter-spacing: -0.025em;
261
+ font-weight: 400;
262
+ font-size: 1.125rem;
263
+ line-height: 1.75rem;
264
+ padding-left: 1rem;
265
+ padding-right: 1rem;
266
+ }
267
+ .button-pill span span {
268
+ display: block;
269
+ font-size: 0.875rem;
270
+ font-weight: 300;
271
+ line-height: 1.25rem;
272
+ }
273
+ .button-pill:hover svg,
274
+ .button-pill:hover {
275
+ color: rgba(255, 255, 255, 1) !important;
276
+ }
277
+ .nx-console:hover {
278
+ background-color: rgba(0, 122, 204, 1);
279
+ }
280
+ .nx-console svg {
281
+ color: rgba(0, 122, 204, 1);
282
+ }
283
+ #nx-repo:hover {
284
+ background-color: rgba(24, 23, 23, 1);
285
+ }
286
+ #nx-repo svg {
287
+ color: rgba(24, 23, 23, 1);
288
+ }
289
+ #nx-cloud {
290
+ margin-bottom: 2rem;
291
+ margin-top: 2rem;
292
+ padding: 2.5rem 2rem;
293
+ }
294
+ #nx-cloud > div {
295
+ align-items: center;
296
+ display: flex;
297
+ }
298
+ #nx-cloud > div svg {
299
+ border-radius: 0.375rem;
300
+ flex-shrink: 0;
301
+ width: 3rem;
302
+ }
303
+ #nx-cloud > div h2 {
304
+ font-size: 1.125rem;
305
+ font-weight: 400;
306
+ letter-spacing: -0.025em;
307
+ line-height: 1.75rem;
308
+ padding-left: 1rem;
309
+ padding-right: 1rem;
310
+ }
311
+ #nx-cloud > div h2 span {
312
+ display: block;
313
+ font-size: 0.875rem;
314
+ font-weight: 300;
315
+ line-height: 1.25rem;
316
+ }
317
+ #nx-cloud p {
318
+ font-size: 1rem;
319
+ line-height: 1.5rem;
320
+ margin-top: 1rem;
321
+ }
322
+ #nx-cloud pre {
323
+ margin-top: 1rem;
324
+ }
325
+ #nx-cloud a {
326
+ color: rgba(107, 114, 128, 1);
327
+ display: block;
328
+ font-size: 0.875rem;
329
+ line-height: 1.25rem;
330
+ margin-top: 1.5rem;
331
+ text-align: right;
332
+ }
333
+ #nx-cloud a:hover {
334
+ text-decoration: underline;
335
+ }
336
+ #commands {
337
+ padding: 2.5rem 2rem;
338
+ margin-top: 3.5rem;
339
+ }
340
+ #commands h2 {
341
+ font-size: 1.25rem;
342
+ font-weight: 400;
343
+ letter-spacing: -0.025em;
344
+ line-height: 1.75rem;
345
+ padding-left: 1rem;
346
+ padding-right: 1rem;
347
+ }
348
+ #commands p {
349
+ font-size: 1rem;
350
+ font-weight: 300;
351
+ line-height: 1.5rem;
352
+ margin-top: 1rem;
353
+ padding-left: 1rem;
354
+ padding-right: 1rem;
355
+ }
356
+ details {
357
+ align-items: center;
358
+ display: flex;
359
+ margin-top: 1rem;
360
+ padding-left: 1rem;
361
+ padding-right: 1rem;
362
+ width: 100%;
363
+ }
364
+ details pre > span {
365
+ color: rgba(181, 181, 181, 1);
366
+ display: block;
367
+ }
368
+ summary {
369
+ border-radius: 0.5rem;
370
+ display: flex;
371
+ font-weight: 400;
372
+ padding: 0.5rem;
373
+ cursor: pointer;
374
+ transition-property: background-color, border-color, color, fill, stroke,
375
+ opacity, box-shadow, transform, filter, backdrop-filter,
376
+ -webkit-backdrop-filter;
377
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
378
+ transition-duration: 150ms;
379
+ }
380
+ summary:hover {
381
+ background-color: rgba(243, 244, 246, 1);
382
+ }
383
+ summary svg {
384
+ height: 1.5rem;
385
+ margin-right: 1rem;
386
+ width: 1.5rem;
387
+ }
388
+ #love {
389
+ color: rgba(107, 114, 128, 1);
390
+ font-size: 0.875rem;
391
+ line-height: 1.25rem;
392
+ margin-top: 3.5rem;
393
+ opacity: 0.6;
394
+ text-align: center;
395
+ }
396
+ #love svg {
397
+ color: rgba(252, 165, 165, 1);
398
+ width: 1.25rem;
399
+ height: 1.25rem;
400
+ display: inline;
401
+ margin-top: -0.25rem;
402
+ }
403
+ @media screen and (min-width: 768px) {
404
+ #hero {
405
+ grid-template-columns: repeat(2, minmax(0, 1fr));
406
+ }
407
+ #hero .logo-container {
408
+ display: flex;
409
+ }
410
+ #middle-content {
411
+ grid-template-columns: repeat(2, minmax(0, 1fr));
412
+ }
413
+ }
414
+ `,
415
+ }}
416
+ />
417
+ <div className="wrapper">
418
+ <div className="container">
419
+ <div id="welcome">
420
+ <h1>
421
+ <span> Hello there, </span>
422
+ Welcome {title} 👋
423
+ </h1>
424
+ </div>
425
+
426
+ <div id="hero" className="rounded">
427
+ <div className="text-container">
428
+ <h2>
429
+ <svg
430
+ fill="none"
431
+ stroke="currentColor"
432
+ viewBox="0 0 24 24"
433
+ xmlns="http://www.w3.org/2000/svg"
434
+ >
435
+ <path
436
+ strokeLinecap="round"
437
+ strokeLinejoin="round"
438
+ strokeWidth="2"
439
+ d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
440
+ />
441
+ </svg>
442
+ <span>You&apos;re up and running</span>
443
+ </h2>
444
+ <a href="#commands"> What&apos;s next? </a>
445
+ </div>
446
+ <div className="logo-container">
447
+ <svg
448
+ fill="currentColor"
449
+ role="img"
450
+ viewBox="0 0 24 24"
451
+ xmlns="http://www.w3.org/2000/svg"
452
+ >
453
+ <path d="M11.987 14.138l-3.132 4.923-5.193-8.427-.012 8.822H0V4.544h3.691l5.247 8.833.005-3.998 3.044 4.759zm.601-5.761c.024-.048 0-3.784.008-3.833h-3.65c.002.059-.005 3.776-.003 3.833h3.645zm5.634 4.134a2.061 2.061 0 0 0-1.969 1.336 1.963 1.963 0 0 1 2.343-.739c.396.161.917.422 1.33.283a2.1 2.1 0 0 0-1.704-.88zm3.39 1.061c-.375-.13-.8-.277-1.109-.681-.06-.08-.116-.17-.176-.265a2.143 2.143 0 0 0-.533-.642c-.294-.216-.68-.322-1.18-.322a2.482 2.482 0 0 0-2.294 1.536 2.325 2.325 0 0 1 4.002.388.75.75 0 0 0 .836.334c.493-.105.46.36 1.203.518v-.133c-.003-.446-.246-.55-.75-.733zm2.024 1.266a.723.723 0 0 0 .347-.638c-.01-2.957-2.41-5.487-5.37-5.487a5.364 5.364 0 0 0-4.487 2.418c-.01-.026-1.522-2.39-1.538-2.418H8.943l3.463 5.423-3.379 5.32h3.54l1.54-2.366 1.568 2.366h3.541l-3.21-5.052a.7.7 0 0 1-.084-.32 2.69 2.69 0 0 1 2.69-2.691h.001c1.488 0 1.736.89 2.057 1.308.634.826 1.9.464 1.9 1.541a.707.707 0 0 0 1.066.596zm.35.133c-.173.372-.56.338-.755.639-.176.271.114.412.114.412s.337.156.538-.311c.104-.231.14-.488.103-.74z" />
454
+ </svg>
455
+ </div>
456
+ </div>
457
+
458
+ <div id="middle-content">
459
+ <div id="learning-materials" className="rounded shadow">
460
+ <h2>Learning materials</h2>
461
+ <a
462
+ href="https://nx.dev/getting-started/intro?utm_source=nx-project"
463
+ target="_blank"
464
+ rel="noreferrer"
465
+ className="list-item-link"
466
+ >
467
+ <svg
468
+ fill="none"
469
+ stroke="currentColor"
470
+ viewBox="0 0 24 24"
471
+ xmlns="http://www.w3.org/2000/svg"
472
+ >
473
+ <path
474
+ strokeLinecap="round"
475
+ strokeLinejoin="round"
476
+ strokeWidth="2"
477
+ d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"
478
+ />
479
+ </svg>
480
+ <span>
481
+ Documentation
482
+ <span> Everything is in there </span>
483
+ </span>
484
+ <svg
485
+ fill="none"
486
+ stroke="currentColor"
487
+ viewBox="0 0 24 24"
488
+ xmlns="http://www.w3.org/2000/svg"
489
+ >
490
+ <path
491
+ strokeLinecap="round"
492
+ strokeLinejoin="round"
493
+ strokeWidth="2"
494
+ d="M9 5l7 7-7 7"
495
+ />
496
+ </svg>
497
+ </a>
498
+ <a
499
+ href="https://blog.nrwl.io/?utm_source=nx-project"
500
+ target="_blank"
501
+ rel="noreferrer"
502
+ className="list-item-link"
503
+ >
504
+ <svg
505
+ fill="none"
506
+ stroke="currentColor"
507
+ viewBox="0 0 24 24"
508
+ xmlns="http://www.w3.org/2000/svg"
509
+ >
510
+ <path
511
+ strokeLinecap="round"
512
+ strokeLinejoin="round"
513
+ strokeWidth="2"
514
+ d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
515
+ />
516
+ </svg>
517
+ <span>
518
+ Blog
519
+ <span> Changelog, features & events </span>
520
+ </span>
521
+ <svg
522
+ fill="none"
523
+ stroke="currentColor"
524
+ viewBox="0 0 24 24"
525
+ xmlns="http://www.w3.org/2000/svg"
526
+ >
527
+ <path
528
+ strokeLinecap="round"
529
+ strokeLinejoin="round"
530
+ strokeWidth="2"
531
+ d="M9 5l7 7-7 7"
532
+ />
533
+ </svg>
534
+ </a>
535
+ <a
536
+ href="https://www.youtube.com/@NxDevtools/videos?utm_source=nx-project&sub_confirmation=1"
537
+ target="_blank"
538
+ rel="noreferrer"
539
+ className="list-item-link"
540
+ >
541
+ <svg
542
+ role="img"
543
+ viewBox="0 0 24 24"
544
+ fill="currentColor"
545
+ xmlns="http://www.w3.org/2000/svg"
546
+ >
547
+ <title>YouTube</title>
548
+ <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />
549
+ </svg>
550
+ <span>
551
+ YouTube channel
552
+ <span> Nx Show, talks & tutorials </span>
553
+ </span>
554
+ <svg
555
+ fill="none"
556
+ stroke="currentColor"
557
+ viewBox="0 0 24 24"
558
+ xmlns="http://www.w3.org/2000/svg"
559
+ >
560
+ <path
561
+ strokeLinecap="round"
562
+ strokeLinejoin="round"
563
+ strokeWidth="2"
564
+ d="M9 5l7 7-7 7"
565
+ />
566
+ </svg>
567
+ </a>
568
+ <a
569
+ href="https://nx.dev/react-tutorial/1-code-generation?utm_source=nx-project"
570
+ target="_blank"
571
+ rel="noreferrer"
572
+ className="list-item-link"
573
+ >
574
+ <svg
575
+ fill="none"
576
+ stroke="currentColor"
577
+ viewBox="0 0 24 24"
578
+ xmlns="http://www.w3.org/2000/svg"
579
+ >
580
+ <path
581
+ strokeLinecap="round"
582
+ strokeLinejoin="round"
583
+ strokeWidth="2"
584
+ d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
585
+ />
586
+ </svg>
587
+ <span>
588
+ Interactive tutorials
589
+ <span> Create an app, step-by-step </span>
590
+ </span>
591
+ <svg
592
+ fill="none"
593
+ stroke="currentColor"
594
+ viewBox="0 0 24 24"
595
+ xmlns="http://www.w3.org/2000/svg"
596
+ >
597
+ <path
598
+ strokeLinecap="round"
599
+ strokeLinejoin="round"
600
+ strokeWidth="2"
601
+ d="M9 5l7 7-7 7"
602
+ />
603
+ </svg>
604
+ </a>
605
+ <a
606
+ href="https://nxplaybook.com/?utm_source=nx-project"
607
+ target="_blank"
608
+ rel="noreferrer"
609
+ className="list-item-link"
610
+ >
611
+ <svg
612
+ fill="none"
613
+ stroke="currentColor"
614
+ viewBox="0 0 24 24"
615
+ xmlns="http://www.w3.org/2000/svg"
616
+ >
617
+ <path d="M12 14l9-5-9-5-9 5 9 5z" />
618
+ <path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z" />
619
+ <path
620
+ strokeLinecap="round"
621
+ strokeLinejoin="round"
622
+ strokeWidth="2"
623
+ d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"
624
+ />
625
+ </svg>
626
+ <span>
627
+ Video courses
628
+ <span> Nx custom courses </span>
629
+ </span>
630
+ <svg
631
+ fill="none"
632
+ stroke="currentColor"
633
+ viewBox="0 0 24 24"
634
+ xmlns="http://www.w3.org/2000/svg"
635
+ >
636
+ <path
637
+ strokeLinecap="round"
638
+ strokeLinejoin="round"
639
+ strokeWidth="2"
640
+ d="M9 5l7 7-7 7"
641
+ />
642
+ </svg>
643
+ </a>
644
+ </div>
645
+ <div id="other-links">
646
+ <a
647
+ className="button-pill nx-console rounded shadow"
648
+ href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console&utm_source=nx-project"
649
+ target="_blank"
650
+ rel="noreferrer"
651
+ >
652
+ <svg
653
+ fill="currentColor"
654
+ role="img"
655
+ viewBox="0 0 24 24"
656
+ xmlns="http://www.w3.org/2000/svg"
657
+ >
658
+ <title>Visual Studio Code</title>
659
+ <path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
660
+ </svg>
661
+ <span>
662
+ Install Nx Console for VSCode
663
+ <span>The official VSCode plugin for Nx.</span>
664
+ </span>
665
+ </a>
666
+ <a
667
+ className="button-pill nx-console rounded shadow"
668
+ href="https://plugins.jetbrains.com/plugin/21060-nx-console"
669
+ target="_blank"
670
+ rel="noreferrer"
671
+ >
672
+ <svg
673
+ fill="currentColor"
674
+ role="img"
675
+ viewBox="0 0 24 24"
676
+ xmlns="http://www.w3.org/2000/svg"
677
+ >
678
+ <title>IntelliJ</title>
679
+ <path d="M0 0v24h24V0zm3.723 3.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055 0H17v6.5c0 .612-.055 1.111-.222 1.556-.167.444-.39.777-.723 1.11-.277.279-.666.557-1.11.668a3.933 3.933 0 0 1-1.445.278c-.778 0-1.444-.167-1.944-.445a4.81 4.81 0 0 1-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389 0 .721-.111 1-.389.221-.278.333-.667.333-1.278zM2.222 19.5h9V21h-9z"></path>
680
+ </svg>
681
+ <span>
682
+ Install Nx Console for JetBrains
683
+ <span>
684
+ Available for WebStorm, Intellij IDEA Ultimate and more!
685
+ </span>
686
+ </span>
687
+ </a>
688
+ <div id="nx-cloud" className="rounded shadow">
689
+ <div>
690
+ <svg
691
+ id="nx-cloud-logo"
692
+ role="img"
693
+ xmlns="http://www.w3.org/2000/svg"
694
+ stroke="currentColor"
695
+ fill="transparent"
696
+ viewBox="0 0 24 24"
697
+ >
698
+ <path
699
+ strokeWidth="2"
700
+ d="M23 3.75V6.5c-3.036 0-5.5 2.464-5.5 5.5s-2.464 5.5-5.5 5.5-5.5 2.464-5.5 5.5H3.75C2.232 23 1 21.768 1 20.25V3.75C1 2.232 2.232 1 3.75 1h16.5C21.768 1 23 2.232 23 3.75Z"
701
+ />
702
+ <path
703
+ strokeWidth="2"
704
+ d="M23 6v14.1667C23 21.7307 21.7307 23 20.1667 23H6c0-3.128 2.53867-5.6667 5.6667-5.6667 3.128 0 5.6666-2.5386 5.6666-5.6666C17.3333 8.53867 19.872 6 23 6Z"
705
+ />
706
+ </svg>
707
+ <h2>
708
+ NxCloud
709
+ <span>Enable faster CI & better DX</span>
710
+ </h2>
711
+ </div>
712
+ <p>
713
+ You can activate distributed tasks executions and caching by
714
+ running:
715
+ </p>
716
+ <pre>nx connect-to-nx-cloud</pre>
717
+ <a
718
+ href="https://nx.app/?utm_source=nx-project"
719
+ target="_blank"
720
+ rel="noreferrer"
721
+ >
722
+ {' '}
723
+ What is Nx Cloud?{' '}
724
+ </a>
725
+ </div>
726
+ <a
727
+ id="nx-repo"
728
+ className="button-pill rounded shadow"
729
+ href="https://github.com/nrwl/nx?utm_source=nx-project"
730
+ target="_blank"
731
+ rel="noreferrer"
732
+ >
733
+ <svg
734
+ fill="currentColor"
735
+ role="img"
736
+ viewBox="0 0 24 24"
737
+ xmlns="http://www.w3.org/2000/svg"
738
+ >
739
+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
740
+ </svg>
741
+ <span>
742
+ Nx is open source
743
+ <span> Love Nx? Give us a star! </span>
744
+ </span>
745
+ </a>
746
+ </div>
747
+ </div>
748
+
749
+ <div id="commands" className="rounded shadow">
750
+ <h2>Next steps</h2>
751
+ <p>Here are some things you can do with Nx:</p>
752
+ <details>
753
+ <summary>
754
+ <svg
755
+ fill="none"
756
+ stroke="currentColor"
757
+ viewBox="0 0 24 24"
758
+ xmlns="http://www.w3.org/2000/svg"
759
+ >
760
+ <path
761
+ strokeLinecap="round"
762
+ strokeLinejoin="round"
763
+ strokeWidth="2"
764
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
765
+ />
766
+ </svg>
767
+ Add UI library
768
+ </summary>
769
+ <pre>
770
+ <span># Generate UI lib</span>
771
+ nx g @nrwl/react:lib ui
772
+ <span># Add a component</span>
773
+ nx g @nrwl/react:component button --project ui
774
+ </pre>
775
+ </details>
776
+ <details>
777
+ <summary>
778
+ <svg
779
+ fill="none"
780
+ stroke="currentColor"
781
+ viewBox="0 0 24 24"
782
+ xmlns="http://www.w3.org/2000/svg"
783
+ >
784
+ <path
785
+ strokeLinecap="round"
786
+ strokeLinejoin="round"
787
+ strokeWidth="2"
788
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
789
+ />
790
+ </svg>
791
+ View interactive project graph
792
+ </summary>
793
+ <pre>nx graph</pre>
794
+ </details>
795
+ <details>
796
+ <summary>
797
+ <svg
798
+ fill="none"
799
+ stroke="currentColor"
800
+ viewBox="0 0 24 24"
801
+ xmlns="http://www.w3.org/2000/svg"
802
+ >
803
+ <path
804
+ strokeLinecap="round"
805
+ strokeLinejoin="round"
806
+ strokeWidth="2"
807
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
808
+ />
809
+ </svg>
810
+ Run affected commands
811
+ </summary>
812
+ <pre>
813
+ <span># see what&apos;s been affected by changes</span>
814
+ nx affected:graph
815
+ <span># run tests for current changes</span>
816
+ nx affected:test
817
+ <span># run e2e tests for current changes</span>
818
+ nx affected:e2e
819
+ </pre>
820
+ </details>
821
+ </div>
822
+
823
+ <p id="love">
824
+ Carefully crafted with
825
+ <svg
826
+ fill="currentColor"
827
+ stroke="none"
828
+ viewBox="0 0 24 24"
829
+ xmlns="http://www.w3.org/2000/svg"
830
+ >
831
+ <path
832
+ strokeLinecap="round"
833
+ strokeLinejoin="round"
834
+ strokeWidth="2"
835
+ d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
836
+ />
837
+ </svg>
838
+ </p>
839
+ </div>
840
+ </div>
841
+ </>
842
+ );
843
+ }
844
+
845
+ export default NxWelcome;