Manually install with npm on the command linenpm install <module name>@<version>
Any efficient way on plugin development?
Hi, currently whenever I make any modification to my plugin, I will need to reload the entire list of plugins. The reloading process will take ~5 secs.
Is there any efficient method to reload only my plugin or only the changes that I have made? (for rapid development).
Any advice is appreciated. Thanks!
Absolutely. This is what Grunt is for, Grunt will watch your plugin files and reload resources when necessary.
Instead of starting your NodeBB with
./nodebb start, just run
grunt. It runs in interactive mode, so make sure you keep the window/session open while developing.
Now if you change a file, Grunt will see the change and you can watch as it reloads only the necessary resources, and it's much faster at it than in production mode.