@nx/react 23.0.0-pr.35413.460eeef → 23.0.0-rc.0
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 → dist/ast-utils.d.ts} +0 -1
- package/dist/babel.d.ts +1 -0
- package/{babel.js → dist/babel.js} +2 -0
- package/{index.d.ts → dist/index.d.ts} +0 -6
- package/{index.js → dist/index.js} +1 -8
- package/dist/internal.d.ts +7 -0
- package/dist/internal.js +26 -0
- package/{mf → dist/mf}/dynamic-federation.d.ts +0 -1
- package/{mf → dist/mf}/index.d.ts +0 -1
- package/{module-federation.d.ts → dist/module-federation.d.ts} +0 -1
- package/dist/plugins/bundle-rollup.d.ts +1 -0
- package/{plugins → dist/plugins}/component-testing/index.d.ts +0 -1
- package/{plugins → dist/plugins}/component-testing/index.js +9 -12
- package/{plugins → dist/plugins}/component-testing/webpack-fallback.d.ts +0 -1
- package/{plugins → dist/plugins}/component-testing/webpack-fallback.js +2 -2
- package/dist/plugins/jest.d.ts +1 -0
- package/{plugins → dist/plugins}/nx-react-webpack-plugin/lib/apply-react-config.d.ts +0 -1
- package/{plugins → dist/plugins}/nx-react-webpack-plugin/nx-react-webpack-plugin.d.ts +0 -1
- package/{plugins → dist/plugins}/storybook/index.d.ts +0 -1
- package/{plugins → dist/plugins}/storybook/index.js +18 -12
- package/{plugins → dist/plugins}/storybook/merge-plugins.d.ts +0 -1
- package/dist/plugins/webpack.d.ts +1 -0
- package/{plugins → dist/plugins}/with-react.d.ts +4 -1
- package/{plugins → dist/plugins}/with-react.js +6 -0
- package/dist/router-plugin.d.ts +1 -0
- package/{router-plugin.js → dist/router-plugin.js} +2 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/index.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/start-remotes.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.js +13 -13
- package/{src → dist/src}/executors/module-federation-dev-server/schema.d.ts +1 -1
- package/{src → dist/src}/executors/module-federation-dev-server/schema.json +1 -0
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/index.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/start-remotes.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +13 -12
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.d.ts +2 -2
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.json +1 -0
- package/{src → dist/src}/executors/module-federation-static-server/module-federation-static-server.impl.d.ts +1 -2
- package/{src → dist/src}/executors/module-federation-static-server/module-federation-static-server.impl.js +15 -16
- package/{src → dist/src}/executors/module-federation-static-server/schema.json +1 -0
- package/dist/src/generators/_utils/mf-dependencies.d.ts +7 -0
- package/dist/src/generators/_utils/mf-dependencies.js +84 -0
- package/dist/src/generators/_utils/mf-versions.d.ts +11 -0
- package/dist/src/generators/_utils/mf-versions.js +29 -0
- package/dist/src/generators/_utils/normalize.d.ts +19 -0
- package/dist/src/generators/_utils/normalize.js +48 -0
- package/{src → dist/src}/generators/application/application.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.js +34 -33
- package/{src → dist/src}/generators/application/files/base-rsbuild/tsconfig.app.json__tmpl__ +0 -2
- package/{src/generators/application/files/base-webpack → dist/src/generators/application/files/base-rspack}/tsconfig.app.json__tmpl__ +0 -2
- package/{src → dist/src}/generators/application/files/base-vite/index.html__tmpl__ +1 -1
- package/{src/generators/application/files/base-rspack → dist/src/generators/application/files/base-vite}/tsconfig.app.json__tmpl__ +0 -2
- package/{src/generators/application/files/base-vite → dist/src/generators/application/files/base-webpack}/tsconfig.app.json__tmpl__ +0 -2
- package/{src → dist/src}/generators/application/lib/add-e2e.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-e2e.js +1 -34
- package/{src → dist/src}/generators/application/lib/add-jest.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-linting.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-linting.js +10 -45
- package/{src → dist/src}/generators/application/lib/add-project.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-project.js +14 -4
- package/{src → dist/src}/generators/application/lib/add-routing.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-routing.js +3 -3
- package/{src → dist/src}/generators/application/lib/bundlers/add-rsbuild.d.ts +0 -1
- package/dist/src/generators/application/lib/bundlers/add-rsbuild.js +47 -0
- package/{src → dist/src}/generators/application/lib/bundlers/add-rspack.d.ts +0 -2
- package/dist/src/generators/application/lib/bundlers/add-rspack.js +13 -0
- package/{src → dist/src}/generators/application/lib/bundlers/add-vite.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/bundlers/add-vite.js +11 -36
- package/{src → dist/src}/generators/application/lib/bundlers/add-webpack.d.ts +0 -1
- package/dist/src/generators/application/lib/bundlers/add-webpack.js +18 -0
- package/{src → dist/src}/generators/application/lib/create-application-files.d.ts +2 -4
- package/{src → dist/src}/generators/application/lib/create-application-files.js +10 -62
- package/{src → dist/src}/generators/application/lib/find-free-port.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/get-app-tests.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/install-common-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/install-common-dependencies.js +7 -12
- package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/normalize-options.js +5 -9
- package/{src/generators/library → dist/src/generators/application}/lib/set-defaults.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/update-jest-config.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/update-jest-config.js +0 -3
- package/{src → dist/src}/generators/application/schema.d.ts +0 -1
- package/{src → dist/src}/generators/application/schema.json +2 -21
- package/{src → dist/src}/generators/component/component.d.ts +0 -1
- package/{src → dist/src}/generators/component/component.js +8 -9
- package/{src → dist/src}/generators/component/files/__fileName__.__ext__ +3 -18
- package/{src → dist/src}/generators/component/lib/get-component-tests.d.ts +0 -1
- package/{src → dist/src}/generators/component/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/component/lib/normalize-options.js +5 -10
- package/{src → dist/src}/generators/component/schema.d.ts +2 -8
- package/{src → dist/src}/generators/component/schema.json +2 -26
- package/{src → dist/src}/generators/component-story/component-story.d.ts +0 -1
- package/{src → dist/src}/generators/component-story/component-story.js +5 -4
- package/{src → dist/src}/generators/component-test/component-test.d.ts +0 -1
- package/{src → dist/src}/generators/component-test/component-test.js +5 -4
- package/{src → dist/src}/generators/component-test/schema.d.ts +0 -1
- package/dist/src/generators/consumer/consumer.d.ts +4 -0
- package/dist/src/generators/consumer/consumer.js +137 -0
- package/dist/src/generators/consumer/files/_common/src/App.tsx__tmpl__ +53 -0
- package/dist/src/generators/consumer/files/_common/src/bootstrap.tsx__tmpl__ +12 -0
- package/dist/src/generators/consumer/files/_common/src/index.ts__tmpl__ +4 -0
- package/dist/src/generators/consumer/files/_common/src/mf.ts__tmpl__ +35 -0
- package/dist/src/generators/consumer/files/_common/tsconfig.json__tmpl__ +17 -0
- package/dist/src/generators/consumer/files/rsbuild/index.html__tmpl__ +12 -0
- package/dist/src/generators/consumer/files/rsbuild/package.json__tmpl__ +23 -0
- package/dist/src/generators/consumer/files/rsbuild/rsbuild.config.ts__tmpl__ +25 -0
- package/dist/src/generators/consumer/files/rspack/index.html__tmpl__ +12 -0
- package/dist/src/generators/consumer/files/rspack/package.json__tmpl__ +23 -0
- package/dist/src/generators/consumer/files/rspack/rspack.config.ts__tmpl__ +59 -0
- package/dist/src/generators/consumer/files/vite/index.html__tmpl__ +12 -0
- package/dist/src/generators/consumer/files/vite/package.json__tmpl__ +24 -0
- package/dist/src/generators/consumer/files/vite/vite.config.ts__tmpl__ +27 -0
- package/dist/src/generators/consumer/schema.d.ts +8 -0
- package/dist/src/generators/consumer/schema.json +43 -0
- package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.d.ts +0 -1
- package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.js +2 -0
- package/{src → dist/src}/generators/cypress-component-configuration/lib/add-files.d.ts +1 -2
- package/{src → dist/src}/generators/cypress-component-configuration/lib/add-files.js +5 -39
- package/{src → dist/src}/generators/federate-module/federate-module.d.ts +0 -1
- package/{src → dist/src}/generators/federate-module/federate-module.js +6 -2
- package/{src → dist/src}/generators/federate-module/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/federate-module/lib/utils.js +2 -2
- package/{src → dist/src}/generators/hook/hook.d.ts +0 -1
- package/{src → dist/src}/generators/hook/hook.js +7 -6
- package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/rspack.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/host/files/rspack-module-federation-ts/module-federation.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/host/files/rspack-module-federation-ts/rspack.config.prod.ts__tmpl__ +2 -2
- package/{src → dist/src}/generators/host/files/rspack-module-federation-ts/rspack.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/module-federation.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/webpack.config.prod.ts__tmpl__ +2 -2
- package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/webpack.config.ts__tmpl__ +2 -2
- package/{src → dist/src}/generators/host/host.d.ts +0 -1
- package/{src → dist/src}/generators/host/host.js +10 -6
- package/{src → dist/src}/generators/host/lib/add-module-federation-files.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/add-module-federation-files.js +3 -3
- package/{src → dist/src}/generators/host/lib/normalize-host-name.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/normalize-host-name.js +2 -2
- package/{src → dist/src}/generators/host/lib/setup-ssr-for-host.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/setup-ssr-for-host.js +1 -1
- package/{src → dist/src}/generators/host/lib/update-module-federation-e2e-project.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/update-module-federation-tsconfig.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/update-module-federation-tsconfig.js +2 -2
- package/{src → dist/src}/generators/host/schema.json +2 -21
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +5 -3
- package/{src → dist/src}/generators/init/schema.json +1 -1
- package/{src → dist/src}/generators/library/files/common/tsconfig.lib.json__tmpl__ +0 -1
- package/{src → dist/src}/generators/library/files/vite/tsconfig.lib.json__tmpl__ +0 -1
- package/{src → dist/src}/generators/library/lib/add-linting.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-linting.js +8 -9
- package/{src → dist/src}/generators/library/lib/add-rollup-build-target.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-rollup-build-target.js +8 -7
- package/{src → dist/src}/generators/library/lib/create-files.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/create-files.js +1 -12
- package/{src → dist/src}/generators/library/lib/determine-entry-fields.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/install-common-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/install-common-dependencies.js +6 -11
- package/{src → dist/src}/generators/library/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/normalize-options.js +7 -7
- package/{src/generators/application → dist/src/generators/library}/lib/set-defaults.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/update-app-routes.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/update-app-routes.js +3 -3
- package/{src → dist/src}/generators/library/library.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.js +17 -19
- package/{src → dist/src}/generators/library/schema.json +2 -21
- package/dist/src/generators/provider/files/_common/src/__componentName__.tsx__tmpl__ +11 -0
- package/dist/src/generators/provider/files/_common/src/bootstrap.tsx__tmpl__ +12 -0
- package/dist/src/generators/provider/files/_common/src/index.ts__tmpl__ +5 -0
- package/dist/src/generators/provider/files/_common/tsconfig.json__tmpl__ +17 -0
- package/dist/src/generators/provider/files/rsbuild/index.html__tmpl__ +12 -0
- package/dist/src/generators/provider/files/rsbuild/package.json__tmpl__ +22 -0
- package/dist/src/generators/provider/files/rsbuild/rsbuild.config.ts__tmpl__ +31 -0
- package/dist/src/generators/provider/files/rspack/index.html__tmpl__ +12 -0
- package/dist/src/generators/provider/files/rspack/package.json__tmpl__ +22 -0
- package/dist/src/generators/provider/files/rspack/rspack.config.ts__tmpl__ +69 -0
- package/dist/src/generators/provider/files/vite/index.html__tmpl__ +12 -0
- package/dist/src/generators/provider/files/vite/package.json__tmpl__ +23 -0
- package/dist/src/generators/provider/files/vite/vite.config.ts__tmpl__ +37 -0
- package/dist/src/generators/provider/provider.d.ts +4 -0
- package/dist/src/generators/provider/provider.js +94 -0
- package/dist/src/generators/provider/schema.d.ts +9 -0
- package/dist/src/generators/provider/schema.json +46 -0
- package/{src → dist/src}/generators/redux/redux.d.ts +0 -1
- package/{src → dist/src}/generators/redux/redux.js +10 -9
- package/{src → dist/src}/generators/redux/schema.d.ts +1 -1
- package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/rspack.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/remote/files/rspack-module-federation-ts/module-federation.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/remote/files/rspack-module-federation-ts/rspack.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/module-federation.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/webpack.config.ts__tmpl__ +1 -1
- package/{src → dist/src}/generators/remote/lib/add-remote-to-dynamic-host.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/setup-package-json-exports-for-remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/setup-package-json-exports-for-remote.js +2 -2
- package/{src → dist/src}/generators/remote/lib/setup-ssr-for-remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/setup-ssr-for-remote.js +1 -1
- package/{src → dist/src}/generators/remote/lib/setup-tspath-for-remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/update-host-with-remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/lib/update-host-with-remote.js +4 -5
- package/{src → dist/src}/generators/remote/remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/remote.js +12 -8
- package/{src → dist/src}/generators/remote/schema.json +2 -21
- package/{src → dist/src}/generators/setup-ssr/setup-ssr.d.ts +0 -1
- package/{src → dist/src}/generators/setup-ssr/setup-ssr.js +8 -8
- package/{src → dist/src}/generators/stories/stories.d.ts +0 -1
- package/{src → dist/src}/generators/stories/stories.js +9 -8
- package/{src → dist/src}/generators/storybook-configuration/configuration.d.ts +0 -1
- package/{src → dist/src}/generators/storybook-configuration/configuration.js +3 -1
- package/{src → dist/src}/migrations/update-21-0-0/update-babel-loose.d.ts +0 -1
- package/dist/src/migrations/update-21-0-0/update-babel-loose.md +43 -0
- package/{src → dist/src}/migrations/update-22-0-0/add-svgr-to-webpack-config.d.ts +0 -1
- package/{src → dist/src}/migrations/update-22-0-0/add-svgr-to-webpack-config.js +34 -7
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +225 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/dist/src/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.d.ts +2 -0
- package/dist/src/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.js +128 -0
- package/dist/src/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.md +52 -0
- package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.d.ts +3 -0
- package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.js +215 -0
- package/{src → dist/src}/module-federation/ast-utils.d.ts +0 -1
- package/{src → dist/src}/module-federation/ast-utils.js +2 -2
- package/dist/src/plugins/router-plugin.d.ts +14 -0
- package/{src → dist/src}/plugins/router-plugin.js +20 -25
- package/{src → dist/src}/rules/update-module-federation-project.d.ts +0 -1
- package/{src → dist/src}/rules/update-module-federation-project.js +3 -3
- package/{src → dist/src}/utils/add-mf-env-to-inputs.d.ts +0 -1
- package/dist/src/utils/add-mf-env-to-inputs.js +32 -0
- package/dist/src/utils/assert-supported-react-version.d.ts +2 -0
- package/dist/src/utils/assert-supported-react-version.js +8 -0
- package/{src → dist/src}/utils/assertion.d.ts +0 -1
- package/{src → dist/src}/utils/assertion.js +1 -10
- package/{src → dist/src}/utils/ast-utils.d.ts +0 -1
- package/{src → dist/src}/utils/ast-utils.js +15 -15
- package/{src → dist/src}/utils/component-props.d.ts +0 -1
- package/{src → dist/src}/utils/component-props.js +3 -3
- package/{src → dist/src}/utils/create-ts-config.d.ts +0 -1
- package/{src → dist/src}/utils/create-ts-config.js +3 -10
- package/{src → dist/src}/utils/ct-utils.d.ts +1 -2
- package/{src → dist/src}/utils/ct-utils.js +6 -39
- package/{src → dist/src}/utils/dependencies.d.ts +0 -1
- package/dist/src/utils/deprecation.d.ts +3 -0
- package/dist/src/utils/deprecation.js +33 -0
- package/{src → dist/src}/utils/framework.d.ts +0 -1
- package/{src → dist/src}/utils/get-in-source-vitest-tests-template.d.ts +0 -1
- package/{src → dist/src}/utils/has-rsbuild-plugin.d.ts +0 -1
- package/dist/src/utils/has-rsbuild-plugin.js +12 -0
- package/{src → dist/src}/utils/has-rspack-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/has-vite-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/has-webpack-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/jest-utils.d.ts +0 -1
- package/{src → dist/src}/utils/lint.d.ts +0 -1
- package/{src → dist/src}/utils/maybe-js.d.ts +0 -1
- package/dist/src/utils/module-federation-deprecation.d.ts +12 -0
- package/dist/src/utils/module-federation-deprecation.js +46 -0
- package/{src → dist/src}/utils/normalize-remote.d.ts +0 -1
- package/{src → dist/src}/utils/normalize-remote.js +2 -2
- package/{src → dist/src}/utils/testing-generators.d.ts +0 -1
- package/{src → dist/src}/utils/version-utils.d.ts +1 -1
- package/{src → dist/src}/utils/version-utils.js +3 -0
- package/{src → dist/src}/utils/versions.d.ts +5 -18
- package/dist/src/utils/versions.js +53 -0
- package/dist/tailwind.d.ts +5 -0
- package/{tailwind.js → dist/tailwind.js} +13 -7
- package/dist/typings/cssmodule.d.ts +19 -0
- package/dist/typings/image.d.ts +48 -0
- package/dist/typings/style.d.ts +1 -0
- package/dist/typings/styled-jsx.d.ts +8 -0
- package/{webpack-plugin.d.ts → dist/webpack-plugin.d.ts} +0 -1
- package/executors.json +6 -6
- package/generators.json +46 -40
- package/migrations.json +45 -79
- package/package.json +143 -144
- package/typings/style.d.ts +1 -9
- package/ast-utils.d.ts.map +0 -1
- package/babel.d.ts +0 -25
- package/babel.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/mf/dynamic-federation.d.ts.map +0 -1
- package/mf/index.d.ts.map +0 -1
- package/module-federation.d.ts.map +0 -1
- package/plugins/bundle-rollup.d.ts +0 -2
- package/plugins/bundle-rollup.d.ts.map +0 -1
- package/plugins/component-testing/index.d.ts.map +0 -1
- package/plugins/component-testing/webpack-fallback.d.ts.map +0 -1
- package/plugins/jest.d.ts +0 -2
- package/plugins/jest.d.ts.map +0 -1
- package/plugins/nx-react-webpack-plugin/lib/apply-react-config.d.ts.map +0 -1
- package/plugins/nx-react-webpack-plugin/nx-react-webpack-plugin.d.ts.map +0 -1
- package/plugins/storybook/index.d.ts.map +0 -1
- package/plugins/storybook/merge-plugins.d.ts.map +0 -1
- package/plugins/webpack.d.ts +0 -2
- package/plugins/webpack.d.ts.map +0 -1
- package/plugins/with-react.d.ts.map +0 -1
- package/router-plugin.d.ts +0 -2
- package/router-plugin.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/index.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/start-remotes.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/index.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/start-remotes.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts.map +0 -1
- package/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts.map +0 -1
- package/src/generators/application/application.d.ts.map +0 -1
- package/src/generators/application/files/style-styled-jsx/src/app/__fileName__.tsx__tmpl__ +0 -46
- package/src/generators/application/files/style-styled-module/src/app/__fileName__.tsx__tmpl__ +0 -49
- package/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ +0 -45
- package/src/generators/application/files/style-tailwind/src/styles.css +0 -1
- package/src/generators/application/lib/add-e2e.d.ts.map +0 -1
- package/src/generators/application/lib/add-jest.d.ts.map +0 -1
- package/src/generators/application/lib/add-linting.d.ts.map +0 -1
- package/src/generators/application/lib/add-project.d.ts.map +0 -1
- package/src/generators/application/lib/add-routing.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-rsbuild.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-rsbuild.js +0 -99
- package/src/generators/application/lib/bundlers/add-rspack.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-rspack.js +0 -38
- package/src/generators/application/lib/bundlers/add-vite.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-webpack.d.ts.map +0 -1
- package/src/generators/application/lib/bundlers/add-webpack.js +0 -51
- package/src/generators/application/lib/create-application-files.d.ts.map +0 -1
- package/src/generators/application/lib/find-free-port.d.ts.map +0 -1
- package/src/generators/application/lib/get-app-tests.d.ts.map +0 -1
- package/src/generators/application/lib/install-common-dependencies.d.ts.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/application/lib/set-defaults.d.ts.map +0 -1
- package/src/generators/application/lib/show-possible-warnings.d.ts +0 -4
- package/src/generators/application/lib/show-possible-warnings.d.ts.map +0 -1
- package/src/generators/application/lib/show-possible-warnings.js +0 -11
- package/src/generators/application/lib/update-jest-config.d.ts.map +0 -1
- package/src/generators/component/component.d.ts.map +0 -1
- package/src/generators/component/lib/get-component-tests.d.ts.map +0 -1
- package/src/generators/component/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/component-story/component-story.d.ts.map +0 -1
- package/src/generators/component-test/component-test.d.ts.map +0 -1
- package/src/generators/component-test/schema.d.ts.map +0 -1
- package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts.map +0 -1
- package/src/generators/cypress-component-configuration/lib/add-files.d.ts.map +0 -1
- package/src/generators/federate-module/federate-module.d.ts.map +0 -1
- package/src/generators/federate-module/lib/utils.d.ts.map +0 -1
- package/src/generators/hook/hook.d.ts.map +0 -1
- package/src/generators/host/host.d.ts.map +0 -1
- package/src/generators/host/lib/add-module-federation-files.d.ts.map +0 -1
- package/src/generators/host/lib/normalize-host-name.d.ts.map +0 -1
- package/src/generators/host/lib/setup-ssr-for-host.d.ts.map +0 -1
- package/src/generators/host/lib/update-module-federation-e2e-project.d.ts.map +0 -1
- package/src/generators/host/lib/update-module-federation-tsconfig.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/generators/library/lib/add-linting.d.ts.map +0 -1
- package/src/generators/library/lib/add-rollup-build-target.d.ts.map +0 -1
- package/src/generators/library/lib/create-files.d.ts.map +0 -1
- package/src/generators/library/lib/determine-entry-fields.d.ts.map +0 -1
- package/src/generators/library/lib/install-common-dependencies.d.ts.map +0 -1
- package/src/generators/library/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/library/lib/set-defaults.d.ts.map +0 -1
- package/src/generators/library/lib/update-app-routes.d.ts.map +0 -1
- package/src/generators/library/library.d.ts.map +0 -1
- package/src/generators/redux/redux.d.ts.map +0 -1
- package/src/generators/remote/lib/add-remote-to-dynamic-host.d.ts.map +0 -1
- package/src/generators/remote/lib/setup-package-json-exports-for-remote.d.ts.map +0 -1
- package/src/generators/remote/lib/setup-ssr-for-remote.d.ts.map +0 -1
- package/src/generators/remote/lib/setup-tspath-for-remote.d.ts.map +0 -1
- package/src/generators/remote/lib/update-host-with-remote.d.ts.map +0 -1
- package/src/generators/remote/remote.d.ts.map +0 -1
- package/src/generators/setup-ssr/setup-ssr.d.ts.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 -4
- package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts.map +0 -1
- package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +0 -27
- package/src/generators/setup-tailwind/lib/update-project.d.ts +0 -4
- package/src/generators/setup-tailwind/lib/update-project.d.ts.map +0 -1
- package/src/generators/setup-tailwind/lib/update-project.js +0 -11
- package/src/generators/setup-tailwind/schema.d.ts +0 -7
- package/src/generators/setup-tailwind/schema.d.ts.map +0 -1
- package/src/generators/setup-tailwind/schema.js +0 -2
- 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.d.ts.map +0 -1
- package/src/generators/setup-tailwind/setup-tailwind.js +0 -35
- package/src/generators/stories/stories.d.ts.map +0 -1
- package/src/generators/storybook-configuration/configuration.d.ts.map +0 -1
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts +0 -3
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts.map +0 -1
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +0 -31
- package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.d.ts +0 -3
- package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.d.ts.map +0 -1
- package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.js +0 -66
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts +0 -3
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts.map +0 -1
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.js +0 -41
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts +0 -3
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts.map +0 -1
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.js +0 -18
- package/src/migrations/update-21-0-0/update-babel-loose.d.ts.map +0 -1
- package/src/migrations/update-22-0-0/add-svgr-to-webpack-config.d.ts.map +0 -1
- package/src/module-federation/ast-utils.d.ts.map +0 -1
- package/src/plugins/router-plugin.d.ts +0 -11
- package/src/plugins/router-plugin.d.ts.map +0 -1
- package/src/rules/add-styled-dependencies.d.ts +0 -6
- package/src/rules/add-styled-dependencies.d.ts.map +0 -1
- package/src/rules/add-styled-dependencies.js +0 -16
- package/src/rules/update-module-federation-project.d.ts.map +0 -1
- package/src/utils/add-mf-env-to-inputs.d.ts.map +0 -1
- package/src/utils/add-mf-env-to-inputs.js +0 -25
- package/src/utils/assertion.d.ts.map +0 -1
- package/src/utils/ast-utils.d.ts.map +0 -1
- package/src/utils/component-props.d.ts.map +0 -1
- package/src/utils/create-ts-config.d.ts.map +0 -1
- package/src/utils/ct-utils.d.ts.map +0 -1
- package/src/utils/dependencies.d.ts.map +0 -1
- package/src/utils/framework.d.ts.map +0 -1
- package/src/utils/get-in-source-vitest-tests-template.d.ts.map +0 -1
- package/src/utils/has-rsbuild-plugin.d.ts.map +0 -1
- package/src/utils/has-rsbuild-plugin.js +0 -43
- package/src/utils/has-rspack-plugin.d.ts.map +0 -1
- package/src/utils/has-vite-plugin.d.ts.map +0 -1
- package/src/utils/has-webpack-plugin.d.ts.map +0 -1
- package/src/utils/jest-utils.d.ts.map +0 -1
- package/src/utils/lint.d.ts.map +0 -1
- package/src/utils/maybe-js.d.ts.map +0 -1
- package/src/utils/normalize-remote.d.ts.map +0 -1
- package/src/utils/styled.d.ts +0 -4
- package/src/utils/styled.d.ts.map +0 -1
- package/src/utils/styled.js +0 -62
- package/src/utils/testing-generators.d.ts.map +0 -1
- package/src/utils/version-utils.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- package/src/utils/versions.js +0 -64
- package/tailwind.d.ts +0 -7
- package/tailwind.d.ts.map +0 -1
- package/webpack-plugin.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{ast-utils.js → dist/ast-utils.js} +0 -0
- /package/{mf → dist/mf}/dynamic-federation.js +0 -0
- /package/{mf → dist/mf}/index.js +0 -0
- /package/{module-federation.js → dist/module-federation.js} +0 -0
- /package/{plugins → dist/plugins}/bundle-rollup.js +0 -0
- /package/{plugins → dist/plugins}/jest.js +0 -0
- /package/{plugins → dist/plugins}/nx-react-webpack-plugin/lib/apply-react-config.js +0 -0
- /package/{plugins → dist/plugins}/nx-react-webpack-plugin/nx-react-webpack-plugin.js +0 -0
- /package/{plugins → dist/plugins}/storybook/merge-plugins.js +0 -0
- /package/{plugins → dist/plugins}/webpack.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/index.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/start-remotes.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/index.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/start-remotes.js +0 -0
- /package/{src → dist/src}/executors/module-federation-static-server/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/app/__fileName__.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/index.html +0 -0
- /package/{src → dist/src}/generators/application/files/base-rsbuild/src/main.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/app/__fileName__.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/index.html +0 -0
- /package/{src → dist/src}/generators/application/files/base-rspack/src/main.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/public/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/app/__fileName__.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/environments/environment.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/environments/environment.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/src/main.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/app/__fileName__.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/index.html +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/src/main.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-webpack/webpack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/claimed/src/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/not-configured/src/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/unclaimed/src/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/app-nav.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/entry.client.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/entry.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/root.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/routes/about.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/app/routes.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/public/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/react-router.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/tests/routes/_index.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/common/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/non-root/.gitignore__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/non-root/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/nx-welcome/claimed/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/nx-welcome/not-configured/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/nx-welcome/unclaimed/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/ts-solution/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/react-router-ssr/ts-solution/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-css-module/src/app/__fileName__.module.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-css-module/src/app/__fileName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-css-module/src/styles.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-global-css/src/app/__fileName__.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-global-css/src/app/__fileName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-global-css/src/styles.__style__ +0 -0
- /package/{src → dist/src}/generators/application/files/style-none/src/app/__fileName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/lib/add-jest.js +0 -0
- /package/{src → dist/src}/generators/application/lib/find-free-port.js +0 -0
- /package/{src → dist/src}/generators/application/lib/get-app-tests.js +0 -0
- /package/{src → dist/src}/generators/application/lib/set-defaults.js +0 -0
- /package/{src → dist/src}/generators/component/files/__fileName__.__style__ +0 -0
- /package/{src → dist/src}/generators/component/files/__fileName__.module.__style__ +0 -0
- /package/{src → dist/src}/generators/component/files/__fileName__.spec.__ext__ +0 -0
- /package/{src → dist/src}/generators/component/lib/get-component-tests.js +0 -0
- /package/{src → dist/src}/generators/component-story/files/jsx/__componentFileName__.stories.jsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/component-story/files/tsx/__componentFileName__.stories.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/component-story/schema.json +0 -0
- /package/{src → dist/src}/generators/component-test/files/__fileName__.cy__ext__ +0 -0
- /package/{src → dist/src}/generators/component-test/schema.js +0 -0
- /package/{src → dist/src}/generators/component-test/schema.json +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/federate-module/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/federate-module/schema.json +0 -0
- /package/{src → dist/src}/generators/hook/files/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/hook/files/__fileName__.spec.__specExt__ +0 -0
- /package/{src → dist/src}/generators/hook/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/hook/schema.json +0 -0
- /package/{src → dist/src}/generators/host/files/common/src/app/__fileName__.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/common/src/main.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/common/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/common-ts/src/app/__fileName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/common-ts/src/main.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-common/src/app/__fileName__.jsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-common/src/main.jsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-common/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation/module-federation.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation/rspack.config.prod.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation/module-federation.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation/webpack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation/webpack.config.prod.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr/webpack.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr-ts/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ssr-ts/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/lib/update-module-federation-e2e-project.js +0 -0
- /package/{src → dist/src}/generators/host/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/files/common/README.md +0 -0
- /package/{src → dist/src}/generators/library/files/common/src/index.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/files/vite/README.md +0 -0
- /package/{src → dist/src}/generators/library/lib/determine-entry-fields.js +0 -0
- /package/{src → dist/src}/generators/library/lib/set-defaults.js +0 -0
- /package/{src → dist/src}/generators/library/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/redux/files/js/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/redux/files/js/__fileName__.spec.__ext__ +0 -0
- /package/{src → dist/src}/generators/redux/files/ts/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/redux/files/ts/__fileName__.spec.__ext__ +0 -0
- /package/{src → dist/src}/generators/redux/schema.json +0 -0
- /package/{src → dist/src}/generators/remote/files/common/src/main.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/common/src/remote-entry.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/common-ts/src/main.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/common-ts/src/remote-entry.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-common/src/main.jsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-common/src/remote-entry.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation/module-federation.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation/rspack.config.prod.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr/rspack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ts/rspack.config.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ts/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation/module-federation.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation/webpack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation/webpack.config.prod.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr/module-federation.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr/webpack.server.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr-ts/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ssr-ts/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/tsconfig.lint.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/webpack.config.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/lib/add-remote-to-dynamic-host.js +0 -0
- /package/{src → dist/src}/generators/remote/lib/setup-tspath-for-remote.js +0 -0
- /package/{src → dist/src}/generators/remote/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/setup-ssr/files/server.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/setup-ssr/files/src/main.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/setup-ssr/files/tsconfig.server.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/setup-ssr/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/setup-ssr/schema.json +0 -0
- /package/{src → dist/src}/generators/stories/schema.json +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.json +0 -0
- /package/{src → dist/src}/migrations/update-21-0-0/update-babel-loose.js +0 -0
- /package/{src → dist/src}/utils/dependencies.js +0 -0
- /package/{src → dist/src}/utils/framework.js +0 -0
- /package/{src → dist/src}/utils/get-in-source-vitest-tests-template.js +0 -0
- /package/{src → dist/src}/utils/has-rspack-plugin.js +0 -0
- /package/{src → dist/src}/utils/has-vite-plugin.js +0 -0
- /package/{src → dist/src}/utils/has-webpack-plugin.js +0 -0
- /package/{src → dist/src}/utils/jest-utils.js +0 -0
- /package/{src → dist/src}/utils/lint.js +0 -0
- /package/{src → dist/src}/utils/maybe-js.js +0 -0
- /package/{src → dist/src}/utils/testing-generators.js +0 -0
- /package/{webpack-plugin.js → dist/webpack-plugin.js} +0 -0
package/dist/babel.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { NxReactWebpackPlugin as _NxReactWebpackPlugin } from './plugins/nx-react-webpack-plugin/nx-react-webpack-plugin';
|
|
2
|
-
/** @deprecated Use '@nx/react/webpack-plugin' instead, which can improve graph creation by 150-200ms per file. */
|
|
3
|
-
export declare const NxReactWebpackPlugin: typeof _NxReactWebpackPlugin;
|
|
4
1
|
export { extraEslintDependencies, extendReactEslintJson, } from './src/utils/lint';
|
|
5
|
-
export { cssInJsDependenciesBabel } from './src/utils/styled';
|
|
6
2
|
export { assertValidStyle } from './src/utils/assertion';
|
|
7
3
|
export { reactDomVersion, reactVersion } from './src/utils/versions';
|
|
8
4
|
export { applicationGenerator } from './src/generators/application/application';
|
|
@@ -18,7 +14,5 @@ export { hostGenerator } from './src/generators/host/host';
|
|
|
18
14
|
export { remoteGenerator } from './src/generators/remote/remote';
|
|
19
15
|
export { cypressComponentConfigGenerator } from './src/generators/cypress-component-configuration/cypress-component-configuration';
|
|
20
16
|
export { componentTestGenerator } from './src/generators/component-test/component-test';
|
|
21
|
-
export { setupTailwindGenerator } from './src/generators/setup-tailwind/setup-tailwind';
|
|
22
17
|
export type { SupportedStyles } from './typings/style';
|
|
23
18
|
export * from './plugins/with-react';
|
|
24
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.componentTestGenerator = exports.cypressComponentConfigGenerator = exports.remoteGenerator = exports.hostGenerator = exports.storybookConfigurationGenerator = exports.storiesGenerator = exports.reduxGenerator = exports.reactInitGenerator = exports.libraryGenerator = exports.componentStoryGenerator = exports.hookGenerator = exports.componentGenerator = exports.applicationGenerator = exports.reactVersion = exports.reactDomVersion = exports.assertValidStyle = exports.extendReactEslintJson = exports.extraEslintDependencies = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const nx_react_webpack_plugin_1 = require("./plugins/nx-react-webpack-plugin/nx-react-webpack-plugin");
|
|
6
|
-
/** @deprecated Use '@nx/react/webpack-plugin' instead, which can improve graph creation by 150-200ms per file. */
|
|
7
|
-
exports.NxReactWebpackPlugin = nx_react_webpack_plugin_1.NxReactWebpackPlugin;
|
|
8
5
|
var lint_1 = require("./src/utils/lint");
|
|
9
6
|
Object.defineProperty(exports, "extraEslintDependencies", { enumerable: true, get: function () { return lint_1.extraEslintDependencies; } });
|
|
10
7
|
Object.defineProperty(exports, "extendReactEslintJson", { enumerable: true, get: function () { return lint_1.extendReactEslintJson; } });
|
|
11
|
-
var styled_1 = require("./src/utils/styled");
|
|
12
|
-
Object.defineProperty(exports, "cssInJsDependenciesBabel", { enumerable: true, get: function () { return styled_1.cssInJsDependenciesBabel; } });
|
|
13
8
|
var assertion_1 = require("./src/utils/assertion");
|
|
14
9
|
Object.defineProperty(exports, "assertValidStyle", { enumerable: true, get: function () { return assertion_1.assertValidStyle; } });
|
|
15
10
|
var versions_1 = require("./src/utils/versions");
|
|
@@ -41,6 +36,4 @@ var cypress_component_configuration_1 = require("./src/generators/cypress-compon
|
|
|
41
36
|
Object.defineProperty(exports, "cypressComponentConfigGenerator", { enumerable: true, get: function () { return cypress_component_configuration_1.cypressComponentConfigGenerator; } });
|
|
42
37
|
var component_test_1 = require("./src/generators/component-test/component-test");
|
|
43
38
|
Object.defineProperty(exports, "componentTestGenerator", { enumerable: true, get: function () { return component_test_1.componentTestGenerator; } });
|
|
44
|
-
var setup_tailwind_1 = require("./src/generators/setup-tailwind/setup-tailwind");
|
|
45
|
-
Object.defineProperty(exports, "setupTailwindGenerator", { enumerable: true, get: function () { return setup_tailwind_1.setupTailwindGenerator; } });
|
|
46
39
|
tslib_1.__exportStar(require("./plugins/with-react"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { addE2e } from './src/generators/application/lib/add-e2e';
|
|
2
|
+
export { addRollupBuildTarget } from './src/generators/library/lib/add-rollup-build-target';
|
|
3
|
+
export { isComponent } from './src/utils/ct-utils';
|
|
4
|
+
export { suppressReactComposeHelperWarnings } from './src/utils/deprecation';
|
|
5
|
+
export { hasWebpackPlugin } from './src/utils/has-webpack-plugin';
|
|
6
|
+
export { getReactDependenciesVersionsToInstall, isReact18, } from './src/utils/version-utils';
|
|
7
|
+
export { testingLibraryDomVersion, testingLibraryReactVersion, babelCoreVersion, babelPresetReactVersion, } from './src/utils/versions';
|
package/dist/internal.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Semi-private surface for first-party Nx packages.
|
|
3
|
+
//
|
|
4
|
+
// External plugins should NOT import from here — this entry is curated for
|
|
5
|
+
// internal consumers and may change without semver protection. Mirrors
|
|
6
|
+
// `@nx/devkit/internal`.
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.babelPresetReactVersion = exports.babelCoreVersion = exports.testingLibraryReactVersion = exports.testingLibraryDomVersion = exports.isReact18 = exports.getReactDependenciesVersionsToInstall = exports.hasWebpackPlugin = exports.suppressReactComposeHelperWarnings = exports.isComponent = exports.addRollupBuildTarget = exports.addE2e = void 0;
|
|
9
|
+
var add_e2e_1 = require("./src/generators/application/lib/add-e2e");
|
|
10
|
+
Object.defineProperty(exports, "addE2e", { enumerable: true, get: function () { return add_e2e_1.addE2e; } });
|
|
11
|
+
var add_rollup_build_target_1 = require("./src/generators/library/lib/add-rollup-build-target");
|
|
12
|
+
Object.defineProperty(exports, "addRollupBuildTarget", { enumerable: true, get: function () { return add_rollup_build_target_1.addRollupBuildTarget; } });
|
|
13
|
+
var ct_utils_1 = require("./src/utils/ct-utils");
|
|
14
|
+
Object.defineProperty(exports, "isComponent", { enumerable: true, get: function () { return ct_utils_1.isComponent; } });
|
|
15
|
+
var deprecation_1 = require("./src/utils/deprecation");
|
|
16
|
+
Object.defineProperty(exports, "suppressReactComposeHelperWarnings", { enumerable: true, get: function () { return deprecation_1.suppressReactComposeHelperWarnings; } });
|
|
17
|
+
var has_webpack_plugin_1 = require("./src/utils/has-webpack-plugin");
|
|
18
|
+
Object.defineProperty(exports, "hasWebpackPlugin", { enumerable: true, get: function () { return has_webpack_plugin_1.hasWebpackPlugin; } });
|
|
19
|
+
var version_utils_1 = require("./src/utils/version-utils");
|
|
20
|
+
Object.defineProperty(exports, "getReactDependenciesVersionsToInstall", { enumerable: true, get: function () { return version_utils_1.getReactDependenciesVersionsToInstall; } });
|
|
21
|
+
Object.defineProperty(exports, "isReact18", { enumerable: true, get: function () { return version_utils_1.isReact18; } });
|
|
22
|
+
var versions_1 = require("./src/utils/versions");
|
|
23
|
+
Object.defineProperty(exports, "testingLibraryDomVersion", { enumerable: true, get: function () { return versions_1.testingLibraryDomVersion; } });
|
|
24
|
+
Object.defineProperty(exports, "testingLibraryReactVersion", { enumerable: true, get: function () { return versions_1.testingLibraryReactVersion; } });
|
|
25
|
+
Object.defineProperty(exports, "babelCoreVersion", { enumerable: true, get: function () { return versions_1.babelCoreVersion; } });
|
|
26
|
+
Object.defineProperty(exports, "babelPresetReactVersion", { enumerable: true, get: function () { return versions_1.babelPresetReactVersion; } });
|
|
@@ -4,4 +4,3 @@ import { withModuleFederationForSSR } from '@nx/module-federation/webpack';
|
|
|
4
4
|
* @deprecated Use `@nx/module-federation/webpack` instead. This will be removed in Nx v22.
|
|
5
5
|
*/
|
|
6
6
|
export { withModuleFederation, withModuleFederationForSSR };
|
|
7
|
-
//# sourceMappingURL=module-federation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.nxComponentTestingPreset = nxComponentTestingPreset;
|
|
4
4
|
const cypress_preset_1 = require("@nx/cypress/plugins/cypress-preset");
|
|
5
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/cypress/internal");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
7
|
-
const
|
|
7
|
+
const internal_2 = require("@nx/js/internal");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
const path_1 = require("path");
|
|
10
10
|
/**
|
|
@@ -71,10 +71,10 @@ function nxComponentTestingPreset(pathToConfig, options) {
|
|
|
71
71
|
let webpackConfig = null;
|
|
72
72
|
try {
|
|
73
73
|
const graph = (0, devkit_1.readCachedProjectGraph)();
|
|
74
|
-
const { targets: ctTargets, name: ctProjectName } = (0,
|
|
74
|
+
const { targets: ctTargets, name: ctProjectName } = (0, internal_1.getProjectConfigByPath)(graph, pathToConfig);
|
|
75
75
|
const ctTargetName = options?.ctTargetName || 'component-test';
|
|
76
76
|
const ctConfigurationName = process.env.NX_CYPRESS_TARGET_CONFIGURATION;
|
|
77
|
-
const ctExecutorContext = (0,
|
|
77
|
+
const ctExecutorContext = (0, internal_1.createExecutorContext)(graph, ctTargets, ctProjectName, ctTargetName, ctConfigurationName);
|
|
78
78
|
let buildTarget = options?.buildTarget;
|
|
79
79
|
if (!buildTarget) {
|
|
80
80
|
const ctExecutorOptions = (0, devkit_1.readTargetOptions)({
|
|
@@ -161,13 +161,10 @@ function buildTargetWebpack(ctx, buildTarget, componentTestingProjectName) {
|
|
|
161
161
|
throw new InvalidExecutorError(`The '${parsed.target}' target of the '${parsed.project}' project is not using the '@nx/webpack:webpack' or '@nx/rspack:rspack' executor. ` +
|
|
162
162
|
`Please make sure to use '@nx/webpack:webpack' or '@nx/rspack:rspack' executor in that target to use Cypress Component Testing.`);
|
|
163
163
|
}
|
|
164
|
-
const context = (0,
|
|
165
|
-
const {
|
|
166
|
-
const {
|
|
167
|
-
const
|
|
168
|
-
const { withNx } = require('@nx/webpack/src/utils/with-nx');
|
|
169
|
-
const { withWeb } = require('@nx/webpack/src/utils/with-web');
|
|
170
|
-
const options = normalizeOptions(withSchemaDefaults(parsed, context), devkit_1.workspaceRoot, buildableProjectConfig.root, (0, ts_solution_setup_1.getProjectSourceRoot)(buildableProjectConfig));
|
|
164
|
+
const context = (0, internal_1.createExecutorContext)(graph, buildableProjectConfig.targets, parsed.project, parsed.target, parsed.target);
|
|
165
|
+
const { resolveUserDefinedWebpackConfig } = require('@nx/webpack/internal');
|
|
166
|
+
const { normalizeOptions, composePluginsSync, withNx, withWeb, } = require('@nx/webpack');
|
|
167
|
+
const options = normalizeOptions(withSchemaDefaults(parsed, context), devkit_1.workspaceRoot, buildableProjectConfig.root, (0, internal_2.getProjectSourceRoot)(buildableProjectConfig));
|
|
171
168
|
let customWebpack;
|
|
172
169
|
if (options.webpackConfig) {
|
|
173
170
|
customWebpack = resolveUserDefinedWebpackConfig(options.webpackConfig, options.tsConfig.startsWith(context.root)
|
|
@@ -189,7 +186,7 @@ function buildTargetWebpack(ctx, buildTarget, componentTestingProjectName) {
|
|
|
189
186
|
extractLicenses: false,
|
|
190
187
|
root: devkit_1.workspaceRoot,
|
|
191
188
|
projectRoot: ctProjectConfig.root,
|
|
192
|
-
sourceRoot: (0,
|
|
189
|
+
sourceRoot: (0, internal_2.getProjectSourceRoot)(ctProjectConfig),
|
|
193
190
|
},
|
|
194
191
|
context,
|
|
195
192
|
configuration: parsed.configuration,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.buildBaseWebpackConfig = buildBaseWebpackConfig;
|
|
4
4
|
const tsconfig_paths_webpack_plugin_1 = require("tsconfig-paths-webpack-plugin");
|
|
5
5
|
const webpack_1 = require("@nx/webpack");
|
|
6
|
-
const
|
|
6
|
+
const js_1 = require("@nx/js");
|
|
7
7
|
function buildBaseWebpackConfig({ tsConfigPath = 'tsconfig.cy.json', compiler = 'babel', }) {
|
|
8
8
|
const extensions = ['.ts', '.tsx', '.mjs', '.js', '.jsx'];
|
|
9
9
|
const config = {
|
|
@@ -13,7 +13,7 @@ function buildBaseWebpackConfig({ tsConfigPath = 'tsconfig.cy.json', compiler =
|
|
|
13
13
|
plugins: [
|
|
14
14
|
new tsconfig_paths_webpack_plugin_1.TsconfigPathsPlugin({
|
|
15
15
|
configFile: tsConfigPath,
|
|
16
|
-
baseUrl: (0,
|
|
16
|
+
baseUrl: (0, js_1.resolvePathsBaseUrl)(tsConfigPath),
|
|
17
17
|
extensions,
|
|
18
18
|
}),
|
|
19
19
|
],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.webpack = exports.core = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/js/internal");
|
|
6
|
+
const webpack_1 = require("@nx/webpack");
|
|
7
|
+
const internal_2 = require("@nx/webpack/internal");
|
|
7
8
|
const fs_1 = require("fs");
|
|
8
9
|
const path_1 = require("path");
|
|
9
|
-
const
|
|
10
|
+
const webpack_2 = require("webpack");
|
|
10
11
|
const with_react_1 = require("../with-react");
|
|
12
|
+
const deprecation_1 = require("../../src/utils/deprecation");
|
|
11
13
|
const merge_plugins_1 = require("./merge-plugins");
|
|
12
14
|
// This is shamelessly taken from CRA and modified for NX use
|
|
13
15
|
// https://github.com/facebook/create-react-app/blob/4784997f0682e75eb32a897b4ffe34d735912e6c/packages/react-scripts/config/env.js#L71
|
|
@@ -64,7 +66,7 @@ const getProjectData = async (storybookOptions) => {
|
|
|
64
66
|
? {
|
|
65
67
|
workspaceRoot: process.env.NX_WORKSPACE_ROOT,
|
|
66
68
|
projectRoot: projectNode.data.root,
|
|
67
|
-
sourceRoot: (0,
|
|
69
|
+
sourceRoot: (0, internal_1.getProjectSourceRoot)(projectNode.data),
|
|
68
70
|
projectNode,
|
|
69
71
|
}
|
|
70
72
|
: // Edge-case: missing project node
|
|
@@ -130,7 +132,7 @@ const webpack = async (storybookWebpackConfig = {}, options) => {
|
|
|
130
132
|
...options,
|
|
131
133
|
root: projectData.workspaceRoot,
|
|
132
134
|
projectRoot: projectData.projectRoot,
|
|
133
|
-
sourceRoot: (0,
|
|
135
|
+
sourceRoot: (0, internal_1.getProjectSourceRoot)(projectData.projectNode.data),
|
|
134
136
|
fileReplacements: [],
|
|
135
137
|
sourceMap: true,
|
|
136
138
|
styles: options.styles ?? [],
|
|
@@ -141,12 +143,16 @@ const webpack = async (storybookWebpackConfig = {}, options) => {
|
|
|
141
143
|
};
|
|
142
144
|
// ESM build for modern browsers.
|
|
143
145
|
let baseWebpackConfig = {};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
// Nx composes these helpers internally for the storybook preset; suppress
|
|
147
|
+
// their deprecation warning so it fires only for user-authored configs.
|
|
148
|
+
const finalConfig = (0, internal_2.suppressWebpackComposeHelperWarnings)(() => (0, deprecation_1.suppressReactComposeHelperWarnings)(() => {
|
|
149
|
+
const configure = (0, webpack_1.composePluginsSync)(withNx({ target: 'web', skipTypeChecking: true }), (0, with_react_1.withReact)());
|
|
150
|
+
return configure(baseWebpackConfig, {
|
|
151
|
+
options: builderOptions,
|
|
152
|
+
// TODO(JamesHenry): replace as any type assertion with as ExecutorContext once the nx repo is updated to use https://github.com/nrwl/nx/pull/33095
|
|
153
|
+
context: { root: devkit_1.workspaceRoot }, // The context is not used here.
|
|
154
|
+
});
|
|
155
|
+
}));
|
|
150
156
|
return {
|
|
151
157
|
...storybookWebpackConfig,
|
|
152
158
|
module: {
|
|
@@ -170,7 +176,7 @@ const webpack = async (storybookWebpackConfig = {}, options) => {
|
|
|
170
176
|
[]), ...(finalConfig.resolve
|
|
171
177
|
.plugins ?? [])),
|
|
172
178
|
},
|
|
173
|
-
plugins: (0, merge_plugins_1.mergePlugins)(new
|
|
179
|
+
plugins: (0, merge_plugins_1.mergePlugins)(new webpack_2.DefinePlugin(getClientEnvironment(storybookWebpackConfig.mode).stringified), ...(storybookWebpackConfig.plugins ?? []), ...(finalConfig.plugins ?? [])),
|
|
174
180
|
};
|
|
175
181
|
};
|
|
176
182
|
exports.webpack = webpack;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ResolvePluginInstance, RuleSetRule, WebpackPluginInstance } from 'webpack';
|
|
2
2
|
export declare const mergeRules: (...args: RuleSetRule[]) => (WebpackPluginInstance | RuleSetRule)[];
|
|
3
3
|
export declare const mergePlugins: (...args: (WebpackPluginInstance | ResolvePluginInstance)[]) => (WebpackPluginInstance | ResolvePluginInstance)[];
|
|
4
|
-
//# sourceMappingURL=merge-plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,8 +3,11 @@ import type { NxWebpackExecutionContext, WithWebOptions } from '@nx/webpack';
|
|
|
3
3
|
export interface WithReactOptions extends WithWebOptions {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated Will be removed in Nx v24. Use `NxReactWebpackPlugin` from
|
|
7
|
+
* `@nx/react/webpack-plugin` in a standard webpack config and run
|
|
8
|
+
* `nx g @nx/webpack:convert-to-inferred`. See
|
|
9
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
6
10
|
* @param {WithReactOptions} pluginOptions
|
|
7
11
|
* @returns {NxWebpackPlugin}
|
|
8
12
|
*/
|
|
9
13
|
export declare function withReact(pluginOptions?: WithReactOptions): (config: Configuration, context: NxWebpackExecutionContext) => Configuration;
|
|
10
|
-
//# sourceMappingURL=with-react.d.ts.map
|
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withReact = withReact;
|
|
4
4
|
const apply_react_config_1 = require("./nx-react-webpack-plugin/lib/apply-react-config");
|
|
5
|
+
const deprecation_1 = require("../src/utils/deprecation");
|
|
5
6
|
const processed = new Set();
|
|
6
7
|
/**
|
|
8
|
+
* @deprecated Will be removed in Nx v24. Use `NxReactWebpackPlugin` from
|
|
9
|
+
* `@nx/react/webpack-plugin` in a standard webpack config and run
|
|
10
|
+
* `nx g @nx/webpack:convert-to-inferred`. See
|
|
11
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
7
12
|
* @param {WithReactOptions} pluginOptions
|
|
8
13
|
* @returns {NxWebpackPlugin}
|
|
9
14
|
*/
|
|
10
15
|
function withReact(pluginOptions = {}) {
|
|
16
|
+
(0, deprecation_1.warnReactWithReactDeprecation)();
|
|
11
17
|
return function configure(config, context) {
|
|
12
18
|
const { withWeb } = require('@nx/webpack');
|
|
13
19
|
if (processed.has(config))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createNodes, createNodesV2, ReactRouterPluginOptions, } from './src/plugins/router-plugin';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodesV2 = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
var router_plugin_1 = require("./src/plugins/router-plugin");
|
|
5
|
+
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return router_plugin_1.createNodes; } });
|
|
5
6
|
Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return router_plugin_1.createNodesV2; } });
|
|
@@ -2,4 +2,3 @@ import { ExecutorContext } from '@nx/devkit';
|
|
|
2
2
|
import { ModuleFederationDevServerOptions, NormalizedModuleFederationDevServerOptions } from '../schema';
|
|
3
3
|
export declare function getBuildOptions(buildTarget: string, context: ExecutorContext): any;
|
|
4
4
|
export declare function normalizeOptions(options: ModuleFederationDevServerOptions): NormalizedModuleFederationDevServerOptions;
|
|
5
|
-
//# sourceMappingURL=normalize-options.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { NormalizedModuleFederationDevServerOptions } from '../schema';
|
|
|
3
3
|
export declare function startRemotes(remotes: string[], workspaceProjects: Record<string, ProjectConfiguration>, options: Pick<NormalizedModuleFederationDevServerOptions, 'devRemotes' | 'host' | 'ssl' | 'sslCert' | 'sslKey' | 'verbose'>, context: ExecutorContext, target?: 'serve' | 'serve-static'): Promise<AsyncIterable<{
|
|
4
4
|
success: boolean;
|
|
5
5
|
}>[]>;
|
|
6
|
-
//# sourceMappingURL=start-remotes.d.ts.map
|
package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.js
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = moduleFederationDevServer;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const dev_server_impl_1 = tslib_1.__importDefault(require("@nx/webpack/src/executors/dev-server/dev-server.impl"));
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
+
const internal_2 = require("@nx/js/internal");
|
|
7
|
+
const internal_3 = require("@nx/module-federation/internal");
|
|
8
|
+
const internal_4 = require("@nx/web/internal");
|
|
9
|
+
const webpack_1 = require("@nx/webpack");
|
|
12
10
|
const fs_1 = require("fs");
|
|
13
11
|
const path_1 = require("path");
|
|
14
12
|
const lib_1 = require("./lib");
|
|
13
|
+
const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
|
|
15
14
|
async function* moduleFederationDevServer(schema, context) {
|
|
15
|
+
(0, module_federation_deprecation_1.warnReactMfDevServerExecutorDeprecation)();
|
|
16
16
|
const options = (0, lib_1.normalizeOptions)(schema);
|
|
17
17
|
const currIter = options.static
|
|
18
|
-
? (0,
|
|
18
|
+
? (0, internal_4.fileServerExecutor)({
|
|
19
19
|
...options,
|
|
20
20
|
parallel: false,
|
|
21
21
|
withDeps: false,
|
|
@@ -24,9 +24,9 @@ async function* moduleFederationDevServer(schema, context) {
|
|
|
24
24
|
cacheSeconds: -1,
|
|
25
25
|
}, context)
|
|
26
26
|
: // TODO(JamesHenry): remove type assertion once the nx repo is updated to use https://github.com/nrwl/nx/pull/33095
|
|
27
|
-
(0,
|
|
27
|
+
(0, webpack_1.devServerExecutor)(options, context);
|
|
28
28
|
const p = context.projectsConfigurations.projects[context.projectName];
|
|
29
|
-
let pathToManifestFile = (0, path_1.join)(context.root, (0,
|
|
29
|
+
let pathToManifestFile = (0, path_1.join)(context.root, (0, internal_2.getProjectSourceRoot)(p), 'assets/module-federation.manifest.json');
|
|
30
30
|
if (options.pathToManifestFile) {
|
|
31
31
|
const userPathToManifestFile = (0, path_1.join)(context.root, options.pathToManifestFile);
|
|
32
32
|
if (!(0, fs_1.existsSync)(userPathToManifestFile)) {
|
|
@@ -40,8 +40,8 @@ async function* moduleFederationDevServer(schema, context) {
|
|
|
40
40
|
if (!options.isInitialHost) {
|
|
41
41
|
return yield* currIter;
|
|
42
42
|
}
|
|
43
|
-
const { staticRemotesIter, devRemoteIters, remotes } = await (0,
|
|
44
|
-
return yield* (0,
|
|
43
|
+
const { staticRemotesIter, devRemoteIters, remotes } = await (0, internal_3.startRemoteIterators)(options, context, lib_1.startRemotes, pathToManifestFile, 'react');
|
|
44
|
+
return yield* (0, internal_1.combineAsyncIterables)(currIter, ...devRemoteIters, ...(staticRemotesIter ? [staticRemotesIter] : []), (0, internal_1.createAsyncIterable)(async ({ next, done }) => {
|
|
45
45
|
if (!options.isInitialHost) {
|
|
46
46
|
done();
|
|
47
47
|
return;
|
|
@@ -56,7 +56,7 @@ async function* moduleFederationDevServer(schema, context) {
|
|
|
56
56
|
const portsToWaitFor = staticRemotesIter && options.staticRemotesPort
|
|
57
57
|
? [options.staticRemotesPort, ...remotes.remotePorts]
|
|
58
58
|
: [...remotes.remotePorts];
|
|
59
|
-
await Promise.all(portsToWaitFor.map((port) => (0,
|
|
59
|
+
await Promise.all(portsToWaitFor.map((port) => (0, internal_4.waitForPortOpen)(port, {
|
|
60
60
|
retries: 480,
|
|
61
61
|
retryDelay: 2500,
|
|
62
62
|
host: host,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WebDevServerOptions } from '@nx/webpack';
|
|
2
|
-
import { DevRemoteDefinition } from '@nx/module-federation/
|
|
2
|
+
import { DevRemoteDefinition } from '@nx/module-federation/internal';
|
|
3
3
|
|
|
4
4
|
export type ModuleFederationDevServerOptions = WebDevServerOptions & {
|
|
5
5
|
devRemotes?: DevRemoteDefinition[];
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"continuous": true,
|
|
4
4
|
"outputCapture": "direct-nodejs",
|
|
5
5
|
"title": "Module Federation Dev Server",
|
|
6
|
+
"x-deprecated": "The `@nx/react:module-federation-dev-server` executor is deprecated. Dynamic federation in `@nx/react:consumer` removes the need for host-orchestrated remote serving. Removed in Nx v24.",
|
|
6
7
|
"description": "Serve a web application.",
|
|
7
8
|
"cli": "nx",
|
|
8
9
|
"type": "object",
|
package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts
RENAMED
|
@@ -2,4 +2,3 @@ import { ModuleFederationSsrDevServerOptions, NormalizedModuleFederationSsrDevSe
|
|
|
2
2
|
import { ExecutorContext } from '@nx/devkit';
|
|
3
3
|
export declare function normalizeOptions(options: ModuleFederationSsrDevServerOptions): NormalizedModuleFederationSsrDevServerOptions;
|
|
4
4
|
export declare function getBuildOptions(buildTarget: string, context: ExecutorContext): any;
|
|
5
|
-
//# sourceMappingURL=normalize-options.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { ExecutorContext, ProjectConfiguration } from '@nx/devkit';
|
|
|
3
3
|
export declare function startRemotes(remotes: string[], workspaceProjects: Record<string, ProjectConfiguration>, options: Partial<Pick<ModuleFederationSsrDevServerOptions, 'devRemotes' | 'host' | 'ssl' | 'sslCert' | 'sslKey' | 'verbose'>>, context: ExecutorContext): Promise<AsyncIterable<{
|
|
4
4
|
success: boolean;
|
|
5
5
|
}>[]>;
|
|
6
|
-
//# sourceMappingURL=start-remotes.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ExecutorContext } from '@nx/devkit';
|
|
2
2
|
import { ModuleFederationSsrDevServerOptions } from './schema';
|
|
3
3
|
export default function moduleFederationSsrDevServer(ssrDevServerOptions: ModuleFederationSsrDevServerOptions, context: ExecutorContext): AsyncGenerator<any, any, any>;
|
|
4
|
-
//# sourceMappingURL=module-federation-ssr-dev-server.impl.d.ts.map
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = moduleFederationSsrDevServer;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
+
const internal_2 = require("@nx/js/internal");
|
|
7
|
+
const internal_3 = require("@nx/module-federation/internal");
|
|
8
|
+
const internal_4 = require("@nx/web/internal");
|
|
9
|
+
const internal_5 = require("@nx/webpack/internal");
|
|
11
10
|
const fs_1 = require("fs");
|
|
12
11
|
const path_1 = require("path");
|
|
13
12
|
const lib_1 = require("./lib");
|
|
13
|
+
const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
|
|
14
14
|
async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
15
|
+
(0, module_federation_deprecation_1.warnReactMfSsrDevServerExecutorDeprecation)();
|
|
15
16
|
const options = (0, lib_1.normalizeOptions)(ssrDevServerOptions);
|
|
16
17
|
// TODO(JamesHenry): remove type assertion once the nx repo is updated to use https://github.com/nrwl/nx/pull/33095
|
|
17
|
-
let iter = (0,
|
|
18
|
+
let iter = (0, internal_5.ssrDevServerExecutor)(options, context);
|
|
18
19
|
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
19
|
-
let pathToManifestFile = (0, path_1.join)(context.root, (0,
|
|
20
|
+
let pathToManifestFile = (0, path_1.join)(context.root, (0, internal_2.getProjectSourceRoot)(projectConfig), 'assets/module-federation.manifest.json');
|
|
20
21
|
if (options.pathToManifestFile) {
|
|
21
22
|
const userPathToManifestFile = (0, path_1.join)(context.root, options.pathToManifestFile);
|
|
22
23
|
if (!(0, fs_1.existsSync)(userPathToManifestFile)) {
|
|
@@ -30,8 +31,8 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
|
30
31
|
if (!options.isInitialHost) {
|
|
31
32
|
return yield* iter;
|
|
32
33
|
}
|
|
33
|
-
const { staticRemotesIter, devRemoteIters, remotes } = await (0,
|
|
34
|
-
const combined = (0,
|
|
34
|
+
const { staticRemotesIter, devRemoteIters, remotes } = await (0, internal_3.startRemoteIterators)(options, context, lib_1.startRemotes, pathToManifestFile, 'react', true);
|
|
35
|
+
const combined = (0, internal_1.combineAsyncIterables)(staticRemotesIter, ...devRemoteIters);
|
|
35
36
|
let refs = 1 + (devRemoteIters?.length ?? 0);
|
|
36
37
|
for await (const result of combined) {
|
|
37
38
|
if (result.success === false)
|
|
@@ -41,7 +42,7 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
|
41
42
|
if (refs === 0)
|
|
42
43
|
break;
|
|
43
44
|
}
|
|
44
|
-
return yield* (0,
|
|
45
|
+
return yield* (0, internal_1.combineAsyncIterables)(iter, (0, internal_1.createAsyncIterable)(async ({ next, done }) => {
|
|
45
46
|
const host = options.host ?? 'localhost';
|
|
46
47
|
const baseUrl = `http${options.ssl ? 's' : ''}://${host}:${options.port}`;
|
|
47
48
|
if (!options.isInitialHost) {
|
|
@@ -58,7 +59,7 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
|
58
59
|
const portsToWaitFor = staticRemotesIter && options.staticRemotesPort
|
|
59
60
|
? [options.staticRemotesPort, ...remotes.remotePorts]
|
|
60
61
|
: [...remotes.remotePorts];
|
|
61
|
-
await Promise.all(portsToWaitFor.map((port) => (0,
|
|
62
|
+
await Promise.all(portsToWaitFor.map((port) => (0, internal_4.waitForPortOpen)(port, {
|
|
62
63
|
retries: 480,
|
|
63
64
|
retryDelay: 2500,
|
|
64
65
|
host,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WebSsrDevServerOptions } from '@nx/webpack/
|
|
2
|
-
import { DevRemoteDefinition } from '@nx/module-federation/
|
|
1
|
+
import { WebSsrDevServerOptions } from '@nx/webpack/internal';
|
|
2
|
+
import { DevRemoteDefinition } from '@nx/module-federation/internal';
|
|
3
3
|
|
|
4
4
|
export type ModuleFederationSsrDevServerOptions = WebSsrDevServerOptions & {
|
|
5
5
|
devRemotes?: (
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"continuous": true,
|
|
4
4
|
"outputCapture": "direct-nodejs",
|
|
5
5
|
"title": "Module Federation SSR Dev Server",
|
|
6
|
+
"x-deprecated": "The `@nx/react:module-federation-ssr-dev-server` executor is deprecated. SSR is not first-classed in the new `@nx/react:consumer`/`@nx/react:provider` generators. Removed in Nx v24.",
|
|
6
7
|
"description": "Serve a SSR Consumer (host) application along with its known Producers (remotes).",
|
|
7
8
|
"cli": "nx",
|
|
8
9
|
"type": "object",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StaticRemotesConfig } from '@nx/module-federation/
|
|
1
|
+
import { StaticRemotesConfig } from '@nx/module-federation/internal';
|
|
2
2
|
import { ExecutorContext } from 'nx/src/config/misc-interfaces';
|
|
3
3
|
import { ModuleFederationDevServerOptions } from '../module-federation-dev-server/schema';
|
|
4
4
|
import { ModuleFederationStaticServerSchema } from './schema';
|
|
@@ -10,4 +10,3 @@ export default function moduleFederationStaticServer(schema: ModuleFederationSta
|
|
|
10
10
|
success: boolean;
|
|
11
11
|
baseUrl: string;
|
|
12
12
|
}, any, any>;
|
|
13
|
-
//# sourceMappingURL=module-federation-static-server.impl.d.ts.map
|