nest-commander-schematics
Version:
A set of schematics for generating questions and commands with the NestJS CLI.
42 lines (41 loc) • 1.11 kB
JSON
{
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Command name",
"x-prompt": "What is the command name?"
},
"path": {
"type": "string",
"format": "path",
"description": "The path to create the service."
},
"sourceRoot": {
"type": "string",
"description": "Nest service source root directory."
},
"flat": {
"type": "boolean",
"default": false,
"description": "Flag to indicate if a directory is created.",
"x-prompt": "Create a directory?"
},
"spec": {
"type": "boolean",
"default": true,
"description": "Specifies if a spec file is generated.",
"x-prompt": "Generate spec file as well?"
},
"default": {
"type": "boolean",
"default": false,
"description": "Specifies if the command is the default command for the CLI.",
"x-prompt": "Is this the default command?"
},
"question": {
"type": "string",
"x-prompt": "What is the name of the related question set? (Leave blank for none)"
}
}
}