List of Included Libraries?
-
So it looks like I will need to spend hours creating a couple of lists to help with plugin design and creation:
What Libraries from NPM that come preinstalled with NodeBB (Server Side)?
What Libraries are always loaded in the the Browser?Can I get some help here? I am only looking for Libraries that are directly used, not hidden ones that are behind a larger Library.
Reasoning:
If NodeBB uses Watson, then even if I prefer another library, it will run faster if I use the preinstalled one.
This is particularly the case in the browser... Why increase load times with a second layout engine just for some plugin? -
@RefinedSoftware Our dependencies can be found here
So yes, you can use them instead of requiring them in your plugin by doing something like:
var async = module.parent.require('async');
You can do the same with our internal methods:
var postTools = module.parent.require('./postTools');
-
So there are more then those used in the browser because jQuery is missing. Is there a list of browser dependencies?
-
Yep, client-side libraries. These are all minified into
nodebb.min.js
There are other modules that we require using require.js as well.
-
Thank you