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 x-prompt messages #2143

Merged
merged 1 commit into from
Nov 5, 2019
Merged

Conversation

timdeschryver
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Devs need to remember the command or look in the docs to know how to use the schematics.

What is the new behavior?

This PR adds an x-prompt for the required fields, or for the fields that I think can benefit from having an x-prompt

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

To be honest, I always forget the flags I have to pass to use the schematics.
I'm open for suggestions, if the message should be modified, or if a message needs to be added or removed.

We could also do the same for the ng-add schematics if we agree this PR adds value.
I have only tested the store schematics locally and I'm assuming since it worked, the rest should also work.

@brandonroberts
Copy link
Member

How will you get prompted for the ones with defaults?

@timdeschryver
Copy link
Member Author

If it isn't provided, the schematic will ask for it.

schematic

If it's provided, it doesn't ask for it

image

@brandonroberts brandonroberts merged commit fcb01e2 into master Nov 5, 2019
@brandonroberts brandonroberts deleted the pr/schematic-prompts branch November 5, 2019 22:18
jordanpowell88 pushed a commit to jordanpowell88/platform that referenced this pull request Nov 8, 2019
refactor(effects): refactor types in effects, expose metadata key for createEffect

refactor(example): close sidenav when logoutConfirmation is dispatched (ngrx#2189)

Closes ngrx#2186

docs: remove github link from navigation (ngrx#2188)

Closes ngrx#2185

feat(schematics): add message prompts for individual schematics (ngrx#2143)

test(store): fix flaky integration test (ngrx#2209)
jordanpowell88 pushed a commit to jordanpowell88/platform that referenced this pull request Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants