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

[Feature] - nestCLI option to generate Command and Events #2461

Closed
1 task done
dinbtechit opened this issue Jan 21, 2024 · 1 comment
Closed
1 task done

[Feature] - nestCLI option to generate Command and Events #2461

dinbtechit opened this issue Jan 21, 2024 · 1 comment
Labels

Comments

@dinbtechit
Copy link

dinbtechit commented Jan 21, 2024

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

Currently, we have to manually create the Command, Command Handler, Event, and EventHandler, and then add them to the module file. It would be helpful to have an automation feature for this process.

Describe the solution you'd like

nest g command kill-dragon

Should generate:
kill-dragon.command.ts
kill-dragon.handler.ts

nest g event hero-kill-dragon

Should generate:
hero-killed-dragon.event.ts
hero-killed-dragon.handler.ts

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

I'm the developer of NestJS plugin for Jetbrains IDE. I would like the plugin to support code generation for command and events. This would also help to implement the navigating between the usage and implementation as I would have a more consistent folder structure.

@kamilmysliwiec
Copy link
Member

Thanks for your suggestion!

There are no plans to implement it in the foreseeable future.

If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

@nestjs nestjs locked and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants