Initial plugin runtime api implementation

This commit is contained in:
Nick O'Leary
2020-12-10 16:01:55 +00:00
parent bebebaa3dd
commit a006b52052
25 changed files with 1026 additions and 121 deletions

View File

@@ -28,6 +28,7 @@ var registry = require("./registry");
var loader = require("./loader");
var installer = require("./installer");
var library = require("./library");
var plugins = require("./plugins");
/**
* Initialise the registry with a reference to a runtime object
@@ -40,6 +41,7 @@ function init(runtime) {
// the util module it. The Util module is responsible for constructing the
// RED object passed to node modules when they are loaded.
loader.init(runtime);
plugins.init(runtime.settings);
registry.init(runtime.settings,loader);
library.init();
}
@@ -297,6 +299,12 @@ module.exports = {
*/
getNodeExampleFlowPath: library.getExampleFlowPath,
registerPlugin: plugins.registerPlugin,
getPlugin: plugins.getPlugin,
getPluginsByType: plugins.getPluginsByType,
getPluginList: plugins.getPluginList,
getPluginConfigs: plugins.getPluginConfigs,
deprecated: require("./deprecated")
};