-
Notifications
You must be signed in to change notification settings - Fork 12k
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(module): component optional when generating module #3389
Conversation
Feat 3365
tests updated for component flag
ng g m parent/child --component tests
Noob me forgot about e2e tests. I will fix and update tomorrow. |
@filipesilva |
We're discussing this internally to see if that's the way we want to move forward. The other solution would be to have components generated by default and have a |
If you guys choose to go for the second option I can change the code to fit the need. Thanks for the update. |
Okay we're going with this PR as is. |
Could you add a simple e2e test that actually call your flag? I want to make sure we avoid regressions. |
Other than adding a test, this LGTM. |
@baruchvlz yes, but I want a test that actually uses |
The Sorry if I'm misunderstanding, I don't have experience working with such large projects. |
No it's okay. We'll add a |
I think this default is a bit confusing. Example: #3255 (comment) |
* change URL query key name * generate component with module made optional * revert changes done to module cause open PR * components when generating module is optional * tests updated for component flag * fix parent/child compnent test to fit new flag * updated test for parent/child module generate * removed component testing from basic module e2e * adjusted e2e test for generate module * ng g m creates module only with routing flag * unit test for new generate module behavior * e2e tests for g m new behavior * remove spec test * shorten test module name to keep 100 char limit
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
As mentioned in #3365
Usage:ng g m foo --component