Skip to content

Commit

Permalink
feat(schematics): add prompts (#89)
Browse files Browse the repository at this point in the history
* feat(schematics): add prompts

* feat(schematics): grammar review changes
  • Loading branch information
timdeschryver authored and jorgeucano committed Jan 7, 2020
1 parent 68658ec commit 42ab761
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
26 changes: 13 additions & 13 deletions schematics/scully/src/add-post/schema.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

{
"$schema": "http://json-schema.org/schema",
"id": "Scully-ng-add-blog",
"title": "Scully ng-add-blog schematic",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "add the title for the post"
}
},
"required": []
}
"$schema": "http://json-schema.org/schema",
"id": "Scully-ng-add-blog",
"title": "Scully ng-add-blog schematic",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "add the title for the post",
"x-prompt": "What title do you want to use for the post?"
}
},
"required": []
}
6 changes: 4 additions & 2 deletions schematics/scully/src/create-markdown/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
},
"name": {
"type": "string",
"description": "add the name for the folder and module"
"description": "add the name for the folder and module",
"x-prompt": "What name do you want to use for the folder and module?"
},
"slug": {
"type": "string",
"description": "add the name for the :${slug}"
"description": "add the name for the :${slug}",
"x-prompt": "What slug do you want for the markdown file?"
}
},
"required": []
Expand Down
23 changes: 12 additions & 11 deletions schematics/scully/src/ng-add/schema.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$schema": "http://json-schema.org/schema",
"id": "scully-ng-add",
"title": "scully ng-add schematic",
"type": "object",
"properties": {
"blog": {
"type": "boolean",
"description": "add full blog"
}
},
"required": []
"$schema": "http://json-schema.org/schema",
"id": "scully-ng-add",
"title": "scully ng-add schematic",
"type": "object",
"properties": {
"blog": {
"type": "boolean",
"description": "add full blog",
"x-prompt": "Should we set up a blog for you?"
}
},
"required": []
}

0 comments on commit 42ab761

Please sign in to comment.