Skip to content

Commit e9a8c3c

Browse files
clydinvikerman
authored andcommitted
feat(@schematics/angular): add prompts for all name options (#12519)
1 parent b8eee02 commit e9a8c3c

File tree

11 files changed

+22
-11
lines changed

11 files changed

+22
-11
lines changed

packages/schematics/angular/application/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"$default": {
1616
"$source": "argv",
1717
"index": 0
18-
}
18+
},
19+
"x-prompt": "What name would you like to use for the application?"
1920
},
2021
"experimentalIvy": {
2122
"description": "EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering engine.",

packages/schematics/angular/class/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the class?"
1415
},
1516
"path": {
1617
"type": "string",

packages/schematics/angular/component/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"$default": {
2424
"$source": "argv",
2525
"index": 0
26-
}
26+
},
27+
"x-prompt": "What name would you like to use for the component?"
2728
},
2829
"inlineStyle": {
2930
"description": "Specifies if the style will be in the ts file.",

packages/schematics/angular/directive/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the directive?"
1415
},
1516
"path": {
1617
"type": "string",

packages/schematics/angular/enum/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the enum?"
1415
},
1516
"path": {
1617
"type": "string",

packages/schematics/angular/guard/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the guard?"
1415
},
1516
"spec": {
1617
"type": "boolean",

packages/schematics/angular/interface/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the interface?"
1415
},
1516
"path": {
1617
"type": "string",

packages/schematics/angular/library/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the library?"
1415
},
1516
"entryFile": {
1617
"type": "string",

packages/schematics/angular/module/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the module?"
1415
},
1516
"path": {
1617
"type": "string",

packages/schematics/angular/pipe/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the pipe?"
1415
},
1516
"path": {
1617
"type": "string",

packages/schematics/angular/service/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"$default": {
1111
"$source": "argv",
1212
"index": 0
13-
}
13+
},
14+
"x-prompt": "What name would you like to use for the service?"
1415
},
1516
"path": {
1617
"type": "string",

0 commit comments

Comments
 (0)