Skip to content
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

Merged
merged 2 commits into from
Jan 7, 2020

Conversation

timdeschryver
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Other... Please describe:

What is the current behavior?

While running the schematics (ng-add or generate) we have to remember the options.
If we don't add options, the schematic will do nothing.

Annotation 2019-12-24 131422

Annotation 2019-12-24 131619

Annotation 2019-12-24 131737

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?

  • Yes
  • No

Other information

Formatting is changed due to prettier.

@SanderElias
Copy link
Contributor

Thank you @timdeschryver
As @jorgeucano is the lead on schematics and is out on a holiday it may take a bit longer to merge this,

@timdeschryver
Copy link
Contributor Author

Thanks for the update, there's no rush - enjoy the holidays 🎄

aaronfrost
aaronfrost previously approved these changes Dec 27, 2019
@@ -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?"
Copy link
Contributor

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?"
Copy link
Contributor

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?

Copy link
Contributor Author

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?"
Copy link
Contributor

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?

@aaronfrost aaronfrost self-requested a review December 27, 2019 11:11
@aaronfrost
Copy link
Contributor

@timdeschryver I made a few grammar suggestions.

@timdeschryver
Copy link
Contributor Author

👍, thanks @aaronfrost !

@claassistantio
Copy link

claassistantio commented Jan 6, 2020

CLA assistant check
All committers have signed the CLA.

@jorgeucano jorgeucano self-requested a review January 7, 2020 13:24
@jorgeucano jorgeucano merged commit 42ab761 into scullyio:master Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants