nx/docs/generated/packages/react-native/generators/web-configuration.json

51 lines
1.8 KiB
JSON

{
"name": "web-configuration",
"factory": "./src/generators/web-configuration/web-configuration#webConfigurationGenerator",
"schema": {
"$schema": "http://json-schema.org/schema",
"$id": "NxReactNativeWebConfiguration",
"description": "Setup web configuration to React Native apps using react-native-web.",
"title": "Nx React Native Web configuration",
"type": "object",
"properties": {
"project": {
"type": "string",
"aliases": ["name", "projectName"],
"description": "Project for which to generate web configuration.",
"$default": { "$source": "argv", "index": 0 },
"x-prompt": "For which project do you want to generate web configuration?",
"x-dropdown": "projects",
"x-priority": "important"
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false,
"x-priority": "internal"
},
"skipPackageJson": {
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false,
"x-priority": "internal"
},
"bundler": {
"description": "The bundler to use.",
"type": "string",
"enum": ["vite", "webpack"],
"x-prompt": "Which bundler do you want to use to build the application?",
"default": "webpack",
"x-priority": "important"
}
},
"required": ["project", "bundler"],
"presets": []
},
"description": "Set up web configuration for a React Native app",
"implementation": "/packages/react-native/src/generators/web-configuration/web-configuration#webConfigurationGenerator.ts",
"aliases": [],
"hidden": false,
"path": "/packages/react-native/src/generators/web-configuration/schema.json",
"type": "generator"
}