Where are plugins physically stored in relation to the base nodebb folder?
-
I'm trying to figure something out that requires me to know this.
-
node_modules
-
@PitaJ Is there a place where installed plugins can be found? Some kind of file or dunno.
I'm working on a docker image for nodebb and this is something that could be very interesting: having a list of plugins stored somewhere that are automatically loaded when nodebb is fresh-installed. -
@Telokis you could install them with
npm install --save nodebb-plugin-thing
which would save them topackage.json
. -
@Telokis sounds like an interesting feature. The activated plugins are stored in the database. You can list them with
./nodebb plugins
I think. If you want that feature, though, open an issue on GitHub. Thanks -
@PitaJ No need to submit a PR or so, this can be a plugin!
I noticed theaction:plugin.*
hook which is fired on install/uninstall of a plugin! That's perfect for my needs, it allows me to monitor easily!
I can also usePlugins.showInstalled
to retrieve the list of plugins currently installed and save it directly on load!
And maybe parse thepackage.json
of each plugin to be able to install the exact version that was used.