- feat(react): add remote rspack module federation support - feat(react): add host rspack module federation support - feat(react): add federate module rspack module federation support - fix(react): migration test <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> We do not have an option to generate a react host and remote with rspack ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Add rspack as an option when generating host and remote ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
61 lines
2.0 KiB
JSON
61 lines
2.0 KiB
JSON
{
|
|
"name": "setup-ssr",
|
|
"factory": "./src/generators/setup-ssr/setup-ssr#setupSsrGenerator",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"$id": "GeneratorReactSSRSetup",
|
|
"cli": "nx",
|
|
"title": "Generate SSR setup for a React app",
|
|
"description": "Create the additional configuration required to enable SSR via Express for a React application.",
|
|
"type": "object",
|
|
"properties": {
|
|
"project": {
|
|
"type": "string",
|
|
"description": "The name of the application to add SSR support to.",
|
|
"$default": { "$source": "argv", "index": 0 },
|
|
"x-prompt": "What app would you like to add SSR support to?",
|
|
"x-dropdown": "projects",
|
|
"x-priority": "important"
|
|
},
|
|
"appComponentImportPath": {
|
|
"type": "string",
|
|
"description": "The import path of the <App/ > component, relative to project sourceRoot.",
|
|
"default": "app/app"
|
|
},
|
|
"serverPort": {
|
|
"type": "number",
|
|
"default": 4200,
|
|
"description": "The port for the Express server.",
|
|
"x-priority": "important"
|
|
},
|
|
"skipFormat": {
|
|
"type": "boolean",
|
|
"description": "Skip formatting the workspace after the generator completes.",
|
|
"x-priority": "internal"
|
|
},
|
|
"extraInclude": {
|
|
"type": "array",
|
|
"items": { "type": "string" },
|
|
"hidden": true,
|
|
"description": "Extra include entries in tsconfig.",
|
|
"default": []
|
|
},
|
|
"bundler": {
|
|
"description": "The bundler to use.",
|
|
"type": "string",
|
|
"enum": ["rspack", "webpack"],
|
|
"default": "webpack"
|
|
}
|
|
},
|
|
"required": ["project"],
|
|
"additionalProperties": false,
|
|
"presets": []
|
|
},
|
|
"description": "Set up SSR configuration for a project.",
|
|
"hidden": false,
|
|
"implementation": "/packages/react/src/generators/setup-ssr/setup-ssr#setupSsrGenerator.ts",
|
|
"aliases": [],
|
|
"path": "/packages/react/src/generators/setup-ssr/schema.json",
|
|
"type": "generator"
|
|
}
|