Colum Ferry 34cf5a243f
fix(rspack): ensure nest applications generated correctly #31204 (#31424)
- fix(rspack): choosing nest as framework should not result in error
#31204
- fix(rspack): add deprecation message for application generator
- fix(rspack): ensure application generated projects are added to
excludes

## Current Behavior
Running the `@nx/rspack:application` generator with `--framework=nest`
results in an error due to mix of inferred and executor usage throughout
the generation process.

## Expected Behavior
Running the generator should pass without failure and create a working
project.
Deprecate the generator in favour of using project specific packages
(@nx/react etc)

## Related Issue(s)

Fixes #31204

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Coly010 <Coly010@users.noreply.github.com>
2025-06-03 13:41:17 +00:00

100 lines
3.4 KiB
JSON

{
"name": "application",
"factory": "./src/generators/application/application",
"schema": {
"$schema": "http://json-schema.org/schema",
"$id": "Application",
"title": "Application generator for React + rspack",
"type": "object",
"description": "React + Rspack application generator.",
"x-deprecated": "This generator will be removed in Nx 22. Please use the equivalent generator for your application type instead.",
"examples": [
{
"command": "nx g app myorg/myapp",
"description": "Generate `apps/myorg/myapp` and `apps/myorg/myapp-e2e`"
}
],
"properties": {
"directory": {
"type": "string",
"description": "The directory to nest the app under.",
"$default": { "$source": "argv", "index": 0 },
"x-prompt": "What directory would you like to use for the application?"
},
"name": {
"description": "The name of the application.",
"type": "string",
"pattern": "^[a-zA-Z].*$"
},
"framework": {
"type": "string",
"description": "The framework to use for the application.",
"x-prompt": "What framework do you want to use when generating this application?",
"enum": ["none", "react", "web", "nest"],
"alias": ["uiFramework"],
"x-priority": "important",
"default": "react"
},
"style": {
"description": "The file extension to be used for style files.",
"type": "string",
"default": "css",
"alias": "s",
"x-prompt": {
"message": "Which stylesheet format would you like to use?",
"type": "list",
"items": [
{ "value": "css", "label": "CSS" },
{
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
},
{ "value": "none", "label": "None" }
]
}
},
"unitTestRunner": {
"type": "string",
"description": "The unit test runner to use.",
"enum": ["none", "jest"],
"default": "jest"
},
"e2eTestRunner": {
"type": "string",
"description": "The e2e test runner to use.",
"enum": ["none", "cypress"],
"default": "cypress"
},
"tags": {
"type": "string",
"description": "Add tags to the application (used for linting).",
"alias": "t"
},
"monorepo": {
"type": "boolean",
"description": "Creates an integrated monorepo.",
"aliases": ["integrated"]
},
"rootProject": { "type": "boolean", "x-priority": "internal" }
},
"required": ["directory"],
"presets": []
},
"aliases": ["app"],
"x-type": "application",
"description": "React application generator.",
"x-deprecated": "This generator will be removed in Nx 22. Please use the equivalent generator for your application type instead.",
"implementation": "/packages/rspack/src/generators/application/application.ts",
"hidden": false,
"path": "/packages/rspack/src/generators/application/schema.json",
"type": "generator"
}