@nx/react 23.0.0-pr.35465.2bc2643 → 23.0.0-rc.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 → 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
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createTsConfig = createTsConfig;
|
|
4
4
|
exports.extractTsConfigBase = extractTsConfigBase;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
-
const shared = tslib_1.__importStar(require("@nx/js
|
|
6
|
+
const shared = tslib_1.__importStar(require("@nx/js"));
|
|
7
7
|
const json_1 = require("nx/src/generators/utils/json");
|
|
8
|
-
const
|
|
8
|
+
const internal_1 = require("@nx/js/internal");
|
|
9
9
|
function createTsConfig(host, projectRoot, type, options, relativePathToRootTsConfig) {
|
|
10
|
-
if ((0,
|
|
10
|
+
if ((0, internal_1.isUsingTsSolutionSetup)(host)) {
|
|
11
11
|
createTsConfigForTsSolution(host, projectRoot, type, options, relativePathToRootTsConfig);
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
@@ -54,10 +54,6 @@ function createTsConfigForTsSolution(host, projectRoot, type, options, relativeP
|
|
|
54
54
|
types.add('vite/client');
|
|
55
55
|
json.compilerOptions.types = Array.from(types);
|
|
56
56
|
}
|
|
57
|
-
if (options.style === '@emotion/styled') {
|
|
58
|
-
json.compilerOptions ??= {};
|
|
59
|
-
json.compilerOptions.jsxImportSource = '@emotion/react';
|
|
60
|
-
}
|
|
61
57
|
return json;
|
|
62
58
|
});
|
|
63
59
|
}
|
|
@@ -79,9 +75,6 @@ function createTsConfigForNonTsSolution(host, projectRoot, type, options, relati
|
|
|
79
75
|
},
|
|
80
76
|
],
|
|
81
77
|
};
|
|
82
|
-
if (options.style === '@emotion/styled') {
|
|
83
|
-
json.compilerOptions.jsxImportSource = '@emotion/react';
|
|
84
|
-
}
|
|
85
78
|
if (options.bundler === 'vite') {
|
|
86
79
|
json.compilerOptions.types =
|
|
87
80
|
options.unitTestRunner === 'vitest'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tree } from '@nx/devkit';
|
|
2
|
-
import { type FoundTarget } from '@nx/cypress/
|
|
2
|
+
import { type FoundTarget } from '@nx/cypress/internal';
|
|
3
3
|
export declare function configureCypressCT(tree: Tree, options: {
|
|
4
4
|
project: string;
|
|
5
5
|
buildTarget: string;
|
|
@@ -12,4 +12,3 @@ export declare function getActualBundler(tree: Tree, options: {
|
|
|
12
12
|
bundler?: 'vite' | 'webpack';
|
|
13
13
|
}, found: FoundTarget): Promise<"webpack" | "vite">;
|
|
14
14
|
export declare function isComponent(tree: Tree, filePath: string): boolean;
|
|
15
|
-
//# sourceMappingURL=ct-utils.d.ts.map
|
|
@@ -1,44 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.configureCypressCT = configureCypressCT;
|
|
37
4
|
exports.getBundlerFromTarget = getBundlerFromTarget;
|
|
38
5
|
exports.getActualBundler = getActualBundler;
|
|
39
6
|
exports.isComponent = isComponent;
|
|
40
7
|
const devkit_1 = require("@nx/devkit");
|
|
41
|
-
const
|
|
8
|
+
const internal_1 = require("@nx/js/internal");
|
|
42
9
|
const ast_utils_1 = require("./ast-utils");
|
|
43
10
|
let tsModule;
|
|
44
11
|
const allowedFileExt = new RegExp(/\.[jt]sx?/);
|
|
@@ -48,7 +15,7 @@ async function configureCypressCT(tree, options) {
|
|
|
48
15
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
49
16
|
// Specifically undefined as a workaround for Remix to pass an empty string as the buildTarget
|
|
50
17
|
if (options.buildTarget === undefined) {
|
|
51
|
-
const { findBuildConfig } =
|
|
18
|
+
const { findBuildConfig, } = require('@nx/cypress/internal');
|
|
52
19
|
found = await findBuildConfig(tree, {
|
|
53
20
|
project: options.project,
|
|
54
21
|
buildTarget: options.buildTarget,
|
|
@@ -65,7 +32,7 @@ async function configureCypressCT(tree, options) {
|
|
|
65
32
|
throw new Error(`Cypress Component Testing is not currently supported for this project. Either 'executer' is not defined in '${target} target' of '${project} project.json' or executer present is not valid one. Valid ones are ${JSON.stringify([...options.validExecutorNames])}. Please check https://github.com/nrwl/nx/issues/21546 for more information.`);
|
|
66
33
|
}
|
|
67
34
|
}
|
|
68
|
-
const { addDefaultCTConfig, getProjectCypressConfigPath } =
|
|
35
|
+
const { addDefaultCTConfig, getProjectCypressConfigPath, } = require('@nx/cypress/internal');
|
|
69
36
|
const ctConfigOptions = {
|
|
70
37
|
bundler: options.bundler ?? (await getActualBundler(tree, options, found)),
|
|
71
38
|
};
|
|
@@ -82,8 +49,8 @@ async function configureCypressCT(tree, options) {
|
|
|
82
49
|
ctConfigOptions.buildTarget = found.target;
|
|
83
50
|
}
|
|
84
51
|
const cypressConfigFilePath = getProjectCypressConfigPath(tree, projectConfig.root);
|
|
85
|
-
const updatedCyConfig = await addDefaultCTConfig(tree.read(cypressConfigFilePath, 'utf-8'), ctConfigOptions);
|
|
86
|
-
tree.write(cypressConfigFilePath,
|
|
52
|
+
const updatedCyConfig = await addDefaultCTConfig(tree.read(cypressConfigFilePath, 'utf-8'), ctConfigOptions, '@nx/react/plugins/component-testing');
|
|
53
|
+
tree.write(cypressConfigFilePath, updatedCyConfig);
|
|
87
54
|
return found;
|
|
88
55
|
}
|
|
89
56
|
function assertValidConfig(config) {
|
|
@@ -109,7 +76,7 @@ async function getActualBundler(tree, options, found) {
|
|
|
109
76
|
}
|
|
110
77
|
function isComponent(tree, filePath) {
|
|
111
78
|
if (!tsModule) {
|
|
112
|
-
tsModule = (0,
|
|
79
|
+
tsModule = (0, internal_1.ensureTypescript)();
|
|
113
80
|
}
|
|
114
81
|
if (isSpecFile.test(filePath) || !allowedFileExt.test(filePath)) {
|
|
115
82
|
return false;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const REACT_WITH_REACT_DEPRECATION_MESSAGE = "The `withReact` config helper from `@nx/react` is deprecated and will be removed in Nx v24. It produces an Nx-specific webpack config function that only runs under the `@nx/webpack:webpack` executor. Migrate to a standard webpack config that uses `NxReactWebpackPlugin` (from `@nx/react/webpack-plugin`) under the inferred `@nx/webpack/plugin` by running `nx g @nx/webpack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
|
|
2
|
+
export declare function suppressReactComposeHelperWarnings<T>(fn: () => T): T;
|
|
3
|
+
export declare function warnReactWithReactDeprecation(): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REACT_WITH_REACT_DEPRECATION_MESSAGE = void 0;
|
|
4
|
+
exports.suppressReactComposeHelperWarnings = suppressReactComposeHelperWarnings;
|
|
5
|
+
exports.warnReactWithReactDeprecation = warnReactWithReactDeprecation;
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
// TODO(v24): Remove the webpack `withReact` config helper. It emits an
|
|
8
|
+
// Nx-specific webpack config function that only runs under the
|
|
9
|
+
// @nx/webpack:webpack executor; the inferred @nx/webpack/plugin works with
|
|
10
|
+
// standard webpack configs built around NxReactWebpackPlugin instead.
|
|
11
|
+
exports.REACT_WITH_REACT_DEPRECATION_MESSAGE = 'The `withReact` config helper from `@nx/react` is deprecated and will be removed in Nx v24. It produces an Nx-specific webpack config function that only runs under the `@nx/webpack:webpack` executor. Migrate to a standard webpack config that uses `NxReactWebpackPlugin` (from `@nx/react/webpack-plugin`) under the inferred `@nx/webpack/plugin` by running `nx g @nx/webpack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
|
|
12
|
+
let withReactWarned = false;
|
|
13
|
+
let suppressDepth = 0;
|
|
14
|
+
// Nx-internal entry points compose `withReact` themselves (e.g. the storybook
|
|
15
|
+
// and component-testing presets). They wrap their synchronous composition in
|
|
16
|
+
// this so the warning fires only for user-authored configs.
|
|
17
|
+
function suppressReactComposeHelperWarnings(fn) {
|
|
18
|
+
suppressDepth++;
|
|
19
|
+
try {
|
|
20
|
+
return fn();
|
|
21
|
+
}
|
|
22
|
+
finally {
|
|
23
|
+
suppressDepth--;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
// Warn once per process so HMR reloads and repeated config evaluation don't
|
|
27
|
+
// repeat the message.
|
|
28
|
+
function warnReactWithReactDeprecation() {
|
|
29
|
+
if (suppressDepth > 0 || withReactWarned)
|
|
30
|
+
return;
|
|
31
|
+
withReactWarned = true;
|
|
32
|
+
devkit_1.logger.warn(exports.REACT_WITH_REACT_DEPRECATION_MESSAGE);
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasRsbuildPlugin = hasRsbuildPlugin;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const versions_1 = require("./versions");
|
|
6
|
+
async function hasRsbuildPlugin(tree, projectPath) {
|
|
7
|
+
(0, devkit_1.ensurePackage)('@nx/rsbuild', versions_1.nxVersion);
|
|
8
|
+
// `require()` honors Module._initPaths (which ensurePackage updates); ESM
|
|
9
|
+
// dynamic `import()` doesn't, so it can't see the on-demand temp install.
|
|
10
|
+
const { hasRsbuildPlugin, } = require('@nx/rsbuild/config-utils');
|
|
11
|
+
return hasRsbuildPlugin(tree, projectPath);
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const REACT_HOST_GENERATOR_DEPRECATION_MESSAGE = "The `@nx/react:host` generator is deprecated and will be removed in Nx v24. Use `nx g @nx/react:consumer` (dynamic federation, no static-serve orchestration). See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
|
|
2
|
+
export declare const REACT_REMOTE_GENERATOR_DEPRECATION_MESSAGE = "The `@nx/react:remote` generator is deprecated and will be removed in Nx v24. Use `nx g @nx/react:provider` instead. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
|
|
3
|
+
export declare const REACT_FEDERATE_MODULE_GENERATOR_DEPRECATION_MESSAGE = "The `@nx/react:federate-module` generator is deprecated and will be removed in Nx v24. The new `@nx/react:provider` generator exposes modules directly. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
|
|
4
|
+
export declare const REACT_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/react:module-federation-dev-server` executor is deprecated and will be removed in Nx v24. Dynamic federation in `@nx/react:consumer` removes the need for host-orchestrated remote serving. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
|
|
5
|
+
export declare const REACT_MF_SSR_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/react:module-federation-ssr-dev-server` executor is deprecated and will be removed in Nx v24. SSR is not first-classed in the new generators; see https://nx.dev/docs/technologies/module-federation/consumer-and-provider for guidance on wiring SSR with `@nx/react:consumer`.";
|
|
6
|
+
export declare const REACT_MF_STATIC_SERVER_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/react:module-federation-static-server` executor is deprecated and will be removed in Nx v24. Use plain `vite preview` / `rsbuild preview` via `nx:run-commands` if a static-serve workflow is still needed. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for details.";
|
|
7
|
+
export declare function warnReactHostGeneratorDeprecation(): void;
|
|
8
|
+
export declare function warnReactRemoteGeneratorDeprecation(): void;
|
|
9
|
+
export declare function warnReactFederateModuleGeneratorDeprecation(): void;
|
|
10
|
+
export declare function warnReactMfDevServerExecutorDeprecation(): void;
|
|
11
|
+
export declare function warnReactMfSsrDevServerExecutorDeprecation(): void;
|
|
12
|
+
export declare function warnReactMfStaticServerExecutorDeprecation(): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REACT_MF_STATIC_SERVER_EXECUTOR_DEPRECATION_MESSAGE = exports.REACT_MF_SSR_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = exports.REACT_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = exports.REACT_FEDERATE_MODULE_GENERATOR_DEPRECATION_MESSAGE = exports.REACT_REMOTE_GENERATOR_DEPRECATION_MESSAGE = exports.REACT_HOST_GENERATOR_DEPRECATION_MESSAGE = void 0;
|
|
4
|
+
exports.warnReactHostGeneratorDeprecation = warnReactHostGeneratorDeprecation;
|
|
5
|
+
exports.warnReactRemoteGeneratorDeprecation = warnReactRemoteGeneratorDeprecation;
|
|
6
|
+
exports.warnReactFederateModuleGeneratorDeprecation = warnReactFederateModuleGeneratorDeprecation;
|
|
7
|
+
exports.warnReactMfDevServerExecutorDeprecation = warnReactMfDevServerExecutorDeprecation;
|
|
8
|
+
exports.warnReactMfSsrDevServerExecutorDeprecation = warnReactMfSsrDevServerExecutorDeprecation;
|
|
9
|
+
exports.warnReactMfStaticServerExecutorDeprecation = warnReactMfStaticServerExecutorDeprecation;
|
|
10
|
+
const devkit_1 = require("@nx/devkit");
|
|
11
|
+
// TODO(v24): Remove these surfaces. Replaced by `@nx/react:consumer`
|
|
12
|
+
// and `@nx/react:provider` (React, dynamic federation, Vite/Rsbuild/Rspack).
|
|
13
|
+
const MIGRATION_URL = 'https://nx.dev/docs/technologies/module-federation/consumer-and-provider';
|
|
14
|
+
exports.REACT_HOST_GENERATOR_DEPRECATION_MESSAGE = `The \`@nx/react:host\` generator is deprecated and will be removed in Nx v24. Use \`nx g @nx/react:consumer\` (dynamic federation, no static-serve orchestration). See ${MIGRATION_URL} for the v23 migration guide.`;
|
|
15
|
+
exports.REACT_REMOTE_GENERATOR_DEPRECATION_MESSAGE = `The \`@nx/react:remote\` generator is deprecated and will be removed in Nx v24. Use \`nx g @nx/react:provider\` instead. See ${MIGRATION_URL} for the v23 migration guide.`;
|
|
16
|
+
exports.REACT_FEDERATE_MODULE_GENERATOR_DEPRECATION_MESSAGE = `The \`@nx/react:federate-module\` generator is deprecated and will be removed in Nx v24. The new \`@nx/react:provider\` generator exposes modules directly. See ${MIGRATION_URL} for the v23 migration guide.`;
|
|
17
|
+
exports.REACT_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = `The \`@nx/react:module-federation-dev-server\` executor is deprecated and will be removed in Nx v24. Dynamic federation in \`@nx/react:consumer\` removes the need for host-orchestrated remote serving. See ${MIGRATION_URL} for the v23 migration guide.`;
|
|
18
|
+
exports.REACT_MF_SSR_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = `The \`@nx/react:module-federation-ssr-dev-server\` executor is deprecated and will be removed in Nx v24. SSR is not first-classed in the new generators; see ${MIGRATION_URL} for guidance on wiring SSR with \`@nx/react:consumer\`.`;
|
|
19
|
+
exports.REACT_MF_STATIC_SERVER_EXECUTOR_DEPRECATION_MESSAGE = `The \`@nx/react:module-federation-static-server\` executor is deprecated and will be removed in Nx v24. Use plain \`vite preview\` / \`rsbuild preview\` via \`nx:run-commands\` if a static-serve workflow is still needed. See ${MIGRATION_URL} for details.`;
|
|
20
|
+
function warnReactHostGeneratorDeprecation() {
|
|
21
|
+
devkit_1.logger.warn(exports.REACT_HOST_GENERATOR_DEPRECATION_MESSAGE);
|
|
22
|
+
}
|
|
23
|
+
function warnReactRemoteGeneratorDeprecation() {
|
|
24
|
+
devkit_1.logger.warn(exports.REACT_REMOTE_GENERATOR_DEPRECATION_MESSAGE);
|
|
25
|
+
}
|
|
26
|
+
function warnReactFederateModuleGeneratorDeprecation() {
|
|
27
|
+
devkit_1.logger.warn(exports.REACT_FEDERATE_MODULE_GENERATOR_DEPRECATION_MESSAGE);
|
|
28
|
+
}
|
|
29
|
+
// Executor warnings fire once per process (dev-server reload loops would
|
|
30
|
+
// otherwise flood the console).
|
|
31
|
+
const executorWarned = new Set();
|
|
32
|
+
function warnOnce(key, message) {
|
|
33
|
+
if (executorWarned.has(key))
|
|
34
|
+
return;
|
|
35
|
+
executorWarned.add(key);
|
|
36
|
+
devkit_1.logger.warn(message);
|
|
37
|
+
}
|
|
38
|
+
function warnReactMfDevServerExecutorDeprecation() {
|
|
39
|
+
warnOnce('react-mf-dev-server', exports.REACT_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE);
|
|
40
|
+
}
|
|
41
|
+
function warnReactMfSsrDevServerExecutorDeprecation() {
|
|
42
|
+
warnOnce('react-mf-ssr-dev-server', exports.REACT_MF_SSR_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE);
|
|
43
|
+
}
|
|
44
|
+
function warnReactMfStaticServerExecutorDeprecation() {
|
|
45
|
+
warnOnce('react-mf-static-server', exports.REACT_MF_STATIC_SERVER_EXECUTOR_DEPRECATION_MESSAGE);
|
|
46
|
+
}
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.normalizeRemoteName = normalizeRemoteName;
|
|
4
4
|
exports.normalizeRemoteDirectory = normalizeRemoteDirectory;
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
6
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
7
7
|
async function normalizeRemoteName(tree, remote, options) {
|
|
8
|
-
const { projectName: remoteName } = await (0,
|
|
8
|
+
const { projectName: remoteName } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
|
|
9
9
|
name: remote,
|
|
10
10
|
projectType: 'application',
|
|
11
11
|
directory: options.directory,
|
|
@@ -6,6 +6,7 @@ type ReactDependenciesVersions = {
|
|
|
6
6
|
'@types/react': string;
|
|
7
7
|
'@types/react-dom': string;
|
|
8
8
|
'@types/react-is': string;
|
|
9
|
+
'react-router': string;
|
|
9
10
|
};
|
|
10
11
|
export declare function getReactDependenciesVersionsToInstall(tree: Tree): Promise<ReactDependenciesVersions>;
|
|
11
12
|
export declare function isReact18(tree: Tree): Promise<boolean>;
|
|
@@ -14,4 +15,3 @@ export declare function getInstalledReactVersionFromGraph(): Promise<string>;
|
|
|
14
15
|
export declare function getInstalledReactRouterDevVersion(tree: Tree): string | undefined;
|
|
15
16
|
export declare function reactRouterSupportsVite8(tree: Tree): boolean;
|
|
16
17
|
export {};
|
|
17
|
-
//# sourceMappingURL=version-utils.d.ts.map
|
|
@@ -18,6 +18,8 @@ async function getReactDependenciesVersionsToInstall(tree) {
|
|
|
18
18
|
'@types/react': versions_1.typesReactV18Version,
|
|
19
19
|
'@types/react-dom': versions_1.typesReactDomV18Version,
|
|
20
20
|
'@types/react-is': versions_1.typesReactIsV18Version,
|
|
21
|
+
// react-router v7 is the SSR package regardless of React version
|
|
22
|
+
'react-router': versions_1.reactRouterVersion,
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
else {
|
|
@@ -28,6 +30,7 @@ async function getReactDependenciesVersionsToInstall(tree) {
|
|
|
28
30
|
'@types/react': versions_1.typesReactVersion,
|
|
29
31
|
'@types/react-dom': versions_1.typesReactDomVersion,
|
|
30
32
|
'@types/react-is': versions_1.typesReactIsVersion,
|
|
33
|
+
'react-router': versions_1.reactRouterVersion,
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
+
export declare const minSupportedReactVersion = "18.0.0";
|
|
2
3
|
export declare const reactVersion = "^19.0.0";
|
|
3
4
|
export declare const reactV18Version = "18.3.1";
|
|
4
5
|
export declare const reactDomVersion = "^19.0.0";
|
|
@@ -6,7 +7,6 @@ export declare const reactDomV18Version = "18.3.1";
|
|
|
6
7
|
export declare const reactIsVersion = "^19.0.0";
|
|
7
8
|
export declare const reactIsV18Version = "18.3.1";
|
|
8
9
|
export declare const swcLoaderVersion = "0.1.15";
|
|
9
|
-
export declare const babelLoaderVersion = "^9.1.2";
|
|
10
10
|
export declare const typesReactV18Version = "18.3.1";
|
|
11
11
|
export declare const typesReactVersion = "^19.0.0";
|
|
12
12
|
export declare const typesReactDomV18Version = "18.3.0";
|
|
@@ -14,30 +14,22 @@ export declare const typesReactDomVersion = "^19.0.0";
|
|
|
14
14
|
export declare const typesReactIsV18Version = "18.3.0";
|
|
15
15
|
export declare const typesReactIsVersion = "^19.0.0";
|
|
16
16
|
export declare const reactViteVersion = "^4.2.0";
|
|
17
|
-
export declare const typesNodeVersion = "^
|
|
17
|
+
export declare const typesNodeVersion = "^22.0.0";
|
|
18
18
|
export declare const babelPresetReactVersion = "^7.14.5";
|
|
19
19
|
export declare const babelCoreVersion = "^7.14.5";
|
|
20
|
-
export declare const styledComponentsVersion = "5.3.6";
|
|
21
|
-
export declare const typesStyledComponentsVersion = "5.1.26";
|
|
22
|
-
export declare const emotionStyledVersion = "11.14.1";
|
|
23
|
-
export declare const emotionReactVersion = "11.14.0";
|
|
24
|
-
export declare const emotionBabelPlugin = "11.13.5";
|
|
25
|
-
export declare const styledJsxVersion = "5.1.2";
|
|
26
20
|
export declare const reactRouterDomVersion = "6.30.3";
|
|
27
21
|
export declare const reactRouterVersion = "^7.14.2";
|
|
28
22
|
export declare const reactRouterIsBotVersion = "^4.4.0";
|
|
29
23
|
export declare const testingLibraryReactVersion = "16.3.0";
|
|
30
24
|
export declare const testingLibraryDomVersion = "10.4.0";
|
|
31
|
-
export declare const reduxjsToolkitVersion = "
|
|
32
|
-
export declare const reactReduxVersion = "
|
|
25
|
+
export declare const reduxjsToolkitVersion = "^2.5.0";
|
|
26
|
+
export declare const reactReduxVersion = "^9.2.0";
|
|
33
27
|
export declare const eslintPluginImportVersion = "2.31.0";
|
|
34
28
|
export declare const eslintPluginJsxA11yVersion = "6.10.1";
|
|
35
29
|
export declare const eslintPluginReactVersion = "7.35.0";
|
|
36
30
|
export declare const eslintPluginReactHooksVersion = "5.0.0";
|
|
37
|
-
export declare const babelPluginStyledComponentsVersion = "1.10.7";
|
|
38
31
|
export declare const tsLibVersion = "^2.3.0";
|
|
39
32
|
export declare const postcssVersion = "8.4.38";
|
|
40
|
-
export declare const tailwindcssVersion = "3.4.3";
|
|
41
33
|
export declare const autoprefixerVersion = "10.4.13";
|
|
42
34
|
export declare const expressVersion = "^4.21.2";
|
|
43
35
|
export declare const typesExpressVersion = "^4.17.21";
|
|
@@ -46,11 +38,6 @@ export declare const corsVersion = "~2.8.5";
|
|
|
46
38
|
export declare const typesCorsVersion = "~2.8.12";
|
|
47
39
|
export declare const moduleFederationNodeVersion = "^2.7.21";
|
|
48
40
|
export declare const moduleFederationEnhancedVersion = "^2.1.0";
|
|
49
|
-
export declare const
|
|
50
|
-
export declare const sassVersion = "^1.55.0";
|
|
41
|
+
export declare const sassVersion = "^1.97.2";
|
|
51
42
|
export declare const rollupPluginUrlVersion = "^8.0.2";
|
|
52
43
|
export declare const svgrRollupVersion = "^8.1.0";
|
|
53
|
-
export declare const swcPluginStyledJsxVersion = "^1.5.67";
|
|
54
|
-
export declare const swcPluginEmotionVersion = "^2.5.67";
|
|
55
|
-
export declare const swcPluginStyledComponentsVersion = "^1.5.67";
|
|
56
|
-
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.svgrRollupVersion = exports.rollupPluginUrlVersion = exports.sassVersion = exports.moduleFederationEnhancedVersion = exports.moduleFederationNodeVersion = exports.typesCorsVersion = exports.corsVersion = exports.isbotVersion = exports.typesExpressVersion = exports.expressVersion = exports.autoprefixerVersion = exports.postcssVersion = exports.tsLibVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryDomVersion = exports.testingLibraryReactVersion = exports.reactRouterIsBotVersion = exports.reactRouterVersion = exports.reactRouterDomVersion = exports.babelCoreVersion = exports.babelPresetReactVersion = exports.typesNodeVersion = exports.reactViteVersion = exports.typesReactIsVersion = exports.typesReactIsV18Version = exports.typesReactDomVersion = exports.typesReactDomV18Version = exports.typesReactVersion = exports.typesReactV18Version = exports.swcLoaderVersion = exports.reactIsV18Version = exports.reactIsVersion = exports.reactDomV18Version = exports.reactDomVersion = exports.reactV18Version = exports.reactVersion = exports.minSupportedReactVersion = exports.nxVersion = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
exports.nxVersion = require((0, path_1.join)('@nx/react', 'package.json')).version;
|
|
6
|
+
exports.minSupportedReactVersion = '18.0.0';
|
|
7
|
+
exports.reactVersion = '^19.0.0';
|
|
8
|
+
exports.reactV18Version = '18.3.1';
|
|
9
|
+
exports.reactDomVersion = '^19.0.0';
|
|
10
|
+
exports.reactDomV18Version = '18.3.1';
|
|
11
|
+
exports.reactIsVersion = '^19.0.0';
|
|
12
|
+
exports.reactIsV18Version = '18.3.1';
|
|
13
|
+
exports.swcLoaderVersion = '0.1.15';
|
|
14
|
+
exports.typesReactV18Version = '18.3.1';
|
|
15
|
+
exports.typesReactVersion = '^19.0.0';
|
|
16
|
+
exports.typesReactDomV18Version = '18.3.0';
|
|
17
|
+
exports.typesReactDomVersion = '^19.0.0';
|
|
18
|
+
exports.typesReactIsV18Version = '18.3.0';
|
|
19
|
+
exports.typesReactIsVersion = '^19.0.0';
|
|
20
|
+
exports.reactViteVersion = '^4.2.0';
|
|
21
|
+
// Needed for React-Router
|
|
22
|
+
exports.typesNodeVersion = '^22.0.0';
|
|
23
|
+
exports.babelPresetReactVersion = '^7.14.5';
|
|
24
|
+
exports.babelCoreVersion = '^7.14.5';
|
|
25
|
+
exports.reactRouterDomVersion = '6.30.3';
|
|
26
|
+
exports.reactRouterVersion = '^7.14.2';
|
|
27
|
+
exports.reactRouterIsBotVersion = '^4.4.0';
|
|
28
|
+
exports.testingLibraryReactVersion = '16.3.0';
|
|
29
|
+
exports.testingLibraryDomVersion = '10.4.0';
|
|
30
|
+
// RTK 2 / react-redux 9 peer on react ^18 || ^19 — cover the full support window.
|
|
31
|
+
// react-redux 8.0.5 / RTK 1.9.3 peer-cap at react ^18, breaking `nx g redux` on React 19.
|
|
32
|
+
exports.reduxjsToolkitVersion = '^2.5.0';
|
|
33
|
+
exports.reactReduxVersion = '^9.2.0';
|
|
34
|
+
exports.eslintPluginImportVersion = '2.31.0';
|
|
35
|
+
exports.eslintPluginJsxA11yVersion = '6.10.1';
|
|
36
|
+
exports.eslintPluginReactVersion = '7.35.0';
|
|
37
|
+
exports.eslintPluginReactHooksVersion = '5.0.0';
|
|
38
|
+
exports.tsLibVersion = '^2.3.0';
|
|
39
|
+
exports.postcssVersion = '8.4.38';
|
|
40
|
+
exports.autoprefixerVersion = '10.4.13';
|
|
41
|
+
// SSR and Module Federation
|
|
42
|
+
exports.expressVersion = '^4.21.2';
|
|
43
|
+
exports.typesExpressVersion = '^4.17.21';
|
|
44
|
+
exports.isbotVersion = '^3.6.5';
|
|
45
|
+
exports.corsVersion = '~2.8.5';
|
|
46
|
+
exports.typesCorsVersion = '~2.8.12';
|
|
47
|
+
exports.moduleFederationNodeVersion = '^2.7.21';
|
|
48
|
+
exports.moduleFederationEnhancedVersion = '^2.1.0';
|
|
49
|
+
// style preprocessors
|
|
50
|
+
exports.sassVersion = '^1.97.2';
|
|
51
|
+
// rollup plugins (if needed)
|
|
52
|
+
exports.rollupPluginUrlVersion = '^8.0.2';
|
|
53
|
+
exports.svgrRollupVersion = '^8.1.0';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated `@nx/react/tailwind` will be removed in Nx 24. Migrate to Tailwind CSS v4 which no longer needs glob patterns.
|
|
3
|
+
* See: https://nx.dev/docs/technologies/react/guides/using-tailwind-css-in-react
|
|
4
|
+
*/
|
|
5
|
+
export declare function createGlobPatternsForDependencies(dirPath: string, fileGlobPattern?: string): string[];
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createGlobPatternsForDependencies = createGlobPatternsForDependencies;
|
|
4
|
-
const
|
|
4
|
+
const internal_1 = require("@nx/js/internal");
|
|
5
|
+
let hasWarned = false;
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @param fileGlobPattern pass a custom glob pattern to be used
|
|
7
|
+
* @deprecated `@nx/react/tailwind` will be removed in Nx 24. Migrate to Tailwind CSS v4 which no longer needs glob patterns.
|
|
8
|
+
* See: https://nx.dev/docs/technologies/react/guides/using-tailwind-css-in-react
|
|
9
9
|
*/
|
|
10
|
-
function createGlobPatternsForDependencies(dirPath, fileGlobPattern = '
|
|
10
|
+
function createGlobPatternsForDependencies(dirPath, fileGlobPattern = '/**/!(*.stories|*.spec).{tsx,ts,jsx,js,html}') {
|
|
11
|
+
if (!hasWarned) {
|
|
12
|
+
hasWarned = true;
|
|
13
|
+
console.warn(`\nWARNING: "@nx/react/tailwind" is deprecated and will be removed in Nx 24.\n` +
|
|
14
|
+
`Migrate to Tailwind CSS v4 which no longer needs glob patterns for content detection.\n` +
|
|
15
|
+
`See: https://nx.dev/docs/technologies/react/guides/using-tailwind-css-in-react\n`);
|
|
16
|
+
}
|
|
11
17
|
try {
|
|
12
|
-
return (0,
|
|
18
|
+
return (0, internal_1.createGlobPatternsForDependencies)(dirPath, fileGlobPattern);
|
|
13
19
|
}
|
|
14
20
|
catch (e) {
|
|
15
21
|
/**
|
|
@@ -19,7 +25,7 @@ function createGlobPatternsForDependencies(dirPath, fileGlobPattern = '/**/*!(*.
|
|
|
19
25
|
* autocomplete features, for example.
|
|
20
26
|
*
|
|
21
27
|
* In order to best support that use-case, we therefore do not hard error when the ProjectGraph is
|
|
22
|
-
*
|
|
28
|
+
* fundamentally unavailable in this tailwind-specific context.
|
|
23
29
|
*/
|
|
24
30
|
console.warn('\nWARNING: There was an error creating glob patterns, returning an empty array\n' +
|
|
25
31
|
`${e.message}\n`);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare module '*.module.css' {
|
|
2
|
+
const classes: { readonly [key: string]: string };
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module '*.module.scss' {
|
|
7
|
+
const classes: { readonly [key: string]: string };
|
|
8
|
+
export default classes;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module '*.module.sass' {
|
|
12
|
+
const classes: { readonly [key: string]: string };
|
|
13
|
+
export default classes;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module '*.module.less' {
|
|
17
|
+
const classes: { readonly [key: string]: string };
|
|
18
|
+
export default classes;
|
|
19
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-dom" />
|
|
3
|
+
|
|
4
|
+
declare module '*.svg' {
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
|
|
7
|
+
export const ReactComponent: React.FunctionComponent<
|
|
8
|
+
React.SVGProps<SVGSVGElement> & { title?: string }
|
|
9
|
+
>;
|
|
10
|
+
|
|
11
|
+
const src: string;
|
|
12
|
+
export default src;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare module '*.bmp' {
|
|
16
|
+
const src: string;
|
|
17
|
+
export default src;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare module '*.gif' {
|
|
21
|
+
const src: string;
|
|
22
|
+
export default src;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module '*.jpg' {
|
|
26
|
+
const src: string;
|
|
27
|
+
export default src;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare module '*.jpeg' {
|
|
31
|
+
const src: string;
|
|
32
|
+
export default src;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare module '*.png' {
|
|
36
|
+
const src: string;
|
|
37
|
+
export default src;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare module '*.avif' {
|
|
41
|
+
const src: string;
|
|
42
|
+
export default src;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare module '*.webp' {
|
|
46
|
+
const src: string;
|
|
47
|
+
export default src;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SupportedStyles = 'css' | 'scss' | 'none';
|