Nest: How to extend nest or write a plugin

Created on 8 Apr 2018  Â·  6Comments  Â·  Source: nestjs/nest

Hi sorry it's not really an issue, BUT maybe i do mist it, any documentation?

question 🙌

All 6 comments

What do u mean by extend or plugins?

Checkout Dynamic Modules

See how i created Nest RouterModule
https://github.com/shekohex/nest-router

And about how to write 3rd party packages/Modules, It will be in
Documentation soon, I think !

On Sun, Apr 8, 2018, 11:13 AM Chanlito notifications@github.com wrote:

What do u mean by extend or plugins?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nestjs/nest/issues/547#issuecomment-379534410, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AN8VrBe5A-VMO3JcPZnJtciPBqBrpl_pks5tmdS9gaJpZM4TLdcY
.

@shekohex thanks though gonna look into thanks.

@chanlito for instance the swagger module has a lot of missing part's(also some missing documentation), i would love to extend it and add more decorators.

I agree! I find it a little difficult building complex modules for nest js.

@FrancisVarga if you want to contribute to Swagger module, I'd very appreciate your help 🙂

In general, 3rd-party modules/plugins should be built on top of dynamic modules API. This concept is a little bit further explained in the latest documentation: https://docs.nestjs.com/v5 (Modules chapter). However, there is still a missing part about ModulesContainer (a way to access a whole modules graph). I hope to provide a dedicated chapter soon.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings