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(@angular-devkit): add flag to create new component / directive / pipe as module #21053

Open
mruffieux opened this issue Jun 5, 2021 · 0 comments

Comments

@mruffieux
Copy link

@mruffieux mruffieux commented Jun 5, 2021

🚀 Feature request

Command (mark with an x)

  • generate

Description

I see more and more people adopting the Single-Component-As-Module approach. What do you all think about maybe adding some --as-module flag when generating new component, directive or pipe? It's a hot topic, it dramatically decrease bundle size and resolve the shared/core-shared struggle on large projects.

Describe the solution you'd like

Extend current ng generate behaviour with a flag to generate new component / directive / pipe wrapped into a single module. It wouldn't introduce any breaking changes and is profitable if you care about architecture & of course, performance.

Describe alternatives you've considered

It's ok to do it manually though it would be a valuable shortcut.

If I can PR that?

  • YES!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant