Skip to content

Commit 3e4e1d3

Browse files
committed
fix(@schematics/angular): the ng-new schematic should not prompt for routing
refs angular#13383
1 parent bf47da3 commit 3e4e1d3

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

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

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@
5858
"type": "string"
5959
}
6060
},
61-
"required": [
62-
"name",
63-
"email"
64-
]
61+
"required": ["name", "email"]
6562
}
6663
],
6764
"default": true
@@ -102,8 +99,6 @@
10299
"routing": {
103100
"type": "boolean",
104101
"description": "When true, generates a routing module for the initial project.",
105-
"default": false,
106-
"x-prompt": "Would you like to add Angular routing?",
107102
"x-user-analytics": 17
108103
},
109104
"prefix": {
@@ -118,22 +113,28 @@
118113
"description": "The file extension or preprocessor to use for style files.",
119114
"type": "string",
120115
"default": "css",
121-
"enum": [
122-
"css",
123-
"scss",
124-
"sass",
125-
"less",
126-
"styl"
127-
],
116+
"enum": ["css", "scss", "sass", "less", "styl"],
128117
"x-prompt": {
129118
"message": "Which stylesheet format would you like to use?",
130119
"type": "list",
131120
"items": [
132-
{ "value": "css", "label": "CSS" },
133-
{ "value": "scss", "label": "SCSS [ https://sass-lang.com/documentation/syntax#scss ]" },
134-
{ "value": "sass", "label": "Sass [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]" },
135-
{ "value": "less", "label": "Less [ http://lesscss.org ]" },
136-
{ "value": "styl", "label": "Stylus [ http://stylus-lang.com ]" }
121+
{ "value": "css", "label": "CSS" },
122+
{
123+
"value": "scss",
124+
"label": "SCSS [ https://sass-lang.com/documentation/syntax#scss ]"
125+
},
126+
{
127+
"value": "sass",
128+
"label": "Sass [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]"
129+
},
130+
{
131+
"value": "less",
132+
"label": "Less [ http://lesscss.org ]"
133+
},
134+
{
135+
"value": "styl",
136+
"label": "Stylus [ http://stylus-lang.com ]"
137+
}
137138
]
138139
},
139140
"x-user-analytics": 5
@@ -157,8 +158,5 @@
157158
"x-user-analytics": 14
158159
}
159160
},
160-
"required": [
161-
"name",
162-
"version"
163-
]
161+
"required": ["name", "version"]
164162
}

0 commit comments

Comments
 (0)