@nrwl/react 15.9.2 → 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ast-utils.d.ts +1 -1
- package/ast-utils.js +2 -9
- package/ast-utils.js.map +1 -1
- package/babel.d.ts +0 -16
- package/babel.js +1 -51
- package/babel.js.map +1 -1
- package/executors.json +8 -8
- package/generators.json +2 -221
- package/index.d.ts +1 -21
- package/index.js +1 -43
- package/index.js.map +1 -1
- package/module-federation.d.ts +1 -4
- package/module-federation.js +2 -10
- package/module-federation.js.map +1 -1
- package/package.json +7 -16
- package/plugins/bundle-rollup.d.ts +0 -1
- package/plugins/bundle-rollup.js +1 -41
- package/plugins/bundle-rollup.js.map +1 -1
- package/plugins/component-testing/index.d.ts +1 -38
- package/plugins/component-testing/index.js +1 -118
- package/plugins/component-testing/index.js.map +1 -1
- package/plugins/jest.d.ts +0 -1
- package/plugins/jest.js +1 -61
- package/plugins/jest.js.map +1 -1
- package/plugins/storybook/index.d.ts +1 -3
- package/plugins/storybook/index.js +1 -73
- package/plugins/storybook/index.js.map +1 -1
- package/plugins/webpack.d.ts +1 -3
- package/plugins/webpack.js +2 -12
- package/plugins/webpack.js.map +1 -1
- package/plugins/with-react.d.ts +1 -12
- package/plugins/with-react.js +2 -79
- package/plugins/with-react.js.map +1 -1
- package/tailwind.d.ts +1 -6
- package/tailwind.js +2 -26
- package/tailwind.js.map +1 -1
- package/README.md +0 -63
- package/migrations.json +0 -864
- package/plugins/component-testing/webpack-fallback.d.ts +0 -5
- package/plugins/component-testing/webpack-fallback.js +0 -135
- package/plugins/component-testing/webpack-fallback.js.map +0 -1
- package/plugins/storybook/merge-plugins.d.ts +0 -3
- package/plugins/storybook/merge-plugins.js +0 -18
- package/plugins/storybook/merge-plugins.js.map +0 -1
- package/src/executors/module-federation-dev-server/compat.d.ts +0 -2
- package/src/executors/module-federation-dev-server/compat.js +0 -6
- package/src/executors/module-federation-dev-server/compat.js.map +0 -1
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -11
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +0 -55
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js.map +0 -1
- package/src/executors/module-federation-dev-server/schema.json +0 -96
- package/src/executors/module-federation-ssr-dev-server/compat.d.ts +0 -2
- package/src/executors/module-federation-ssr-dev-server/compat.js +0 -6
- package/src/executors/module-federation-ssr-dev-server/compat.js.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts +0 -9
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +0 -71
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/schema.json +0 -48
- package/src/generators/application/application.d.ts +0 -5
- package/src/generators/application/application.js +0 -129
- package/src/generators/application/application.js.map +0 -1
- package/src/generators/application/files/base-vite/index.html__tmpl__ +0 -16
- package/src/generators/application/files/base-vite/public/favicon.ico +0 -0
- package/src/generators/application/files/base-vite/src/app/__fileName__.spec.tsx__tmpl__ +0 -10
- package/src/generators/application/files/base-vite/src/assets/.gitkeep +0 -0
- package/src/generators/application/files/base-vite/src/environments/environment.prod.ts__tmpl__ +0 -3
- package/src/generators/application/files/base-vite/src/environments/environment.ts__tmpl__ +0 -6
- package/src/generators/application/files/base-vite/src/main.tsx__tmpl__ +0 -10
- package/src/generators/application/files/base-vite/tsconfig.app.json__tmpl__ +0 -14
- package/src/generators/application/files/base-webpack/.babelrc__tmpl__ +0 -13
- package/src/generators/application/files/base-webpack/src/app/__fileName__.spec.tsx__tmpl__ +0 -10
- package/src/generators/application/files/base-webpack/src/assets/.gitkeep +0 -0
- package/src/generators/application/files/base-webpack/src/environments/environment.prod.ts__tmpl__ +0 -3
- package/src/generators/application/files/base-webpack/src/environments/environment.ts__tmpl__ +0 -6
- package/src/generators/application/files/base-webpack/src/favicon.ico +0 -0
- package/src/generators/application/files/base-webpack/src/index.html +0 -14
- package/src/generators/application/files/base-webpack/src/main.tsx__tmpl__ +0 -10
- package/src/generators/application/files/base-webpack/tsconfig.app.json__tmpl__ +0 -14
- package/src/generators/application/files/base-webpack/webpack.config.js__tmpl__ +0 -9
- package/src/generators/application/files/nx-welcome/src/app/nx-welcome.tsx +0 -845
- package/src/generators/application/files/style-css-module/src/app/__fileName__.module.__style__ +0 -1
- package/src/generators/application/files/style-css-module/src/app/__fileName__.tsx__tmpl__ +0 -37
- package/src/generators/application/files/style-css-module/src/styles.__style__ +0 -1
- package/src/generators/application/files/style-global-css/src/app/__fileName__.__style__ +0 -1
- package/src/generators/application/files/style-global-css/src/app/__fileName__.tsx__tmpl__ +0 -36
- package/src/generators/application/files/style-global-css/src/styles.__style__ +0 -1
- package/src/generators/application/files/style-none/src/app/__fileName__.tsx__tmpl__ +0 -35
- package/src/generators/application/files/style-styled-jsx/src/app/__fileName__.tsx__tmpl__ +0 -29
- package/src/generators/application/files/style-styled-module/src/app/__fileName__.tsx__tmpl__ +0 -40
- package/src/generators/application/lib/add-cypress.d.ts +0 -3
- package/src/generators/application/lib/add-cypress.js +0 -22
- package/src/generators/application/lib/add-cypress.js.map +0 -1
- package/src/generators/application/lib/add-jest.d.ts +0 -3
- package/src/generators/application/lib/add-jest.js +0 -17
- package/src/generators/application/lib/add-jest.js.map +0 -1
- package/src/generators/application/lib/add-project.d.ts +0 -2
- package/src/generators/application/lib/add-project.js +0 -98
- package/src/generators/application/lib/add-project.js.map +0 -1
- package/src/generators/application/lib/add-routing.d.ts +0 -3
- package/src/generators/application/lib/add-routing.js +0 -32
- package/src/generators/application/lib/add-routing.js.map +0 -1
- package/src/generators/application/lib/create-application-files.d.ts +0 -3
- package/src/generators/application/lib/create-application-files.js +0 -47
- package/src/generators/application/lib/create-application-files.js.map +0 -1
- package/src/generators/application/lib/find-free-port.d.ts +0 -2
- package/src/generators/application/lib/find-free-port.js +0 -18
- package/src/generators/application/lib/find-free-port.js.map +0 -1
- package/src/generators/application/lib/get-app-tests.d.ts +0 -2
- package/src/generators/application/lib/get-app-tests.js +0 -22
- package/src/generators/application/lib/get-app-tests.js.map +0 -1
- package/src/generators/application/lib/install-common-dependencies.d.ts +0 -3
- package/src/generators/application/lib/install-common-dependencies.js +0 -29
- package/src/generators/application/lib/install-common-dependencies.js.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts +0 -5
- package/src/generators/application/lib/normalize-options.js +0 -60
- package/src/generators/application/lib/normalize-options.js.map +0 -1
- package/src/generators/application/lib/set-defaults.d.ts +0 -3
- package/src/generators/application/lib/set-defaults.js +0 -23
- package/src/generators/application/lib/set-defaults.js.map +0 -1
- package/src/generators/application/lib/update-jest-config.d.ts +0 -3
- package/src/generators/application/lib/update-jest-config.js +0 -30
- package/src/generators/application/lib/update-jest-config.js.map +0 -1
- package/src/generators/application/schema.d.ts +0 -45
- package/src/generators/application/schema.json +0 -202
- package/src/generators/component/component.d.ts +0 -5
- package/src/generators/component/component.js +0 -141
- package/src/generators/component/component.js.map +0 -1
- package/src/generators/component/files/__fileName__.__style__ +0 -0
- package/src/generators/component/files/__fileName__.module.__style__ +0 -7
- package/src/generators/component/files/__fileName__.spec.tsx__tmpl__ +0 -7
- package/src/generators/component/files/__fileName__.tsx__tmpl__ +0 -71
- package/src/generators/component/get-component-tests.d.ts +0 -2
- package/src/generators/component/get-component-tests.js +0 -13
- package/src/generators/component/get-component-tests.js.map +0 -1
- package/src/generators/component/noramlized-schema.d.ts +0 -8
- package/src/generators/component/noramlized-schema.js +0 -3
- package/src/generators/component/noramlized-schema.js.map +0 -1
- package/src/generators/component/schema.d.ts +0 -20
- package/src/generators/component/schema.json +0 -153
- package/src/generators/component-cypress-spec/component-cypress-spec.d.ts +0 -14
- package/src/generators/component-cypress-spec/component-cypress-spec.js +0 -105
- package/src/generators/component-cypress-spec/component-cypress-spec.js.map +0 -1
- package/src/generators/component-cypress-spec/files/__componentName__.__fileExt__ +0 -13
- package/src/generators/component-cypress-spec/schema.json +0 -44
- package/src/generators/component-story/component-story.d.ts +0 -12
- package/src/generators/component-story/component-story.js +0 -81
- package/src/generators/component-story/component-story.js.map +0 -1
- package/src/generators/component-story/files/__componentFileName__.stories.__fileExt__ +0 -32
- package/src/generators/component-story/schema.json +0 -36
- package/src/generators/component-test/component-test.d.ts +0 -4
- package/src/generators/component-test/component-test.js +0 -78
- package/src/generators/component-test/component-test.js.map +0 -1
- package/src/generators/component-test/files/__fileName__.cy__ext__ +0 -21
- package/src/generators/component-test/schema.d.ts +0 -4
- package/src/generators/component-test/schema.js +0 -3
- package/src/generators/component-test/schema.js.map +0 -1
- package/src/generators/component-test/schema.json +0 -31
- package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts +0 -9
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +0 -34
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js.map +0 -1
- package/src/generators/cypress-component-configuration/files/cypress/support/commands.ts__tpl__ +0 -42
- package/src/generators/cypress-component-configuration/files/cypress.config.ts__tpl__ +0 -8
- package/src/generators/cypress-component-configuration/lib/add-files.d.ts +0 -4
- package/src/generators/cypress-component-configuration/lib/add-files.js +0 -75
- package/src/generators/cypress-component-configuration/lib/add-files.js.map +0 -1
- package/src/generators/cypress-component-configuration/lib/update-configs.d.ts +0 -7
- package/src/generators/cypress-component-configuration/lib/update-configs.js +0 -30
- package/src/generators/cypress-component-configuration/lib/update-configs.js.map +0 -1
- package/src/generators/cypress-component-configuration/schema.d.ts +0 -7
- package/src/generators/cypress-component-configuration/schema.json +0 -54
- package/src/generators/hook/files/__fileName__.spec.tsx__tmpl__ +0 -18
- package/src/generators/hook/files/__fileName__.ts__tmpl__ +0 -15
- package/src/generators/hook/hook.d.ts +0 -5
- package/src/generators/hook/hook.js +0 -117
- package/src/generators/hook/hook.js.map +0 -1
- package/src/generators/hook/schema.d.ts +0 -11
- package/src/generators/hook/schema.json +0 -77
- package/src/generators/host/files/common/src/app/__fileName__.tsx__tmpl__ +0 -33
- package/src/generators/host/files/module-federation/module-federation.config.js__tmpl__ +0 -6
- package/src/generators/host/files/module-federation/src/main.ts__tmpl__ +0 -1
- package/src/generators/host/files/module-federation/src/remotes.d.ts__tmpl__ +0 -4
- package/src/generators/host/files/module-federation/webpack.config.js__tmpl__ +0 -12
- package/src/generators/host/files/module-federation/webpack.config.prod.js__tmpl__ +0 -32
- package/src/generators/host/files/module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -13
- package/src/generators/host/files/module-federation-ssr/server.ts__tmpl__ +0 -28
- package/src/generators/host/files/module-federation-ssr/tsconfig.server.json__tmpl__ +0 -15
- package/src/generators/host/files/module-federation-ssr/webpack.server.config.js__tmpl__ +0 -12
- package/src/generators/host/host.d.ts +0 -4
- package/src/generators/host/host.js +0 -67
- package/src/generators/host/host.js.map +0 -1
- package/src/generators/host/lib/add-module-federation-files.d.ts +0 -5
- package/src/generators/host/lib/add-module-federation-files.js +0 -21
- package/src/generators/host/lib/add-module-federation-files.js.map +0 -1
- package/src/generators/host/lib/setup-ssr-for-host.d.ts +0 -6
- package/src/generators/host/lib/setup-ssr-for-host.js +0 -27
- package/src/generators/host/lib/setup-ssr-for-host.js.map +0 -1
- package/src/generators/host/lib/update-module-federation-e2e-project.d.ts +0 -3
- package/src/generators/host/lib/update-module-federation-e2e-project.js +0 -16
- package/src/generators/host/lib/update-module-federation-e2e-project.js.map +0 -1
- package/src/generators/host/schema.d.ts +0 -32
- package/src/generators/host/schema.json +0 -174
- package/src/generators/init/init.d.ts +0 -5
- package/src/generators/init/init.js +0 -80
- package/src/generators/init/init.js.map +0 -1
- package/src/generators/init/schema.d.ts +0 -11
- package/src/generators/init/schema.json +0 -49
- package/src/generators/library/files/common/.babelrc__tmpl__ +0 -16
- package/src/generators/library/files/common/README.md +0 -7
- package/src/generators/library/files/common/package.json__tmpl__ +0 -4
- package/src/generators/library/files/common/src/index.ts__tmpl__ +0 -0
- package/src/generators/library/files/common/tsconfig.lib.json__tmpl__ +0 -14
- package/src/generators/library/files/vite/README.md +0 -7
- package/src/generators/library/files/vite/package.json__tmpl__ +0 -12
- package/src/generators/library/files/vite/tsconfig.lib.json__tmpl__ +0 -14
- package/src/generators/library/lib/add-linting.d.ts +0 -3
- package/src/generators/library/lib/add-linting.js +0 -38
- package/src/generators/library/lib/add-linting.js.map +0 -1
- package/src/generators/library/lib/add-rollup-build-target.d.ts +0 -3
- package/src/generators/library/lib/add-rollup-build-target.js +0 -59
- package/src/generators/library/lib/add-rollup-build-target.js.map +0 -1
- package/src/generators/library/lib/create-files.d.ts +0 -3
- package/src/generators/library/lib/create-files.js +0 -26
- package/src/generators/library/lib/create-files.js.map +0 -1
- package/src/generators/library/lib/install-common-dependencies.d.ts +0 -3
- package/src/generators/library/lib/install-common-dependencies.js +0 -30
- package/src/generators/library/lib/install-common-dependencies.js.map +0 -1
- package/src/generators/library/lib/maybe-js.d.ts +0 -2
- package/src/generators/library/lib/maybe-js.js +0 -10
- package/src/generators/library/lib/maybe-js.js.map +0 -1
- package/src/generators/library/lib/normalize-options.d.ts +0 -3
- package/src/generators/library/lib/normalize-options.js +0 -57
- package/src/generators/library/lib/normalize-options.js.map +0 -1
- package/src/generators/library/lib/set-defaults.d.ts +0 -3
- package/src/generators/library/lib/set-defaults.js +0 -16
- package/src/generators/library/lib/set-defaults.js.map +0 -1
- package/src/generators/library/lib/update-app-routes.d.ts +0 -3
- package/src/generators/library/lib/update-app-routes.js +0 -63
- package/src/generators/library/lib/update-app-routes.js.map +0 -1
- package/src/generators/library/library.d.ts +0 -5
- package/src/generators/library/library.js +0 -126
- package/src/generators/library/library.js.map +0 -1
- package/src/generators/library/schema.d.ts +0 -44
- package/src/generators/library/schema.json +0 -198
- package/src/generators/redux/files/__directory__/__fileName__.slice.spec.ts__tmpl__ +0 -53
- package/src/generators/redux/files/__directory__/__fileName__.slice.ts__tmpl__ +0 -129
- package/src/generators/redux/redux.d.ts +0 -5
- package/src/generators/redux/redux.js +0 -117
- package/src/generators/redux/redux.js.map +0 -1
- package/src/generators/redux/schema.d.ts +0 -20
- package/src/generators/redux/schema.json +0 -47
- package/src/generators/remote/files/module-federation/module-federation.config.js__tmpl__ +0 -6
- package/src/generators/remote/files/module-federation/src/main.ts__tmpl__ +0 -1
- package/src/generators/remote/files/module-federation/src/remote-entry.ts__tmpl__ +0 -1
- package/src/generators/remote/files/module-federation/webpack.config.js__tmpl__ +0 -12
- package/src/generators/remote/files/module-federation/webpack.config.prod.js__tmpl__ +0 -1
- package/src/generators/remote/files/module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -6
- package/src/generators/remote/files/module-federation-ssr/server.ts__tmpl__ +0 -45
- package/src/generators/remote/files/module-federation-ssr/webpack.server.config.js__tmpl__ +0 -12
- package/src/generators/remote/lib/setup-ssr-for-remote.d.ts +0 -4
- package/src/generators/remote/lib/setup-ssr-for-remote.js +0 -32
- package/src/generators/remote/lib/setup-ssr-for-remote.js.map +0 -1
- package/src/generators/remote/lib/update-host-with-remote.d.ts +0 -2
- package/src/generators/remote/lib/update-host-with-remote.js +0 -53
- package/src/generators/remote/lib/update-host-with-remote.js.map +0 -1
- package/src/generators/remote/remote.d.ts +0 -6
- package/src/generators/remote/remote.js +0 -56
- package/src/generators/remote/remote.js.map +0 -1
- package/src/generators/remote/schema.d.ts +0 -27
- package/src/generators/remote/schema.json +0 -173
- package/src/generators/setup-ssr/files/server.ts__tmpl__ +0 -28
- package/src/generators/setup-ssr/files/src/main.server.tsx__tmpl__ +0 -47
- package/src/generators/setup-ssr/files/tsconfig.server.json__tmpl__ +0 -15
- package/src/generators/setup-ssr/schema.d.ts +0 -7
- package/src/generators/setup-ssr/schema.json +0 -48
- package/src/generators/setup-ssr/setup-ssr.d.ts +0 -5
- package/src/generators/setup-ssr/setup-ssr.js +0 -162
- package/src/generators/setup-ssr/setup-ssr.js.map +0 -1
- package/src/generators/setup-tailwind/files/postcss.config.js__tmpl__ +0 -15
- package/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ +0 -17
- package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +0 -3
- package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +0 -36
- package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js.map +0 -1
- package/src/generators/setup-tailwind/lib/update-project.d.ts +0 -3
- package/src/generators/setup-tailwind/lib/update-project.js +0 -15
- package/src/generators/setup-tailwind/lib/update-project.js.map +0 -1
- package/src/generators/setup-tailwind/schema.d.ts +0 -6
- package/src/generators/setup-tailwind/schema.js +0 -3
- package/src/generators/setup-tailwind/schema.js.map +0 -1
- package/src/generators/setup-tailwind/schema.json +0 -47
- package/src/generators/setup-tailwind/setup-tailwind.d.ts +0 -5
- package/src/generators/setup-tailwind/setup-tailwind.js +0 -39
- package/src/generators/setup-tailwind/setup-tailwind.js.map +0 -1
- package/src/generators/stories/schema.json +0 -59
- package/src/generators/stories/stories.d.ts +0 -15
- package/src/generators/stories/stories.js +0 -118
- package/src/generators/stories/stories.js.map +0 -1
- package/src/generators/storybook-configuration/configuration.d.ts +0 -5
- package/src/generators/storybook-configuration/configuration.js +0 -65
- package/src/generators/storybook-configuration/configuration.js.map +0 -1
- package/src/generators/storybook-configuration/schema.d.ts +0 -18
- package/src/generators/storybook-configuration/schema.json +0 -109
- package/src/migrations/update-12-0-0/remove-react-redux-types-package.d.ts +0 -3
- package/src/migrations/update-12-0-0/remove-react-redux-types-package.js +0 -13
- package/src/migrations/update-12-0-0/remove-react-redux-types-package.js.map +0 -1
- package/src/migrations/update-12-0-0/update-emotion-setup.d.ts +0 -3
- package/src/migrations/update-12-0-0/update-emotion-setup.js +0 -67
- package/src/migrations/update-12-0-0/update-emotion-setup.js.map +0 -1
- package/src/migrations/update-12-0-0/use-react-jsx-in-tsconfig.d.ts +0 -3
- package/src/migrations/update-12-0-0/use-react-jsx-in-tsconfig.js +0 -27
- package/src/migrations/update-12-0-0/use-react-jsx-in-tsconfig.js.map +0 -1
- package/src/migrations/update-12-8-0/update-12-8-0.d.ts +0 -3
- package/src/migrations/update-12-8-0/update-12-8-0.js +0 -15
- package/src/migrations/update-12-8-0/update-12-8-0.js.map +0 -1
- package/src/migrations/update-13-0-0/migrate-storybook-to-webpack-5.d.ts +0 -3
- package/src/migrations/update-13-0-0/migrate-storybook-to-webpack-5.js +0 -38
- package/src/migrations/update-13-0-0/migrate-storybook-to-webpack-5.js.map +0 -1
- package/src/migrations/update-13-0-0/update-emotion-setup.d.ts +0 -3
- package/src/migrations/update-13-0-0/update-emotion-setup.js +0 -39
- package/src/migrations/update-13-0-0/update-emotion-setup.js.map +0 -1
- package/src/migrations/update-13-0-0/webpack5-changes-utils.d.ts +0 -11
- package/src/migrations/update-13-0-0/webpack5-changes-utils.js +0 -269
- package/src/migrations/update-13-0-0/webpack5-changes-utils.js.map +0 -1
- package/src/migrations/update-13-10-0/update-13-10-0.d.ts +0 -3
- package/src/migrations/update-13-10-0/update-13-10-0.js +0 -29
- package/src/migrations/update-13-10-0/update-13-10-0.js.map +0 -1
- package/src/migrations/update-14-0-0/add-default-development-configurations.d.ts +0 -3
- package/src/migrations/update-14-0-0/add-default-development-configurations.js +0 -40
- package/src/migrations/update-14-0-0/add-default-development-configurations.js.map +0 -1
- package/src/migrations/update-14-0-0/replace-testing-library-react-hook.d.ts +0 -3
- package/src/migrations/update-14-0-0/replace-testing-library-react-hook.js +0 -27
- package/src/migrations/update-14-0-0/replace-testing-library-react-hook.js.map +0 -1
- package/src/migrations/update-14-0-0/update-react-dom-render-for-v18.d.ts +0 -5
- package/src/migrations/update-14-0-0/update-react-dom-render-for-v18.js +0 -69
- package/src/migrations/update-14-0-0/update-react-dom-render-for-v18.js.map +0 -1
- package/src/migrations/update-14-1-0/update-external-emotion-jsx-runtime.d.ts +0 -3
- package/src/migrations/update-14-1-0/update-external-emotion-jsx-runtime.js +0 -38
- package/src/migrations/update-14-1-0/update-external-emotion-jsx-runtime.js.map +0 -1
- package/src/migrations/update-14-6-0/add-preset-jest-config.d.ts +0 -3
- package/src/migrations/update-14-6-0/add-preset-jest-config.js +0 -40
- package/src/migrations/update-14-6-0/add-preset-jest-config.js.map +0 -1
- package/src/migrations/update-15-3-0/install-webpack-rollup-dependencies.d.ts +0 -3
- package/src/migrations/update-15-3-0/install-webpack-rollup-dependencies.js +0 -39
- package/src/migrations/update-15-3-0/install-webpack-rollup-dependencies.js.map +0 -1
- package/src/migrations/update-15-3-0/update-rollup-executor.d.ts +0 -3
- package/src/migrations/update-15-3-0/update-rollup-executor.js +0 -17
- package/src/migrations/update-15-3-0/update-rollup-executor.js.map +0 -1
- package/src/migrations/update-15-6-3/webpack-config-setup.d.ts +0 -2
- package/src/migrations/update-15-6-3/webpack-config-setup.js +0 -108
- package/src/migrations/update-15-6-3/webpack-config-setup.js.map +0 -1
- package/src/module-federation/ast-utils.d.ts +0 -8
- package/src/module-federation/ast-utils.js +0 -103
- package/src/module-federation/ast-utils.js.map +0 -1
- package/src/module-federation/load-config.d.ts +0 -3
- package/src/module-federation/load-config.js +0 -17
- package/src/module-federation/load-config.js.map +0 -1
- package/src/module-federation/models.d.ts +0 -24
- package/src/module-federation/models.js +0 -3
- package/src/module-federation/models.js.map +0 -1
- package/src/module-federation/package-json.d.ts +0 -8
- package/src/module-federation/package-json.js +0 -14
- package/src/module-federation/package-json.js.map +0 -1
- package/src/module-federation/utils.d.ts +0 -10
- package/src/module-federation/utils.js +0 -38
- package/src/module-federation/utils.js.map +0 -1
- package/src/module-federation/with-module-federation-ssr.d.ts +0 -2
- package/src/module-federation/with-module-federation-ssr.js +0 -48
- package/src/module-federation/with-module-federation-ssr.js.map +0 -1
- package/src/module-federation/with-module-federation.d.ts +0 -7
- package/src/module-federation/with-module-federation.js +0 -50
- package/src/module-federation/with-module-federation.js.map +0 -1
- package/src/rules/add-styled-dependencies.d.ts +0 -2
- package/src/rules/add-styled-dependencies.js +0 -16
- package/src/rules/add-styled-dependencies.js.map +0 -1
- package/src/rules/update-module-federation-project.d.ts +0 -6
- package/src/rules/update-module-federation-project.js +0 -34
- package/src/rules/update-module-federation-project.js.map +0 -1
- package/src/utils/assertion.d.ts +0 -1
- package/src/utils/assertion.js +0 -20
- package/src/utils/assertion.js.map +0 -1
- package/src/utils/ast-utils.d.ts +0 -29
- package/src/utils/ast-utils.js +0 -526
- package/src/utils/ast-utils.js.map +0 -1
- package/src/utils/component-props.d.ts +0 -15
- package/src/utils/component-props.js +0 -61
- package/src/utils/component-props.js.map +0 -1
- package/src/utils/create-ts-config.d.ts +0 -9
- package/src/utils/create-ts-config.js +0 -64
- package/src/utils/create-ts-config.js.map +0 -1
- package/src/utils/dependencies.d.ts +0 -7
- package/src/utils/dependencies.js +0 -3
- package/src/utils/dependencies.js.map +0 -1
- package/src/utils/format-file.d.ts +0 -1
- package/src/utils/format-file.js +0 -13
- package/src/utils/format-file.js.map +0 -1
- package/src/utils/get-in-source-vitest-tests-template.d.ts +0 -1
- package/src/utils/get-in-source-vitest-tests-template.js +0 -22
- package/src/utils/get-in-source-vitest-tests-template.js.map +0 -1
- package/src/utils/jest-utils.d.ts +0 -1
- package/src/utils/jest-utils.js +0 -10
- package/src/utils/jest-utils.js.map +0 -1
- package/src/utils/lint.d.ts +0 -37
- package/src/utils/lint.js +0 -68
- package/src/utils/lint.js.map +0 -1
- package/src/utils/styled.d.ts +0 -4
- package/src/utils/styled.js +0 -33
- package/src/utils/styled.js.map +0 -1
- package/src/utils/testing-generators.d.ts +0 -3
- package/src/utils/testing-generators.js +0 -36
- package/src/utils/testing-generators.js.map +0 -1
- package/src/utils/versions.d.ts +0 -43
- package/src/utils/versions.js +0 -51
- package/src/utils/versions.js.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { composePlugins, withNx } = require('@nrwl/webpack');
|
|
2
|
-
const { withReact } = require('@nrwl/react');
|
|
3
|
-
const { withModuleFederation } = require('@nrwl/react/module-federation');
|
|
4
|
-
|
|
5
|
-
const baseConfig = require('./module-federation.config');
|
|
6
|
-
|
|
7
|
-
const config = {
|
|
8
|
-
...baseConfig,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// Nx plugins for webpack to build config object from Nx options and context.
|
|
12
|
-
module.exports = composePlugins(withNx(), withReact(), withModuleFederation(config));
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const { composePlugins, withNx } = require('@nrwl/webpack');
|
|
2
|
-
const { withReact } = require('@nrwl/react');
|
|
3
|
-
const { withModuleFederation } = require('@nrwl/react/module-federation');
|
|
4
|
-
|
|
5
|
-
const baseConfig = require('./module-federation.config');
|
|
6
|
-
|
|
7
|
-
const prodConfig = {
|
|
8
|
-
...baseConfig,
|
|
9
|
-
/*
|
|
10
|
-
* Remote overrides for production.
|
|
11
|
-
* Each entry is a pair of a unique name and the URL where it is deployed.
|
|
12
|
-
*
|
|
13
|
-
* e.g.
|
|
14
|
-
* remotes: [
|
|
15
|
-
* ['app1', 'http://app1.example.com'],
|
|
16
|
-
* ['app2', 'http://app2.example.com'],
|
|
17
|
-
* ]
|
|
18
|
-
*
|
|
19
|
-
* You can also use a full path to the remoteEntry.js file if desired.
|
|
20
|
-
*
|
|
21
|
-
* remotes: [
|
|
22
|
-
* ['app1', 'http://example.com/path/to/app1/remoteEntry.js'],
|
|
23
|
-
* ['app2', 'http://example.com/path/to/app2/remoteEntry.js'],
|
|
24
|
-
* ]
|
|
25
|
-
*/
|
|
26
|
-
remotes: [
|
|
27
|
-
<% remotes.forEach(function(r) {%>['<%= r.fileName %>', 'http://localhost:<%= r.port %>/'],<% }); %>
|
|
28
|
-
],
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
// Nx plugins for webpack to build config object from Nx options and context.
|
|
32
|
-
module.exports = composePlugins(withNx(), withReact(), withModuleFederation(prodConfig));
|
package/src/generators/host/files/module-federation-ssr/module-federation.server.config.js__tmpl__
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @type {import('@nrwl/devkit').ModuleFederationConfig}
|
|
5
|
-
**/
|
|
6
|
-
const moduleFederationConfig = {
|
|
7
|
-
name: '<%= projectName %>',
|
|
8
|
-
remotes: [
|
|
9
|
-
<% remotes.forEach(function(r) {%> "<%= r.fileName %>", <% }); %>
|
|
10
|
-
],
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
module.exports = moduleFederationConfig;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as path from 'path';
|
|
2
|
-
import express from 'express';
|
|
3
|
-
import cors from 'cors';
|
|
4
|
-
|
|
5
|
-
import { handleRequest } from './src/main.server';
|
|
6
|
-
|
|
7
|
-
const port = process.env['PORT'] || 4200;
|
|
8
|
-
const app = express();
|
|
9
|
-
|
|
10
|
-
const browserDist = path.join(process.cwd(), '<%= browserBuildOutputPath %>');
|
|
11
|
-
const indexPath = path.join(browserDist, 'index.html');
|
|
12
|
-
|
|
13
|
-
app.use(cors());
|
|
14
|
-
|
|
15
|
-
app.get(
|
|
16
|
-
'*.*',
|
|
17
|
-
express.static(browserDist, {
|
|
18
|
-
maxAge: '1y',
|
|
19
|
-
})
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
app.use('*', handleRequest(indexPath));
|
|
23
|
-
|
|
24
|
-
const server = app.listen(port, () => {
|
|
25
|
-
console.log(`Express server listening on http://localhost:${port}`);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
server.on('error', console.error);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { composePlugins, withNx } = require('@nrwl/webpack');
|
|
2
|
-
const { withReact } = require('@nrwl/react');
|
|
3
|
-
const { withModuleFederationForSSR } = require('@nrwl/react/module-federation');
|
|
4
|
-
|
|
5
|
-
const baseConfig = require('./module-federation.config');
|
|
6
|
-
|
|
7
|
-
const defaultConfig = {
|
|
8
|
-
...baseConfig
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// Nx plugins for webpack to build config object from Nx options and context.
|
|
12
|
-
module.exports = composePlugins(withNx(), withReact(), withModuleFederationForSSR(defaultConfig));
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hostGenerator = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
const application_1 = require("../application/application");
|
|
7
|
-
const normalize_options_1 = require("../application/lib/normalize-options");
|
|
8
|
-
const update_module_federation_project_1 = require("../../rules/update-module-federation-project");
|
|
9
|
-
const add_module_federation_files_1 = require("./lib/add-module-federation-files");
|
|
10
|
-
const update_module_federation_e2e_project_1 = require("./lib/update-module-federation-e2e-project");
|
|
11
|
-
const remote_1 = require("../remote/remote");
|
|
12
|
-
const setup_ssr_1 = require("../setup-ssr/setup-ssr");
|
|
13
|
-
const setup_ssr_for_host_1 = require("./lib/setup-ssr-for-host");
|
|
14
|
-
function hostGenerator(host, schema) {
|
|
15
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
const tasks = [];
|
|
17
|
-
const options = (0, normalize_options_1.normalizeOptions)(host, schema);
|
|
18
|
-
const initTask = yield (0, application_1.default)(host, Object.assign(Object.assign({}, options), {
|
|
19
|
-
// The target use-case is loading remotes as child routes, thus always enable routing.
|
|
20
|
-
routing: true,
|
|
21
|
-
// Only webpack works with module federation for now.
|
|
22
|
-
bundler: 'webpack', skipFormat: true }));
|
|
23
|
-
tasks.push(initTask);
|
|
24
|
-
const remotesWithPorts = [];
|
|
25
|
-
if (schema.remotes) {
|
|
26
|
-
let remotePort = options.devServerPort + 1;
|
|
27
|
-
for (const remote of schema.remotes) {
|
|
28
|
-
remotesWithPorts.push({ name: remote, port: remotePort });
|
|
29
|
-
yield (0, remote_1.default)(host, {
|
|
30
|
-
name: remote,
|
|
31
|
-
directory: options.directory,
|
|
32
|
-
style: options.style,
|
|
33
|
-
unitTestRunner: options.unitTestRunner,
|
|
34
|
-
e2eTestRunner: options.e2eTestRunner,
|
|
35
|
-
linter: options.linter,
|
|
36
|
-
devServerPort: remotePort,
|
|
37
|
-
ssr: options.ssr,
|
|
38
|
-
skipFormat: true,
|
|
39
|
-
});
|
|
40
|
-
remotePort++;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
(0, add_module_federation_files_1.addModuleFederationFiles)(host, options, remotesWithPorts);
|
|
44
|
-
(0, update_module_federation_project_1.updateModuleFederationProject)(host, options);
|
|
45
|
-
(0, update_module_federation_e2e_project_1.updateModuleFederationE2eProject)(host, options);
|
|
46
|
-
if (options.ssr) {
|
|
47
|
-
const setupSsrTask = yield (0, setup_ssr_1.default)(host, {
|
|
48
|
-
project: options.projectName,
|
|
49
|
-
serverPort: options.devServerPort,
|
|
50
|
-
skipFormat: true,
|
|
51
|
-
});
|
|
52
|
-
tasks.push(setupSsrTask);
|
|
53
|
-
const setupSsrForHostTask = yield (0, setup_ssr_for_host_1.setupSsrForHost)(host, options, options.projectName, remotesWithPorts);
|
|
54
|
-
tasks.push(setupSsrForHostTask);
|
|
55
|
-
const projectConfig = (0, devkit_1.readProjectConfiguration)(host, options.projectName);
|
|
56
|
-
projectConfig.targets.server.options.webpackConfig = (0, devkit_1.joinPathFragments)(projectConfig.root, 'webpack.server.config.js');
|
|
57
|
-
(0, devkit_1.updateProjectConfiguration)(host, options.projectName, projectConfig);
|
|
58
|
-
}
|
|
59
|
-
if (!options.skipFormat) {
|
|
60
|
-
yield (0, devkit_1.formatFiles)(host);
|
|
61
|
-
}
|
|
62
|
-
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
exports.hostGenerator = hostGenerator;
|
|
66
|
-
exports.default = hostGenerator;
|
|
67
|
-
//# sourceMappingURL=host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host.js","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/host/host.ts"],"names":[],"mappings":";;;;AAAA,yCAQsB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;
|
|
4
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const normalize_options_1 = require("../../application/lib/normalize-options");
|
|
7
|
-
function addModuleFederationFiles(host, options, defaultRemoteManifest) {
|
|
8
|
-
const templateVariables = Object.assign(Object.assign(Object.assign({}, (0, devkit_1.names)(options.name)), options), { tmpl: '', remotes: defaultRemoteManifest.map(({ name, port }) => {
|
|
9
|
-
const remote = (0, normalize_options_1.normalizeProjectName)(Object.assign(Object.assign({}, options), { name }));
|
|
10
|
-
return Object.assign(Object.assign({}, (0, devkit_1.names)(remote)), { port });
|
|
11
|
-
}) });
|
|
12
|
-
// Module federation requires bootstrap code to be dynamically imported.
|
|
13
|
-
// Renaming original entry file so we can use `import(./bootstrap)` in
|
|
14
|
-
// new entry file.
|
|
15
|
-
host.rename((0, path_1.join)(options.appProjectRoot, 'src/main.tsx'), (0, path_1.join)(options.appProjectRoot, 'src/bootstrap.tsx'));
|
|
16
|
-
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, `../files/common`), options.appProjectRoot, templateVariables);
|
|
17
|
-
// New entry file is created here.
|
|
18
|
-
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, `../files/module-federation`), options.appProjectRoot, templateVariables);
|
|
19
|
-
}
|
|
20
|
-
exports.addModuleFederationFiles = addModuleFederationFiles;
|
|
21
|
-
//# sourceMappingURL=add-module-federation-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-module-federation-files.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/host/lib/add-module-federation-files.ts"],"names":[],"mappings":";;;AACA,yCAAoD;AACpD,+BAA4B;AAC5B,+EAA+E;AAE/E,SAAgB,wBAAwB,CACtC,IAAI,EACJ,OAAyB,EACzB,qBAAuD;IAEvD,MAAM,iBAAiB,iDAClB,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,GACnB,OAAO,KACV,IAAI,EAAE,EAAE,EACR,OAAO,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;YACpD,MAAM,MAAM,GAAG,IAAA,wCAAoB,kCAAM,OAAO,KAAE,IAAI,IAAG,CAAC;YAC1D,uCACK,IAAA,cAAK,EAAC,MAAM,CAAC,KAChB,IAAI,IACJ;QACJ,CAAC,CAAC,GACH,CAAC;IAEF,wEAAwE;IACxE,sEAAsE;IACtE,kBAAkB;IAClB,IAAI,CAAC,MAAM,CACT,IAAA,WAAI,EAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAC5C,IAAA,WAAI,EAAC,OAAO,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAClD,CAAC;IAEF,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC,EAClC,OAAO,CAAC,cAAc,EACtB,iBAAiB,CAClB,CAAC;IAEF,kCAAkC;IAClC,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,WAAI,EAAC,SAAS,EAAE,4BAA4B,CAAC,EAC7C,OAAO,CAAC,cAAc,EACtB,iBAAiB,CAClB,CAAC;AACJ,CAAC;AAxCD,4DAwCC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { GeneratorCallback, Tree } from '@nrwl/devkit';
|
|
2
|
-
import type { Schema } from '../schema';
|
|
3
|
-
export declare function setupSsrForHost(tree: Tree, options: Schema, appName: string, defaultRemoteManifest: {
|
|
4
|
-
name: string;
|
|
5
|
-
port: number;
|
|
6
|
-
}[]): Promise<GeneratorCallback>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setupSsrForHost = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
const versions_1 = require("../../../utils/versions");
|
|
7
|
-
const normalize_options_1 = require("../../application/lib/normalize-options");
|
|
8
|
-
function setupSsrForHost(tree, options, appName, defaultRemoteManifest) {
|
|
9
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
|
-
const tasks = [];
|
|
11
|
-
let project = (0, devkit_1.readProjectConfiguration)(tree, appName);
|
|
12
|
-
project.targets.serve.executor =
|
|
13
|
-
'@nrwl/react:module-federation-ssr-dev-server';
|
|
14
|
-
(0, devkit_1.updateProjectConfiguration)(tree, appName, project);
|
|
15
|
-
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, '../files/module-federation-ssr'), project.root, Object.assign(Object.assign({}, options), { remotes: defaultRemoteManifest.map(({ name, port }) => {
|
|
16
|
-
const remote = (0, normalize_options_1.normalizeProjectName)(Object.assign(Object.assign({}, options), { name }));
|
|
17
|
-
return Object.assign(Object.assign({}, (0, devkit_1.names)(remote)), { port });
|
|
18
|
-
}), appName, tmpl: '', browserBuildOutputPath: project.targets.build.options.outputPath }));
|
|
19
|
-
const installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
20
|
-
'@module-federation/node': versions_1.moduleFederationNodeVersion,
|
|
21
|
-
}, {});
|
|
22
|
-
tasks.push(installTask);
|
|
23
|
-
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
exports.setupSsrForHost = setupSsrForHost;
|
|
27
|
-
//# sourceMappingURL=setup-ssr-for-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-ssr-for-host.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/host/lib/setup-ssr-for-host.ts"],"names":[],"mappings":";;;;AACA,yCAQsB;AAGtB,sDAAsE;AACtE,+EAA+E;AAE/E,SAAsB,eAAe,CACnC,IAAU,EACV,OAAe,EACf,OAAe,EACf,qBAAuD;;QAEvD,MAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,IAAI,OAAO,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACtD,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ;YAC5B,8CAA8C,CAAC;QACjD,IAAA,mCAA0B,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAEnD,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,0BAAiB,EAAC,SAAS,EAAE,gCAAgC,CAAC,EAC9D,OAAO,CAAC,IAAI,kCAEP,OAAO,KACV,OAAO,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;gBACpD,MAAM,MAAM,GAAG,IAAA,wCAAoB,kCAAM,OAAO,KAAE,IAAI,IAAG,CAAC;gBAC1D,uCACK,IAAA,cAAK,EAAC,MAAM,CAAC,KAChB,IAAI,IACJ;YACJ,CAAC,CAAC,EACF,OAAO,EACP,IAAI,EAAE,EAAE,EACR,sBAAsB,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,IAEnE,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,qCAA4B,EAC9C,IAAI,EACJ;YACE,yBAAyB,EAAE,sCAA2B;SACvD,EACD,EAAE,CACH,CAAC;QACF,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAExB,OAAO,IAAA,yBAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AAzCD,0CAyCC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateModuleFederationE2eProject = void 0;
|
|
4
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
function updateModuleFederationE2eProject(host, options) {
|
|
6
|
-
try {
|
|
7
|
-
let projectConfig = (0, devkit_1.readProjectConfiguration)(host, options.e2eProjectName);
|
|
8
|
-
projectConfig.targets.e2e.options = Object.assign(Object.assign({}, projectConfig.targets.e2e.options), { baseUrl: `http://localhost:${options.devServerPort}` });
|
|
9
|
-
(0, devkit_1.updateProjectConfiguration)(host, options.e2eProjectName, projectConfig);
|
|
10
|
-
}
|
|
11
|
-
catch (_a) {
|
|
12
|
-
// nothing
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.updateModuleFederationE2eProject = updateModuleFederationE2eProject;
|
|
16
|
-
//# sourceMappingURL=update-module-federation-e2e-project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-module-federation-e2e-project.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/host/lib/update-module-federation-e2e-project.ts"],"names":[],"mappings":";;;AACA,yCAIsB;AAEtB,SAAgB,gCAAgC,CAC9C,IAAU,EACV,OAAyB;IAEzB,IAAI;QACF,IAAI,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;QAC3E,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,mCAC5B,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,KACpC,OAAO,EAAE,oBAAoB,OAAO,CAAC,aAAa,EAAE,GACrD,CAAC;QACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;KACzE;IAAC,WAAM;QACN,UAAU;KACX;AACH,CAAC;AAdD,4EAcC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Linter } from '@nrwl/linter';
|
|
2
|
-
import { SupportedStyles } from '../../../typings';
|
|
3
|
-
|
|
4
|
-
export interface Schema {
|
|
5
|
-
classComponent?: boolean;
|
|
6
|
-
compiler?: 'babel' | 'swc';
|
|
7
|
-
devServerPort?: number;
|
|
8
|
-
directory?: string;
|
|
9
|
-
e2eTestRunner: 'cypress' | 'none';
|
|
10
|
-
globalCss?: boolean;
|
|
11
|
-
js?: boolean;
|
|
12
|
-
linter: Linter;
|
|
13
|
-
name: string;
|
|
14
|
-
pascalCaseFiles?: boolean;
|
|
15
|
-
remotes?: string[];
|
|
16
|
-
setParserOptionsProject?: boolean;
|
|
17
|
-
skipFormat?: boolean;
|
|
18
|
-
skipWorkspaceJson?: boolean;
|
|
19
|
-
ssr?: boolean;
|
|
20
|
-
standaloneConfig?: boolean;
|
|
21
|
-
strict?: boolean;
|
|
22
|
-
style: SupportedStyles;
|
|
23
|
-
tags?: string;
|
|
24
|
-
unitTestRunner: 'jest' | 'vitest' | 'none';
|
|
25
|
-
minimal?: boolean;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface NormalizedSchema extends Schema {
|
|
29
|
-
appProjectRoot: string;
|
|
30
|
-
e2eProjectName: string;
|
|
31
|
-
projectName: string;
|
|
32
|
-
}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "GeneratorReactHost",
|
|
4
|
-
"cli": "nx",
|
|
5
|
-
"title": "Generate Module Federation Setup for React Host App",
|
|
6
|
-
"description": "Create Module Federation configuration files for given React Host Application.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"name": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "The name of the host application to generate the Module Federation configuration",
|
|
12
|
-
"$default": {
|
|
13
|
-
"$source": "argv",
|
|
14
|
-
"index": 0
|
|
15
|
-
},
|
|
16
|
-
"x-prompt": "What name would you like to use as the host application?",
|
|
17
|
-
"pattern": "^[a-zA-Z].*$",
|
|
18
|
-
"x-priority": "important"
|
|
19
|
-
},
|
|
20
|
-
"directory": {
|
|
21
|
-
"description": "The directory of the new application.",
|
|
22
|
-
"type": "string",
|
|
23
|
-
"alias": "dir",
|
|
24
|
-
"x-priority": "important"
|
|
25
|
-
},
|
|
26
|
-
"style": {
|
|
27
|
-
"description": "The file extension to be used for style files.",
|
|
28
|
-
"type": "string",
|
|
29
|
-
"default": "css",
|
|
30
|
-
"alias": "s",
|
|
31
|
-
"x-prompt": {
|
|
32
|
-
"message": "Which stylesheet format would you like to use?",
|
|
33
|
-
"type": "list",
|
|
34
|
-
"items": [
|
|
35
|
-
{
|
|
36
|
-
"value": "css",
|
|
37
|
-
"label": "CSS"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"value": "scss",
|
|
41
|
-
"label": "SASS(.scss) [ http://sass-lang.com ]"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"value": "styl",
|
|
45
|
-
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"value": "less",
|
|
49
|
-
"label": "LESS [ http://lesscss.org ]"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"value": "styled-components",
|
|
53
|
-
"label": "styled-components [ https://styled-components.com ]"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"value": "@emotion/styled",
|
|
57
|
-
"label": "emotion [ https://emotion.sh ]"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"value": "styled-jsx",
|
|
61
|
-
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"value": "none",
|
|
65
|
-
"label": "None"
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"linter": {
|
|
71
|
-
"description": "The tool to use for running lint checks.",
|
|
72
|
-
"type": "string",
|
|
73
|
-
"enum": ["eslint"],
|
|
74
|
-
"default": "eslint"
|
|
75
|
-
},
|
|
76
|
-
"skipFormat": {
|
|
77
|
-
"description": "Skip formatting files.",
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"default": false,
|
|
80
|
-
"x-priority": "internal"
|
|
81
|
-
},
|
|
82
|
-
"skipWorkspaceJson": {
|
|
83
|
-
"description": "Skip updating workspace.json with default options based on values provided to this app (e.g. babel, style).",
|
|
84
|
-
"type": "boolean",
|
|
85
|
-
"default": false,
|
|
86
|
-
"x-priority": "internal"
|
|
87
|
-
},
|
|
88
|
-
"unitTestRunner": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"enum": ["jest", "none"],
|
|
91
|
-
"description": "Test runner to use for unit tests.",
|
|
92
|
-
"default": "jest"
|
|
93
|
-
},
|
|
94
|
-
"e2eTestRunner": {
|
|
95
|
-
"type": "string",
|
|
96
|
-
"enum": ["cypress", "none"],
|
|
97
|
-
"description": "Test runner to use for end to end (e2e) tests.",
|
|
98
|
-
"default": "cypress"
|
|
99
|
-
},
|
|
100
|
-
"tags": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"description": "Add tags to the application (used for linting).",
|
|
103
|
-
"alias": "t"
|
|
104
|
-
},
|
|
105
|
-
"pascalCaseFiles": {
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"description": "Use pascal case component file name (e.g. App.tsx).",
|
|
108
|
-
"alias": "P",
|
|
109
|
-
"default": false
|
|
110
|
-
},
|
|
111
|
-
"classComponent": {
|
|
112
|
-
"type": "boolean",
|
|
113
|
-
"description": "Use class components instead of functional component.",
|
|
114
|
-
"alias": "C",
|
|
115
|
-
"default": false
|
|
116
|
-
},
|
|
117
|
-
"js": {
|
|
118
|
-
"type": "boolean",
|
|
119
|
-
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
120
|
-
"default": false
|
|
121
|
-
},
|
|
122
|
-
"globalCss": {
|
|
123
|
-
"type": "boolean",
|
|
124
|
-
"description": "Default is false. When true, the component is generated with *.css/*.scss instead of *.module.css/*.module.scss",
|
|
125
|
-
"default": false
|
|
126
|
-
},
|
|
127
|
-
"strict": {
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"description": "Creates an application with strict mode and strict type checking",
|
|
130
|
-
"default": true
|
|
131
|
-
},
|
|
132
|
-
"setParserOptionsProject": {
|
|
133
|
-
"type": "boolean",
|
|
134
|
-
"description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
|
|
135
|
-
"default": false
|
|
136
|
-
},
|
|
137
|
-
"standaloneConfig": {
|
|
138
|
-
"description": "Split the project configuration into <projectRoot>/project.json rather than including it inside workspace.json",
|
|
139
|
-
"type": "boolean",
|
|
140
|
-
"default": true,
|
|
141
|
-
"x-deprecated": "Nx only supports standaloneConfig"
|
|
142
|
-
},
|
|
143
|
-
"compiler": {
|
|
144
|
-
"type": "string",
|
|
145
|
-
"description": "The compiler to use",
|
|
146
|
-
"enum": ["babel", "swc"],
|
|
147
|
-
"default": "babel"
|
|
148
|
-
},
|
|
149
|
-
"remotes": {
|
|
150
|
-
"type": "array",
|
|
151
|
-
"description": "A list of remote application names that the host application should consume.",
|
|
152
|
-
"default": [],
|
|
153
|
-
"x-priority": "important"
|
|
154
|
-
},
|
|
155
|
-
"devServerPort": {
|
|
156
|
-
"type": "number",
|
|
157
|
-
"description": "The port for the dev server of the remote app.",
|
|
158
|
-
"default": 4200,
|
|
159
|
-
"x-priority": "important"
|
|
160
|
-
},
|
|
161
|
-
"ssr": {
|
|
162
|
-
"description": "Whether to configure SSR for the host application",
|
|
163
|
-
"type": "boolean",
|
|
164
|
-
"default": false
|
|
165
|
-
},
|
|
166
|
-
"minimal": {
|
|
167
|
-
"description": "Generate a React app with a minimal setup. No nx starter template.",
|
|
168
|
-
"type": "boolean",
|
|
169
|
-
"default": false
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"required": ["name"],
|
|
173
|
-
"additionalProperties": false
|
|
174
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { GeneratorCallback, Tree } from '@nrwl/devkit';
|
|
2
|
-
import { InitSchema } from './schema';
|
|
3
|
-
export declare function reactInitGenerator(host: Tree, schema: InitSchema): Promise<GeneratorCallback>;
|
|
4
|
-
export default reactInitGenerator;
|
|
5
|
-
export declare const reactInitSchematic: (generatorOptions: InitSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reactInitSchematic = exports.reactInitGenerator = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
-
const js_1 = require("@nrwl/js");
|
|
7
|
-
const versions_1 = require("../../utils/versions");
|
|
8
|
-
function setDefault(host) {
|
|
9
|
-
const workspace = (0, devkit_1.readNxJson)(host);
|
|
10
|
-
workspace.generators = workspace.generators || {};
|
|
11
|
-
const reactGenerators = workspace.generators['@nrwl/react'] || {};
|
|
12
|
-
const generators = Object.assign(Object.assign({}, workspace.generators), { '@nrwl/react': Object.assign(Object.assign({}, reactGenerators), { application: Object.assign(Object.assign({}, reactGenerators.application), { babel: true }) }) });
|
|
13
|
-
(0, devkit_1.updateNxJson)(host, Object.assign(Object.assign({}, workspace), { generators }));
|
|
14
|
-
}
|
|
15
|
-
function updateDependencies(host, schema) {
|
|
16
|
-
(0, devkit_1.removeDependenciesFromPackageJson)(host, ['@nrwl/react'], []);
|
|
17
|
-
const dependencies = {
|
|
18
|
-
react: versions_1.reactVersion,
|
|
19
|
-
'react-dom': versions_1.reactDomVersion,
|
|
20
|
-
};
|
|
21
|
-
if (!schema.skipHelperLibs) {
|
|
22
|
-
dependencies['tslib'] = versions_1.tsLibVersion;
|
|
23
|
-
}
|
|
24
|
-
return (0, devkit_1.addDependenciesToPackageJson)(host, dependencies, {
|
|
25
|
-
'@nrwl/react': versions_1.nxVersion,
|
|
26
|
-
'@types/node': versions_1.typesNodeVersion,
|
|
27
|
-
'@types/react': versions_1.typesReactVersion,
|
|
28
|
-
'@types/react-dom': versions_1.typesReactDomVersion,
|
|
29
|
-
'@testing-library/react': versions_1.testingLibraryReactVersion,
|
|
30
|
-
'react-test-renderer': versions_1.reactTestRendererVersion,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function initRootBabelConfig(tree, schema) {
|
|
34
|
-
var _a;
|
|
35
|
-
if (tree.exists('/babel.config.json') || tree.exists('/babel.config.js')) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (!schema.skipBabelConfig) {
|
|
39
|
-
(0, devkit_1.writeJson)(tree, '/babel.config.json', {
|
|
40
|
-
babelrcRoots: ['*'], // Make sure .babelrc files other than root can be loaded in a monorepo
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
44
|
-
if ((_a = nxJson.namedInputs) === null || _a === void 0 ? void 0 : _a.sharedGlobals) {
|
|
45
|
-
nxJson.namedInputs.sharedGlobals.push('{workspaceRoot}/babel.config.json');
|
|
46
|
-
}
|
|
47
|
-
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
48
|
-
}
|
|
49
|
-
function reactInitGenerator(host, schema) {
|
|
50
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
const tasks = [];
|
|
52
|
-
const jsInitTask = yield (0, js_1.initGenerator)(host, Object.assign(Object.assign({}, schema), { tsConfigName: schema.rootProject ? 'tsconfig.json' : 'tsconfig.base.json', skipFormat: true }));
|
|
53
|
-
tasks.push(jsInitTask);
|
|
54
|
-
setDefault(host);
|
|
55
|
-
if (!schema.e2eTestRunner || schema.e2eTestRunner === 'cypress') {
|
|
56
|
-
(0, devkit_1.ensurePackage)('@nrwl/cypress', versions_1.nxVersion);
|
|
57
|
-
const { cypressInitGenerator } = yield Promise.resolve().then(() => require('@nrwl/cypress/src/generators/init/init'));
|
|
58
|
-
const cypressTask = yield cypressInitGenerator(host, {});
|
|
59
|
-
tasks.push(cypressTask);
|
|
60
|
-
}
|
|
61
|
-
if (!schema.skipPackageJson && !schema.skipBabelConfig) {
|
|
62
|
-
const installBabelTask = (0, devkit_1.addDependenciesToPackageJson)(host, {}, {
|
|
63
|
-
'@babel/preset-react': versions_1.babelPresetReactVersion,
|
|
64
|
-
});
|
|
65
|
-
tasks.push(installBabelTask);
|
|
66
|
-
}
|
|
67
|
-
if (!schema.skipBabelConfig) {
|
|
68
|
-
initRootBabelConfig(host, schema);
|
|
69
|
-
}
|
|
70
|
-
if (!schema.skipPackageJson) {
|
|
71
|
-
const installTask = updateDependencies(host, schema);
|
|
72
|
-
tasks.push(installTask);
|
|
73
|
-
}
|
|
74
|
-
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
exports.reactInitGenerator = reactInitGenerator;
|
|
78
|
-
exports.default = reactInitGenerator;
|
|
79
|
-
exports.reactInitSchematic = (0, devkit_1.convertNxGenerator)(reactInitGenerator);
|
|
80
|
-
//# sourceMappingURL=init.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/init/init.ts"],"names":[],"mappings":";;;;AAAA,yCAWsB;AAEtB,iCAA4D;AAC5D,mDAW8B;AAG9B,SAAS,UAAU,CAAC,IAAU;IAC5B,MAAM,SAAS,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;IAEnC,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,IAAI,EAAE,CAAC;IAClD,MAAM,eAAe,GAAG,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IAClE,MAAM,UAAU,mCACX,SAAS,CAAC,UAAU,KACvB,aAAa,kCACR,eAAe,KAClB,WAAW,kCACN,eAAe,CAAC,WAAW,KAC9B,KAAK,EAAE,IAAI,SAGhB,CAAC;IAEF,IAAA,qBAAY,EAAC,IAAI,kCAAO,SAAS,KAAE,UAAU,IAAG,CAAC;AACnD,CAAC;AAED,SAAS,kBAAkB,CAAC,IAAU,EAAE,MAAkB;IACxD,IAAA,0CAAiC,EAAC,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,EAA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
|
|
1
|
-
export interface InitSchema {
|
|
2
|
-
unitTestRunner?: 'jest' | 'vitest' | 'none';
|
|
3
|
-
e2eTestRunner?: 'cypress' | 'none';
|
|
4
|
-
skipBabelConfig?: boolean;
|
|
5
|
-
skipFormat?: boolean;
|
|
6
|
-
skipPackageJson?: boolean;
|
|
7
|
-
skipHelperLibs?: boolean;
|
|
8
|
-
js?: boolean;
|
|
9
|
-
|
|
10
|
-
rootProject?: boolean;
|
|
11
|
-
}
|