UNPKG

@nestjs/schematics

Version:

Nest - modern, fast, powerful node.js web framework (@schematics)

51 lines (50 loc) 1.27 kB
{ "$schema": "http://json-schema.org/schema", "$id": "SchematicsNestClass", "title": "Nest Class Options Schema", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the class.", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use for the class?" }, "flat": { "type": "boolean", "default": true, "description": "Flag to indicate if a directory is created." }, "spec": { "type": "boolean", "default": true, "description": "Specifies if a spec file is generated." }, "specFileSuffix": { "type": "string", "default": "spec", "description": "Specifies the file suffix of spec files." }, "path": { "type": "string", "format": "path", "description": "The path to create the class." }, "language": { "type": "string", "description": "Nest class language (ts/js)." }, "sourceRoot": { "type": "string", "description": "Nest controller source root directory." }, "className": { "type": "string", "description": "Class name to be used internally." } }, "required": ["name"] }