mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Initial plugin runtime api implementation
This commit is contained in:
@@ -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")
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user