Colum Ferry ee91b63b42
feat(rsbuild): add inferred targets plugin (#29192)
## Current Behavior
There is currently no way to execute Rsbuild targets via Nx.

## Expected Behavior
Add a `@nx/rsbuild/plugin` to infer targets based on the
`rsbuild.config` files in the workspace.
Also add an `init` generator to allow for `nx init` in existing rsbuild
projects.
2024-12-10 12:36:15 -05:00

45 lines
1.3 KiB
JSON

{
"name": "init",
"factory": "./src/generators/init/init#initGeneratorInternal",
"schema": {
"$schema": "http://json-schema.org/schema",
"$id": "Init",
"title": "Nx Rsbuild Init Generator",
"type": "object",
"description": "Rsbuild init generator.",
"properties": {
"rootProject": { "type": "boolean", "x-priority": "internal" },
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
},
"updatePackageScripts": {
"type": "boolean",
"x-priority": "internal",
"description": "Update package scripts",
"default": false
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false
},
"skipPackageJson": {
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
}
},
"required": [],
"presets": []
},
"description": "Initialize the `@nx/rsbuild` plugin.",
"aliases": ["ng-add"],
"hidden": true,
"implementation": "/packages/rsbuild/src/generators/init/init#initGeneratorInternal.ts",
"path": "/packages/rsbuild/src/generators/init/schema.json",
"type": "generator"
}