feat(@schematics/angular): add several prompts to ng-new

This commit is contained in:
Charles Lyding 2018-08-09 14:19:59 -04:00 committed by Alex Eagle
parent a94c826661
commit ee7603f597

View File

@ -15,7 +15,8 @@
"$default": { "$default": {
"$source": "argv", "$source": "argv",
"index": 0 "index": 0
} },
"x-prompt": "What name would you like to use for the project?"
}, },
"experimentalIvy": { "experimentalIvy": {
"description": "EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering engine.", "description": "EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering engine.",
@ -98,19 +99,32 @@
"routing": { "routing": {
"type": "boolean", "type": "boolean",
"description": "Generates a routing module.", "description": "Generates a routing module.",
"default": false "default": false,
"x-prompt": "Would you like to generate a routing module?"
}, },
"prefix": { "prefix": {
"type": "string", "type": "string",
"format": "html-selector", "format": "html-selector",
"description": "The prefix to apply to generated selectors.", "description": "The prefix to apply to generated selectors.",
"minLength": 1,
"default": "app", "default": "app",
"alias": "p" "alias": "p"
}, },
"style": { "style": {
"description": "The file extension to be used for style files.", "description": "The file extension to be used for style files.",
"type": "string", "type": "string",
"default": "css" "default": "css",
"x-prompt": {
"message": "Which stylesheet format would you like to use?",
"type": "list",
"items": [
{ "value": "css", "label": "CSS" },
{ "value": "scss", "label": "SCSS [ http://sass-lang.com ]" },
{ "value": "sass", "label": "SASS [ http://sass-lang.com ]" },
{ "value": "less", "label": "LESS [ http://lesscss.org ]" },
{ "value": "styl", "label": "Stylus [ http://stylus-lang.com ]" }
]
}
}, },
"skipTests": { "skipTests": {
"description": "Skip creating spec files.", "description": "Skip creating spec files.",