File tree 1 file changed +17
-3
lines changed
packages/schematics/angular/ng-new
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 15
15
"$default" : {
16
16
"$source" : " argv" ,
17
17
"index" : 0
18
- }
18
+ },
19
+ "x-prompt" : " What name would you like to use for the project?"
19
20
},
20
21
"experimentalIvy" : {
21
22
"description" : " EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering engine." ,
98
99
"routing" : {
99
100
"type" : " boolean" ,
100
101
"description" : " Generates a routing module." ,
101
- "default" : false
102
+ "default" : false ,
103
+ "x-prompt" : " Would you like to generate a routing module?"
102
104
},
103
105
"prefix" : {
104
106
"type" : " string" ,
105
107
"format" : " html-selector" ,
106
108
"description" : " The prefix to apply to generated selectors." ,
109
+ "minLength" : 1 ,
107
110
"default" : " app" ,
108
111
"alias" : " p"
109
112
},
110
113
"style" : {
111
114
"description" : " The file extension to be used for style files." ,
112
115
"type" : " string" ,
113
- "default" : " css"
116
+ "default" : " css" ,
117
+ "x-prompt" : {
118
+ "message" : " Which stylesheet format would you like to use?" ,
119
+ "type" : " list" ,
120
+ "items" : [
121
+ { "value" : " css" , "label" : " CSS" },
122
+ { "value" : " scss" , "label" : " SCSS [ http://sass-lang.com ]" },
123
+ { "value" : " sass" , "label" : " SASS [ http://sass-lang.com ]" },
124
+ { "value" : " less" , "label" : " LESS [ http://lesscss.org ]" },
125
+ { "value" : " styl" , "label" : " Stylus [ http://stylus-lang.com ]" }
126
+ ]
127
+ }
114
128
},
115
129
"skipTests" : {
116
130
"description" : " Skip creating spec files." ,
You can’t perform that action at this time.
0 commit comments