Skip to content

Commit 9b717f1

Browse files
committed
fix(@schematics/angular): application schematic should prompt for --routing and --style
This is the first step towards solving issue related to angular#13383 closes angular#14705
1 parent 50b290e commit 9b717f1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

packages/schematics/angular/application/schema.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
"routing": {
4949
"type": "boolean",
5050
"description": "When true, creates a routing NgModule.",
51-
"default": false
51+
"default": false,
52+
"x-prompt": "Would you like to add Angular routing?",
53+
"x-user-analytics": 17
5254
},
5355
"prefix": {
5456
"type": "string",
@@ -68,6 +70,17 @@
6870
"less",
6971
"styl"
7072
],
73+
"x-prompt": {
74+
"message": "Which stylesheet format would you like to use?",
75+
"type": "list",
76+
"items": [
77+
{ "value": "css", "label": "CSS" },
78+
{ "value": "scss", "label": "SCSS [ https://sass-lang.com/documentation/syntax#scss ]" },
79+
{ "value": "sass", "label": "Sass [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]" },
80+
{ "value": "less", "label": "Less [ http://lesscss.org ]" },
81+
{ "value": "styl", "label": "Stylus [ http://stylus-lang.com ]" }
82+
]
83+
},
7184
"x-user-analytics": 5
7285
},
7386
"skipTests": {

0 commit comments

Comments
 (0)