nx/packages/rspack/generators.json
Colum Ferry 5cc88b87a2
feat(rspack): add convert-to-inferred generator (#29012)
- feat(module-federation): migrate to latest
- feat(rspack): add convert to legacy plugin
- feat(rspack): add convert-to-inferred generator

<!-- 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 -->
Our current rspack configs rely on executor usage.
But there is no automated method to convert the config to use inferred
targets

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Add convert-to-inferred generator

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-11-21 09:19:08 -05:00

47 lines
1.8 KiB
JSON

{
"$schema": "http://json-schema.org/schema",
"name": "rspack",
"version": "0.0.1",
"generators": {
"configuration": {
"factory": "./src/generators/configuration/configuration",
"schema": "./src/generators/configuration/schema.json",
"description": "Rspack configuration generator."
},
"init": {
"factory": "./src/generators/init/init",
"schema": "./src/generators/init/schema.json",
"description": "Rspack init generator.",
"hidden": true
},
"preset": {
"factory": "./src/generators/preset/preset",
"schema": "./src/generators/preset/schema.json",
"description": "React preset generator.",
"hidden": true
},
"application": {
"factory": "./src/generators/application/application",
"schema": "./src/generators/application/schema.json",
"aliases": ["app"],
"x-type": "application",
"description": "React application generator."
},
"convert-webpack": {
"factory": "./src/generators/convert-webpack/convert-webpack",
"schema": "./src/generators/convert-webpack/schema.json",
"description": "Convert a webpack application to use rspack."
},
"convert-config-to-rspack-plugin": {
"factory": "./src/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin",
"schema": "./src/generators/convert-config-to-rspack-plugin/schema.json",
"description": "Convert the project to use the `NxAppRspackPlugin` and `NxReactRspackPlugin`."
},
"convert-to-inferred": {
"factory": "./src/generators/convert-to-inferred/convert-to-inferred#convertToInferred",
"schema": "./src/generators/convert-to-inferred/schema.json",
"description": "Convert existing Rspack project(s) using `@nx/rspack:rspack` executor to use `@nx/rspack/plugin`."
}
}
}