It has been about a year since I develop a nodebb plugin. I would like to get into plugin development again to add a few features to my makerspace community forum. I know that plugin APIs must have changed a bit since then. Is the developer documentation the best place to start looking to get up to date information about the latest patterns and API's we can use? Are there any other resources I should look at that would help me get up to speed again?
How to specify dependency on other plugins?
-
Hi folks, I'm developing some custom plugins for NodeBB and one is dependent on the other being installed. How would I specify this kind of dependency? I know that dependencies on npm is specified as usual in package.json, but would what work in my case, since I want the forum to have the nodebb plugin installed?
What I mean is, I'm doing module.parent.require and not just require. Would package.json/dependencies still work with that, or is there another better way?
Best regards, I find NodeBB to be really awesome.
-
There's no way to require it. The best you can do is tell the user to do it.
Also, it use
require.main.require
instead