-
Notifications
You must be signed in to change notification settings - Fork 395
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
Adding support for custom Schematics #630
Comments
Custom schematics are supported. @johnbiundo I think you wrote an article about that somewhere(? or just shared an example) |
Thats great! I'll be waiting for it! |
I think this is what you're thinking of: https://github.com/nestjsplus/dyn-schematics, pretty good dynamic module schematic created by @johnbiundo |
You can follow this example then: https://github.com/nestjsplus/dyn-schematics |
|
maybe "collection" could accept an array of collection |
I'm pretty confused about why Seems the only way to change the collection is with Am I missing something? |
Update: I found tracking of the bug here: #954 The CLI's default input is overriding the fallback of the nest-cli.json |
Oh Great! and I'm using it |
I'm submitting a...
Current behavior
Expected behavior
The desired behaviour would be, in the terminal:
nest generate command --(custom options)
nest generate event --(custom options)
What is the motivation / use case for changing the behavior?
In our Event sourcing library: https://github.com/ArkerLabs/event-sourcing-nestjs , we have a common structure for declaring event handler, command handlers and event updater. We would like to create custom schematics for consistency and ease of use. The ideal use case would be to integrate it with the nestjs cli and setting it up to use our custom schematic npm package. The team is used to operate with the cli thus making easier the learning phase.
Environment
The text was updated successfully, but these errors were encountered: