generate_ntv_component_file
Generate complete TypeScript component files for Angular applications using NTV components, including optional CSS styles and test templates.
Instructions
Generates a complete TypeScript component file that uses an NTV component
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | Yes | Component name (e.g., 'Button', 'Input') | |
| filename | No | Output filename without extension (e.g., 'my-button'). Default: component name in kebab-case | |
| selector | No | Angular component selector (e.g., 'app-my-button') | |
| includeStyles | No | Include CSS file template. Default: true | |
| includeTests | No | Include Jest/Jasmine test template. Default: true |
Input Schema (JSON Schema)
{
"properties": {
"component": {
"description": "Component name (e.g., 'Button', 'Input')",
"type": "string"
},
"filename": {
"description": "Output filename without extension (e.g., 'my-button'). Default: component name in kebab-case",
"type": "string"
},
"includeStyles": {
"description": "Include CSS file template. Default: true",
"type": "boolean"
},
"includeTests": {
"description": "Include Jest/Jasmine test template. Default: true",
"type": "boolean"
},
"selector": {
"description": "Angular component selector (e.g., 'app-my-button')",
"type": "string"
}
},
"required": [
"component"
],
"type": "object"
}