@nx/react 23.0.0-beta.23 → 23.0.0-beta.25
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 -1
- 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 +2 -5
- package/{plugins → dist/plugins}/component-testing/webpack-fallback.d.ts +0 -1
- 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 +15 -9
- 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/{router-plugin.d.ts → dist/router-plugin.d.ts} +0 -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 +7 -9
- package/{src → dist/src}/executors/module-federation-dev-server/schema.d.ts +1 -1
- 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 +6 -7
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.d.ts +2 -2
- 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 +9 -12
- package/{src → dist/src}/generators/_utils/mf-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/_utils/mf-versions.d.ts +0 -1
- package/{src → dist/src}/generators/_utils/normalize.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.js +2 -0
- 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 +2 -36
- package/{src → dist/src}/generators/application/lib/add-project.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-routing.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-routing.js +1 -1
- package/{src → dist/src}/generators/application/lib/bundlers/add-rsbuild.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/bundlers/add-rsbuild.js +4 -37
- package/{src → dist/src}/generators/application/lib/bundlers/add-rspack.d.ts +0 -1
- 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 +1 -34
- 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 +0 -1
- 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 +5 -5
- package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
- 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/component/component.d.ts +0 -1
- package/{src → dist/src}/generators/component/component.js +4 -2
- 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-story/component-story.d.ts +0 -1
- package/{src → dist/src}/generators/component-story/component-story.js +2 -0
- package/{src → dist/src}/generators/component-test/component-test.d.ts +0 -1
- package/{src → dist/src}/generators/component-test/component-test.js +2 -0
- package/{src → dist/src}/generators/component-test/schema.d.ts +0 -1
- package/{src → dist/src}/generators/consumer/consumer.d.ts +0 -1
- package/{src → dist/src}/generators/consumer/consumer.js +3 -1
- 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 +0 -1
- package/{src → dist/src}/generators/cypress-component-configuration/lib/add-files.js +3 -37
- package/{src → dist/src}/generators/federate-module/federate-module.d.ts +0 -1
- package/{src → dist/src}/generators/federate-module/federate-module.js +2 -0
- package/{src → dist/src}/generators/federate-module/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/hook/hook.d.ts +0 -1
- package/{src → dist/src}/generators/hook/hook.js +2 -0
- package/{src → dist/src}/generators/host/host.d.ts +0 -1
- package/{src → dist/src}/generators/host/host.js +3 -1
- package/{src → dist/src}/generators/host/lib/add-module-federation-files.d.ts +0 -1
- package/{src → dist/src}/generators/host/lib/normalize-host-name.d.ts +0 -1
- 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/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +3 -1
- package/{src → dist/src}/generators/init/schema.json +1 -1
- package/{src → dist/src}/generators/library/lib/add-linting.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-linting.js +1 -1
- 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 +1 -1
- package/{src → dist/src}/generators/library/lib/create-files.d.ts +0 -1
- 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 +2 -2
- package/{src → dist/src}/generators/library/lib/normalize-options.d.ts +0 -1
- 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 +1 -1
- package/{src → dist/src}/generators/library/library.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.js +3 -1
- package/{src → dist/src}/generators/provider/provider.d.ts +0 -1
- package/{src → dist/src}/generators/provider/provider.js +3 -1
- package/{src → dist/src}/generators/redux/redux.d.ts +0 -1
- package/{src → dist/src}/generators/redux/redux.js +3 -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-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/remote.d.ts +0 -1
- package/{src → dist/src}/generators/remote/remote.js +3 -1
- package/{src → dist/src}/generators/setup-ssr/setup-ssr.d.ts +0 -1
- package/{src → dist/src}/generators/setup-ssr/setup-ssr.js +3 -1
- package/{src → dist/src}/generators/stories/stories.d.ts +0 -1
- package/{src → dist/src}/generators/stories/stories.js +4 -2
- 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/{src → dist/src}/migrations/update-22-0-0/add-svgr-to-webpack-config.d.ts +0 -1
- 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 +136 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/{src → dist/src}/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.d.ts +0 -1
- 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}/plugins/router-plugin.d.ts +0 -1
- package/{src → dist/src}/rules/update-module-federation-project.d.ts +0 -1
- package/{src → dist/src}/utils/add-mf-env-to-inputs.d.ts +0 -1
- 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/ast-utils.d.ts +0 -1
- package/{src → dist/src}/utils/component-props.d.ts +0 -1
- package/{src → dist/src}/utils/create-ts-config.d.ts +0 -1
- package/{src → dist/src}/utils/ct-utils.d.ts +0 -1
- package/{src → dist/src}/utils/ct-utils.js +2 -35
- 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/{src → dist/src}/utils/module-federation-deprecation.d.ts +0 -1
- package/{src → dist/src}/utils/normalize-remote.d.ts +0 -1
- 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 +3 -3
- package/{src → dist/src}/utils/versions.js +8 -4
- package/{tailwind.d.ts → dist/tailwind.d.ts} +0 -1
- 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 +34 -34
- package/migrations.json +40 -86
- package/package.json +143 -139
- 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.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/_utils/mf-dependencies.d.ts.map +0 -1
- package/src/generators/_utils/mf-versions.d.ts.map +0 -1
- package/src/generators/_utils/normalize.d.ts.map +0 -1
- package/src/generators/application/application.d.ts.map +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-rspack.d.ts.map +0 -1
- 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/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/consumer/consumer.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/provider/provider.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/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-18-0-0/add-mf-env-var-to-target-defaults.md +0 -36
- 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-mf-imports-to-new-package.md +0 -27
- 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-2-0/migrate-with-mf-import-to-new-package.md +0 -25
- 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-20-3-0/ensure-nx-module-federation-package.md +0 -23
- 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/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.d.ts.map +0 -1
- package/src/module-federation/ast-utils.d.ts.map +0 -1
- package/src/plugins/router-plugin.d.ts.map +0 -1
- 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/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/module-federation-deprecation.d.ts.map +0 -1
- package/src/utils/normalize-remote.d.ts.map +0 -1
- 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/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/{index.js → dist/index.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}/component-testing/webpack-fallback.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/{router-plugin.js → dist/router-plugin.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-dev-server/schema.json +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-ssr-dev-server/schema.json +0 -0
- /package/{src → dist/src}/executors/module-federation-static-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/module-federation-static-server/schema.json +0 -0
- /package/{src → dist/src}/generators/_utils/mf-dependencies.js +0 -0
- /package/{src → dist/src}/generators/_utils/mf-versions.js +0 -0
- /package/{src → dist/src}/generators/_utils/normalize.js +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-rsbuild/tsconfig.app.json__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-rspack/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/base-vite/index.html__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-vite/tsconfig.app.json__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/tsconfig.app.json__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/add-project.js +0 -0
- /package/{src → dist/src}/generators/application/lib/bundlers/add-rspack.js +0 -0
- /package/{src → dist/src}/generators/application/lib/create-application-files.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/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/application/lib/set-defaults.js +0 -0
- /package/{src → dist/src}/generators/application/lib/update-jest-config.js +0 -0
- /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/application/schema.json +0 -0
- /package/{src → dist/src}/generators/component/files/__fileName__.__ext__ +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/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/component/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/component/schema.json +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/consumer/files/_common/src/App.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/src/bootstrap.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/src/index.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/src/mf.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/_common/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rsbuild/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rsbuild/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rsbuild/rsbuild.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rspack/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rspack/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/rspack/rspack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/vite/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/vite/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/files/vite/vite.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/consumer/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/consumer/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/lib/utils.js +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/module-federation.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ssr-ts/rspack.config.ts__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/rspack-module-federation-ts/module-federation.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ts/rspack.config.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/rspack-module-federation-ts/rspack.config.ts__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/module-federation.server.config.ts__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/files/webpack-module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/module-federation.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/webpack.config.prod.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/files/webpack-module-federation-ts/webpack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/host/lib/add-module-federation-files.js +0 -0
- /package/{src → dist/src}/generators/host/lib/normalize-host-name.js +0 -0
- /package/{src → dist/src}/generators/host/lib/update-module-federation-e2e-project.js +0 -0
- /package/{src → dist/src}/generators/host/lib/update-module-federation-tsconfig.js +0 -0
- /package/{src → dist/src}/generators/host/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/host/schema.json +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/common/tsconfig.lib.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/files/vite/README.md +0 -0
- /package/{src → dist/src}/generators/library/files/vite/tsconfig.lib.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/library/lib/create-files.js +0 -0
- /package/{src → dist/src}/generators/library/lib/determine-entry-fields.js +0 -0
- /package/{src → dist/src}/generators/library/lib/normalize-options.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/library/schema.json +0 -0
- /package/{src → dist/src}/generators/provider/files/_common/src/__componentName__.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/_common/src/bootstrap.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/_common/src/index.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/_common/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rsbuild/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rsbuild/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rsbuild/rsbuild.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rspack/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rspack/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/rspack/rspack.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/vite/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/vite/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/files/vite/vite.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/provider/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/provider/schema.json +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.d.ts +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/module-federation.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/rspack-module-federation-ssr-ts/rspack.config.ts__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/module-federation.config.ts__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/rspack.config.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/module-federation.server.config.ts__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-ssr-ts/webpack.server.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/remote/files/webpack-module-federation-ts/module-federation.config.ts__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/files/webpack-module-federation-ts/webpack.config.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-package-json-exports-for-remote.js +0 -0
- /package/{src → dist/src}/generators/remote/lib/setup-tspath-for-remote.js +0 -0
- /package/{src → dist/src}/generators/remote/lib/update-host-with-remote.js +0 -0
- /package/{src → dist/src}/generators/remote/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/remote/schema.json +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}/migrations/update-21-0-0/update-babel-loose.md +0 -0
- /package/{src → dist/src}/migrations/update-22-0-0/add-svgr-to-webpack-config.js +0 -0
- /package/{src → dist/src}/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.js +0 -0
- /package/{src → dist/src}/migrations/update-23-0-0/remove-nx-react-webpack-plugin-import.md +0 -0
- /package/{src → dist/src}/module-federation/ast-utils.js +0 -0
- /package/{src → dist/src}/plugins/router-plugin.js +0 -0
- /package/{src → dist/src}/rules/update-module-federation-project.js +0 -0
- /package/{src → dist/src}/utils/add-mf-env-to-inputs.js +0 -0
- /package/{src → dist/src}/utils/assertion.js +0 -0
- /package/{src → dist/src}/utils/ast-utils.js +0 -0
- /package/{src → dist/src}/utils/component-props.js +0 -0
- /package/{src → dist/src}/utils/create-ts-config.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/module-federation-deprecation.js +0 -0
- /package/{src → dist/src}/utils/normalize-remote.js +0 -0
- /package/{src → dist/src}/utils/testing-generators.js +0 -0
- /package/{tailwind.js → dist/tailwind.js} +0 -0
- /package/{webpack-plugin.js → dist/webpack-plugin.js} +0 -0
package/dist/babel.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,4 +16,3 @@ export { cypressComponentConfigGenerator } from './src/generators/cypress-compon
|
|
|
16
16
|
export { componentTestGenerator } from './src/generators/component-test/component-test';
|
|
17
17
|
export type { SupportedStyles } from './typings/style';
|
|
18
18
|
export * from './plugins/with-react';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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 {};
|
|
@@ -162,11 +162,8 @@ function buildTargetWebpack(ctx, buildTarget, componentTestingProjectName) {
|
|
|
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
164
|
const context = (0, internal_1.createExecutorContext)(graph, buildableProjectConfig.targets, parsed.project, parsed.target, parsed.target);
|
|
165
|
-
const {
|
|
166
|
-
const {
|
|
167
|
-
const { composePluginsSync } = require('@nx/webpack/src/utils/config');
|
|
168
|
-
const { withNx } = require('@nx/webpack/src/utils/with-nx');
|
|
169
|
-
const { withWeb } = require('@nx/webpack/src/utils/with-web');
|
|
165
|
+
const { resolveUserDefinedWebpackConfig } = require('@nx/webpack/internal');
|
|
166
|
+
const { normalizeOptions, composePluginsSync, withNx, withWeb, } = require('@nx/webpack');
|
|
170
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) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.webpack = exports.core = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const internal_1 = require("@nx/js/internal");
|
|
6
|
-
const
|
|
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
|
|
@@ -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))
|
|
@@ -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,14 +1,12 @@
|
|
|
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
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
6
|
const internal_2 = require("@nx/js/internal");
|
|
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"));
|
|
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");
|
|
@@ -17,7 +15,7 @@ async function* moduleFederationDevServer(schema, context) {
|
|
|
17
15
|
(0, module_federation_deprecation_1.warnReactMfDevServerExecutorDeprecation)();
|
|
18
16
|
const options = (0, lib_1.normalizeOptions)(schema);
|
|
19
17
|
const currIter = options.static
|
|
20
|
-
? (0,
|
|
18
|
+
? (0, internal_4.fileServerExecutor)({
|
|
21
19
|
...options,
|
|
22
20
|
parallel: false,
|
|
23
21
|
withDeps: false,
|
|
@@ -26,7 +24,7 @@ async function* moduleFederationDevServer(schema, context) {
|
|
|
26
24
|
cacheSeconds: -1,
|
|
27
25
|
}, context)
|
|
28
26
|
: // TODO(JamesHenry): remove type assertion once the nx repo is updated to use https://github.com/nrwl/nx/pull/33095
|
|
29
|
-
(0,
|
|
27
|
+
(0, webpack_1.devServerExecutor)(options, context);
|
|
30
28
|
const p = context.projectsConfigurations.projects[context.projectName];
|
|
31
29
|
let pathToManifestFile = (0, path_1.join)(context.root, (0, internal_2.getProjectSourceRoot)(p), 'assets/module-federation.manifest.json');
|
|
32
30
|
if (options.pathToManifestFile) {
|
|
@@ -42,7 +40,7 @@ async function* moduleFederationDevServer(schema, context) {
|
|
|
42
40
|
if (!options.isInitialHost) {
|
|
43
41
|
return yield* currIter;
|
|
44
42
|
}
|
|
45
|
-
const { staticRemotesIter, devRemoteIters, remotes } = await (0,
|
|
43
|
+
const { staticRemotesIter, devRemoteIters, remotes } = await (0, internal_3.startRemoteIterators)(options, context, lib_1.startRemotes, pathToManifestFile, 'react');
|
|
46
44
|
return yield* (0, internal_1.combineAsyncIterables)(currIter, ...devRemoteIters, ...(staticRemotesIter ? [staticRemotesIter] : []), (0, internal_1.createAsyncIterable)(async ({ next, done }) => {
|
|
47
45
|
if (!options.isInitialHost) {
|
|
48
46
|
done();
|
|
@@ -58,7 +56,7 @@ async function* moduleFederationDevServer(schema, context) {
|
|
|
58
56
|
const portsToWaitFor = staticRemotesIter && options.staticRemotesPort
|
|
59
57
|
? [options.staticRemotesPort, ...remotes.remotePorts]
|
|
60
58
|
: [...remotes.remotePorts];
|
|
61
|
-
await Promise.all(portsToWaitFor.map((port) => (0,
|
|
59
|
+
await Promise.all(portsToWaitFor.map((port) => (0, internal_4.waitForPortOpen)(port, {
|
|
62
60
|
retries: 480,
|
|
63
61
|
retryDelay: 2500,
|
|
64
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[];
|
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,13 +1,12 @@
|
|
|
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
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
6
|
const internal_2 = require("@nx/js/internal");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
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");
|
|
@@ -16,7 +15,7 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
|
16
15
|
(0, module_federation_deprecation_1.warnReactMfSsrDevServerExecutorDeprecation)();
|
|
17
16
|
const options = (0, lib_1.normalizeOptions)(ssrDevServerOptions);
|
|
18
17
|
// TODO(JamesHenry): remove type assertion once the nx repo is updated to use https://github.com/nrwl/nx/pull/33095
|
|
19
|
-
let iter = (0,
|
|
18
|
+
let iter = (0, internal_5.ssrDevServerExecutor)(options, context);
|
|
20
19
|
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
21
20
|
let pathToManifestFile = (0, path_1.join)(context.root, (0, internal_2.getProjectSourceRoot)(projectConfig), 'assets/module-federation.manifest.json');
|
|
22
21
|
if (options.pathToManifestFile) {
|
|
@@ -32,7 +31,7 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
|
32
31
|
if (!options.isInitialHost) {
|
|
33
32
|
return yield* iter;
|
|
34
33
|
}
|
|
35
|
-
const { staticRemotesIter, devRemoteIters, remotes } = await (0,
|
|
34
|
+
const { staticRemotesIter, devRemoteIters, remotes } = await (0, internal_3.startRemoteIterators)(options, context, lib_1.startRemotes, pathToManifestFile, 'react', true);
|
|
36
35
|
const combined = (0, internal_1.combineAsyncIterables)(staticRemotesIter, ...devRemoteIters);
|
|
37
36
|
let refs = 1 + (devRemoteIters?.length ?? 0);
|
|
38
37
|
for await (const result of combined) {
|
|
@@ -60,7 +59,7 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
|
60
59
|
const portsToWaitFor = staticRemotesIter && options.staticRemotesPort
|
|
61
60
|
? [options.staticRemotesPort, ...remotes.remotePorts]
|
|
62
61
|
: [...remotes.remotePorts];
|
|
63
|
-
await Promise.all(portsToWaitFor.map((port) => (0,
|
|
62
|
+
await Promise.all(portsToWaitFor.map((port) => (0, internal_4.waitForPortOpen)(port, {
|
|
64
63
|
retries: 480,
|
|
65
64
|
retryDelay: 2500,
|
|
66
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?: (
|
|
@@ -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
|
|
@@ -2,14 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.startProxies = startProxies;
|
|
4
4
|
exports.default = moduleFederationStaticServer;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
6
|
const devkit_1 = require("@nx/devkit");
|
|
8
7
|
const internal_2 = require("@nx/js/internal");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const file_server_impl_1 = tslib_1.__importDefault(require("@nx/web/src/executors/file-server/file-server.impl"));
|
|
12
|
-
const wait_for_port_open_1 = require("@nx/web/src/utils/wait-for-port-open");
|
|
8
|
+
const internal_3 = require("@nx/module-federation/internal");
|
|
9
|
+
const internal_4 = require("@nx/web/internal");
|
|
13
10
|
const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
|
|
14
11
|
const child_process_1 = require("child_process");
|
|
15
12
|
const fs_1 = require("fs");
|
|
@@ -166,15 +163,15 @@ async function* moduleFederationStaticServer(schema, context) {
|
|
|
166
163
|
// Get the remotes from the module federation config
|
|
167
164
|
const p = context.projectsConfigurations.projects[context.projectName];
|
|
168
165
|
const options = getBuildAndServeOptionsFromServeTarget(schema.serveTarget, context);
|
|
169
|
-
const moduleFederationConfig = (0,
|
|
170
|
-
const remotes = (0,
|
|
166
|
+
const moduleFederationConfig = (0, internal_3.getModuleFederationConfig)(options.buildOptions.tsConfig, context.root, p.root, 'react');
|
|
167
|
+
const remotes = (0, internal_3.getRemotes)([], options.serveOptions.skipRemotes, moduleFederationConfig, {
|
|
171
168
|
projectName: context.projectName,
|
|
172
169
|
projectGraph: context.projectGraph,
|
|
173
170
|
root: context.root,
|
|
174
171
|
}, options.pathToManifestFile);
|
|
175
|
-
const staticRemotesConfig = (0,
|
|
172
|
+
const staticRemotesConfig = (0, internal_3.parseStaticRemotesConfig)([...remotes.staticRemotes, ...remotes.dynamicRemotes], context);
|
|
176
173
|
options.serveOptions.staticRemotesPort ??= remotes.staticRemotePort;
|
|
177
|
-
const mappedLocationsOfStaticRemotes = await (0,
|
|
174
|
+
const mappedLocationsOfStaticRemotes = await (0, internal_3.buildStaticRemotes)(staticRemotesConfig, nxBin, context, options.serveOptions);
|
|
178
175
|
// Build the host
|
|
179
176
|
const hostUrlSegment = (0, path_1.basename)(options.buildOptions.outputPath);
|
|
180
177
|
const mappedLocationOfHost = `http${options.serveOptions.ssl ? 's' : ''}://${options.serveOptions.host}:${options.serveOptions.staticRemotesPort}/${hostUrlSegment}`;
|
|
@@ -182,7 +179,7 @@ async function* moduleFederationStaticServer(schema, context) {
|
|
|
182
179
|
// Move to a temporary directory
|
|
183
180
|
const commonOutputDirectory = moveToTmpDirectory(staticRemotesConfig, options.buildOptions.outputPath, hostUrlSegment);
|
|
184
181
|
// File Serve the temporary directory
|
|
185
|
-
const staticFileServerIter = (0,
|
|
182
|
+
const staticFileServerIter = (0, internal_4.fileServerExecutor)({
|
|
186
183
|
cors: true,
|
|
187
184
|
watch: false,
|
|
188
185
|
staticFilePath: commonOutputDirectory,
|
|
@@ -208,7 +205,7 @@ async function* moduleFederationStaticServer(schema, context) {
|
|
|
208
205
|
const baseUrl = `http${options.serveOptions.ssl ? 's' : ''}://${host}:${options.serveOptions.port}`;
|
|
209
206
|
if (remotes.remotePorts.length === 0) {
|
|
210
207
|
const portsToWaitFor = [options.serveOptions.staticRemotesPort];
|
|
211
|
-
await Promise.all(portsToWaitFor.map((port) => (0,
|
|
208
|
+
await Promise.all(portsToWaitFor.map((port) => (0, internal_4.waitForPortOpen)(port, {
|
|
212
209
|
retries: 480,
|
|
213
210
|
retryDelay: 2500,
|
|
214
211
|
host: host,
|
|
@@ -222,7 +219,7 @@ async function* moduleFederationStaticServer(schema, context) {
|
|
|
222
219
|
const portsToWaitFor = staticFileServerIter && options.serveOptions.staticRemotesPort
|
|
223
220
|
? [options.serveOptions.staticRemotesPort, ...remotes.remotePorts]
|
|
224
221
|
: [...remotes.remotePorts];
|
|
225
|
-
await Promise.all(portsToWaitFor.map((port) => (0,
|
|
222
|
+
await Promise.all(portsToWaitFor.map((port) => (0, internal_4.waitForPortOpen)(port, {
|
|
226
223
|
retries: 480,
|
|
227
224
|
retryDelay: 2500,
|
|
228
225
|
host: host,
|
|
@@ -9,4 +9,3 @@ export declare const moduleFederationRsbuildPluginVersion = "^2.5.0";
|
|
|
9
9
|
export declare const rspackCoreVersion = "^2.0.3";
|
|
10
10
|
export declare const rspackCliVersion = "^2.0.3";
|
|
11
11
|
export declare const rspackDevServerVersion = "2.0.1";
|
|
12
|
-
//# sourceMappingURL=mf-versions.d.ts.map
|
|
@@ -17,4 +17,3 @@ export interface RawScaffoldOptions {
|
|
|
17
17
|
export declare function getDefaultPort(bundler: SupportedBundler, surface: SupportedSurface): number;
|
|
18
18
|
export declare function toFederationName(projectName: string): string;
|
|
19
19
|
export declare function normalizeScaffoldOptions(tree: Tree, raw: RawScaffoldOptions): Promise<NormalizedScaffoldOptions>;
|
|
20
|
-
//# sourceMappingURL=normalize.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { Schema } from './schema';
|
|
|
3
3
|
export declare function applicationGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function applicationGeneratorInternal(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
5
5
|
export default applicationGenerator;
|
|
6
|
-
//# sourceMappingURL=application.d.ts.map
|
|
@@ -4,6 +4,7 @@ exports.applicationGenerator = applicationGenerator;
|
|
|
4
4
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
|
+
const assert_supported_react_version_1 = require("../../utils/assert-supported-react-version");
|
|
7
8
|
const devkit_1 = require("@nx/devkit");
|
|
8
9
|
const internal_2 = require("@nx/devkit/internal");
|
|
9
10
|
const js_1 = require("@nx/js");
|
|
@@ -32,6 +33,7 @@ async function applicationGenerator(tree, schema) {
|
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
async function applicationGeneratorInternal(tree, schema) {
|
|
36
|
+
(0, assert_supported_react_version_1.assertSupportedReactVersion)(tree);
|
|
35
37
|
const tasks = [];
|
|
36
38
|
const addTsPlugin = (0, internal_3.shouldConfigureTsSolutionSetup)(tree, schema.addPlugin, schema.useTsSolution);
|
|
37
39
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
|
@@ -1,37 +1,4 @@
|
|
|
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.addE2e = addE2e;
|
|
37
4
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -74,7 +41,7 @@ async function addE2e(tree, options) {
|
|
|
74
41
|
}
|
|
75
42
|
else if (options.bundler === 'rsbuild') {
|
|
76
43
|
(0, devkit_1.ensurePackage)('@nx/rsbuild', versions_1.nxVersion);
|
|
77
|
-
const { getRsbuildE2EWebServerInfo } =
|
|
44
|
+
const { getRsbuildE2EWebServerInfo, } = require('@nx/rsbuild/config-utils');
|
|
78
45
|
e2eWebServerInfo = await getRsbuildE2EWebServerInfo(tree, options.projectName, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `rsbuild.config.${options.js ? 'js' : 'ts'}`), options.addPlugin, options.devServerPort ?? 4200);
|
|
79
46
|
}
|
|
80
47
|
if (!hasNxBuildPlugin) {
|
|
@@ -2,4 +2,3 @@ import { type Tree, type GeneratorCallback } from '@nx/devkit';
|
|
|
2
2
|
import { NormalizedSchema } from '../schema';
|
|
3
3
|
export declare function addLinting(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function isEslintInstalled(tree: Tree): boolean;
|
|
5
|
-
//# sourceMappingURL=add-linting.d.ts.map
|