Skip to content

Commit 819913b

Browse files
committed
fix(@schematics/angular): ng-new should't prompt for --routing and --style
refs angular#13383
1 parent f372775 commit 819913b

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

packages/schematics/angular/ng-new/schema.json

+5-21
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,6 @@
9999
"$source": "ng-cli-version"
100100
}
101101
},
102-
"routing": {
103-
"type": "boolean",
104-
"description": "When true, generates a routing module for the initial project.",
105-
"default": false,
106-
"x-prompt": "Would you like to add Angular routing?",
107-
"x-user-analytics": 17
108-
},
109102
"prefix": {
110103
"type": "string",
111104
"format": "html-selector",
@@ -117,26 +110,17 @@
117110
"style": {
118111
"description": "The file extension or preprocessor to use for style files.",
119112
"type": "string",
120-
"default": "css",
121113
"enum": [
122114
"css",
123115
"scss",
124116
"sass",
125117
"less",
126118
"styl"
127-
],
128-
"x-prompt": {
129-
"message": "Which stylesheet format would you like to use?",
130-
"type": "list",
131-
"items": [
132-
{ "value": "css", "label": "CSS" },
133-
{ "value": "scss", "label": "SCSS [ http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax ]" },
134-
{ "value": "sass", "label": "Sass [ http://sass-lang.com/documentation/file.INDENTED_SYNTAX.html ]" },
135-
{ "value": "less", "label": "Less [ http://lesscss.org ]" },
136-
{ "value": "styl", "label": "Stylus [ http://stylus-lang.com ] " }
137-
]
138-
},
139-
"x-user-analytics": 5
119+
]
120+
},
121+
"routing": {
122+
"type": "boolean",
123+
"description": "When true, creates a routing NgModule."
140124
},
141125
"skipTests": {
142126
"description": "When true, does not generate \"spec.ts\" test files for the new project. ",

0 commit comments

Comments
 (0)