nx/docs/generated/packages/rspack/generators/configuration.json
2024-09-18 10:27:05 +01:00

79 lines
2.8 KiB
JSON

{
"name": "configuration",
"factory": "./src/generators/configuration/configuration",
"schema": {
"$schema": "http://json-schema.org/schema",
"$id": "Rspack",
"title": "Nx Rspack Configuration Generator",
"description": "Rspack configuration generator.",
"type": "object",
"properties": {
"project": {
"type": "string",
"description": "The name of the project.",
"$default": { "$source": "argv", "index": 0 },
"x-dropdown": "project",
"x-prompt": "What is the name of the project to set up a rspack for?",
"x-priority": "important"
},
"framework": {
"type": "string",
"description": "The framework used by the project.",
"x-prompt": "What framework is the project you want to convert using?",
"enum": ["none", "react", "web", "nest"],
"alias": ["uiFramework"],
"x-priority": "important"
},
"main": {
"type": "string",
"description": "Path relative to the workspace root for the main entry file. Defaults to '<projectRoot>/src/main.ts'.",
"x-priority": "important"
},
"tsConfig": {
"type": "string",
"description": "Path relative to the workspace root for the tsconfig file to build with. Defaults to '<projectRoot>/tsconfig.app.json'.",
"x-priority": "important"
},
"target": {
"type": "string",
"description": "Target platform for the build, same as the rspack config option.",
"enum": ["node", "web"],
"default": "web"
},
"devServer": {
"type": "boolean",
"description": "Add a serve target to run a local rspack dev-server",
"default": false
},
"style": {
"type": "string",
"description": "The style solution to use.",
"enum": ["none", "css", "scss", "less"]
},
"newProject": {
"type": "boolean",
"description": "Is this a new project?",
"default": false,
"hidden": true
},
"buildTarget": {
"type": "string",
"description": "The build target of the project to be transformed to use the @nx/vite:build executor."
},
"serveTarget": {
"type": "string",
"description": "The serve target of the project to be transformed to use the @nx/vite:dev-server and @nx/vite:preview-server executors."
},
"rootProject": { "type": "boolean", "x-priority": "internal" }
},
"required": ["project"],
"presets": []
},
"description": "Rspack configuration generator.",
"implementation": "/packages/rspack/src/generators/configuration/configuration.ts",
"aliases": [],
"hidden": false,
"path": "/packages/rspack/src/generators/configuration/schema.json",
"type": "generator"
}