## Current Behavior Nx currently does not offer an automated method for switching from an Angular Webpack build to an Angular Rspack build. ## Expected Behavior Provide a generator `convert-to-rspack` in `@nx/angular` that will allow conversion from an Angular Webpack build to an Angular Rspack build. Usage: `nx g convert-to-rspack --project=myapp` ## TODO - [x] handle more builder options - [x] take existing custom webpack configs and migrate into the rspack config that is created
39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
"name": "convert-to-rspack",
|
|
"factory": "./src/generators/convert-to-rspack/convert-to-rspack",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"$id": "GeneratorNxApp",
|
|
"title": "Creates an Angular application.",
|
|
"description": "Creates an Angular application.",
|
|
"type": "object",
|
|
"cli": "nx",
|
|
"properties": {
|
|
"project": {
|
|
"type": "string",
|
|
"aliases": ["name", "projectName"],
|
|
"description": "Project for which to convert to rspack.",
|
|
"$default": { "$source": "argv", "index": 0 },
|
|
"x-priority": "important"
|
|
},
|
|
"skipFormat": {
|
|
"description": "Skip formatting files.",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"skipInstall": {
|
|
"description": "Skip installing dependencies.",
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
"presets": []
|
|
},
|
|
"description": "Converts Angular Webpack projects to use Rspack.",
|
|
"implementation": "/packages/angular/src/generators/convert-to-rspack/convert-to-rspack.ts",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/angular/src/generators/convert-to-rspack/schema.json",
|
|
"type": "generator"
|
|
}
|