Allow module to provide resources and automatically expose them

This commit is contained in:
Nick O'Leary
2021-03-15 21:06:10 +00:00
parent 827f8d4d51
commit 8543613563
8 changed files with 94 additions and 5 deletions

View File

@@ -301,6 +301,17 @@ module.exports = {
*/
getNodeExampleFlowPath: library.getExampleFlowPath,
/**
* Gets the full path to a module's resource file
* @param {String} module - the name of the module providing the resource file
* @param {String} path - the relative path of the resource file
* @return {String} the full path to the resource file
*
* @function
* @memberof @node-red/registry
*/
getModuleResource: registry.getModuleResource,
checkFlowDependencies: externalModules.checkFlowDependencies,
registerPlugin: plugins.registerPlugin,
@@ -309,7 +320,8 @@ module.exports = {
getPluginList: plugins.getPluginList,
getPluginConfigs: plugins.getPluginConfigs,
exportPluginSettings: plugins.exportPluginSettings,
deprecated: require("./deprecated")
};