{ "name": "component", "factory": "./src/generators/component/component", "schema": { "cli": "nx", "$id": "NxExpoComponent", "$schema": "https://json-schema.org/schema", "description": "Create a Expo Component for Nx.", "type": "object", "examples": [ { "command": "g @nx/expo:component mylib/my-component --name my-component", "description": "Generate a component in the mylib library" }, { "command": "g @nx/expo:component mylib/my-component --name my-component --classComponent", "description": "Generate a class component in the mylib library" } ], "properties": { "path": { "type": "string", "description": "Path where the component will be generated.", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "Where should the component be generated?", "x-priority": "important" }, "name": { "type": "string", "description": "The name of the component.", "x-prompt": "What name would you like to use for the component?" }, "js": { "type": "boolean", "description": "Generate JavaScript files rather than TypeScript files.", "default": false }, "skipFormat": { "description": "Skip formatting files.", "type": "boolean", "default": false, "x-priority": "internal" }, "skipTests": { "type": "boolean", "description": "When true, does not create \"spec.ts\" test files for the new component.", "default": false }, "export": { "type": "boolean", "description": "When true, the component is exported from the project index.ts (if it exists).", "alias": "e", "default": false, "x-prompt": "Should this component be exported in the project?" }, "classComponent": { "type": "boolean", "alias": "C", "description": "Use class components instead of functional component.", "default": false } }, "required": ["path"], "presets": [] }, "description": "Create a component", "aliases": ["c"], "implementation": "/packages/expo/src/generators/component/component.ts", "hidden": false, "path": "/packages/expo/src/generators/component/schema.json", "type": "generator" }