mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
add support for examples of core nodes
This commit is contained in:
parent
6b52206186
commit
36bf2a3c38
@ -286,6 +286,10 @@ function getNodeFiles(disableNodePathScan) {
|
||||
nodeFiles.forEach(function(node) {
|
||||
nodeList["node-red"].nodes[node.name] = node;
|
||||
});
|
||||
if (settings.coreNodesDir) {
|
||||
var examplesDir = path.join(settings.coreNodesDir,"examples");
|
||||
nodeList["node-red"].examples = {path: examplesDir};
|
||||
}
|
||||
|
||||
if (!disableNodePathScan) {
|
||||
var moduleFiles = scanTreeForNodesModules();
|
||||
|
Loading…
Reference in New Issue
Block a user