-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(schematics): add prompts #89
Conversation
Thank you @timdeschryver |
Thanks for the update, there's no rush - enjoy the holidays 🎄 |
@@ -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 should be the name for the folder and module?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grammar: What name do you want to use for the folder and module?
"name": { | ||
"type": "string", | ||
"description": "add the title for the post", | ||
"x-prompt": "What should be the title for the post?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grammar: What should title do you want to use for the post?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a typo, it should be What title do you want to use for the post
right?
}, | ||
"slug": { | ||
"type": "string", | ||
"description": "add the name for the :${slug}" | ||
"description": "add the name for the :${slug}", | ||
"x-prompt": "What should be the slug for the markdown?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grammar: What slug do you want for the markdown file?
@timdeschryver I made a few grammar suggestions. |
👍, thanks @aaronfrost ! |
a1a0f5a
to
11ec08f
Compare
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
While running the schematics (
ng-add
orgenerate
) we have to remember the options.If we don't add options, the schematic will do nothing.
Issue Number: N/A
What is the new behavior?
The user will be prompted if she doesn't provide the options:
Does this PR introduce a breaking change?
Other information
Formatting is changed due to prettier.