Skip to content

Commit

Permalink
feat(@schematics/angular): add several prompts to ng-new
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and alexeagle committed Sep 6, 2018
1 parent a94c826 commit ee7603f
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions packages/schematics/angular/ng-new/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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.",
Expand Down

0 comments on commit ee7603f

Please sign in to comment.