Skip to content
Permalink
Browse files

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

  • Loading branch information...
clydin authored and alexeagle committed Aug 9, 2018
1 parent a94c826 commit ee7603f597dda3e9d856b7eb238731a35bf0fa35
Showing with 17 additions and 3 deletions.
  1. +17 −3 packages/schematics/angular/ng-new/schema.json
@@ -15,7 +15,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the project?"
},
"experimentalIvy": {
"description": "EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering engine.",
@@ -98,19 +99,32 @@
"routing": {
"type": "boolean",
"description": "Generates a routing module.",
"default": false
"default": false,
"x-prompt": "Would you like to generate a routing module?"
},
"prefix": {
"type": "string",
"format": "html-selector",
"description": "The prefix to apply to generated selectors.",
"minLength": 1,
"default": "app",
"alias": "p"
},
"style": {
"description": "The file extension to be used for style files.",
"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": {
"description": "Skip creating spec files.",

0 comments on commit ee7603f

Please sign in to comment.
You can’t perform that action at this time.