mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Move node registry to its own top level dir
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function DuffNode(n) {}
|
||||
RED.nodes.registerType("duff-node",DuffNode);
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-1"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-1"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-1',{});</script>
|
@@ -1,5 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function DuplicateTestNode(n) {}
|
||||
RED.nodes.registerType("test-node-1",DuplicateTestNode);
|
||||
}
|
@@ -1,6 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-multiple-1a"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-multiple-1a"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-multiple-1a',{});</script>
|
||||
<script type="text/x-red" data-template-name="test-node-multiple-1b"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-multiple-1b"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-multiple-1b',{});</script>
|
@@ -1,7 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function TestNode1(n) {}
|
||||
RED.nodes.registerType("test-node-multiple-1a",TestNode1);
|
||||
function TestNode2(n) {}
|
||||
RED.nodes.registerType("test-node-multiple-1b",TestNode2);
|
||||
}
|
@@ -1,4 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="nested-node-1"></script>
|
||||
<script type="text/x-red" data-help-name="nested-node-1"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('nested-node-1',{});</script>
|
||||
<style></style>
|
@@ -1,5 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function TestNode(n) {}
|
||||
RED.nodes.registerType("nested-node-1",TestNode);
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
This file exists just to ensure the 'icons' directory is in the repository.
|
||||
TODO: a future test needs to ensure the right icon files are loaded - this
|
||||
directory can be used for that
|
@@ -1,4 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="should-not-load-1"></script>
|
||||
<script type="text/x-red" data-help-name="should-not-load-1"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('should-not-load-1',{});</script>
|
||||
<style></style>
|
@@ -1,5 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function TestNode(n) {}
|
||||
RED.nodes.registerType("should-not-load-1",TestNode);
|
||||
}
|
@@ -1,4 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="should-not-load-3"></script>
|
||||
<script type="text/x-red" data-help-name="should-not-load-3"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('should-not-load-3',{});</script>
|
||||
<style></style>
|
@@ -1,5 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function TestNode(n) {}
|
||||
RED.nodes.registerType("should-not-load-3",TestNode);
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-1"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-1"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-1',{});</script>
|
||||
<style></style>
|
||||
<p>this should be filtered out</p>
|
@@ -1,5 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function TestNode(n) {}
|
||||
RED.nodes.registerType("test-node-1",TestNode);
|
||||
}
|
@@ -1,4 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-2"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-2"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-2',{});</script>
|
||||
<style></style>
|
@@ -1,10 +0,0 @@
|
||||
// A test node that exports a function which returns a resolving promise
|
||||
|
||||
var when = require("when");
|
||||
module.exports = function(RED) {
|
||||
return when.promise(function(resolve,reject) {
|
||||
function TestNode(n) {}
|
||||
RED.nodes.registerType("test-node-2",TestNode);
|
||||
resolve();
|
||||
});
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-3"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-3"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-3',{});</script>
|
@@ -1,8 +0,0 @@
|
||||
// A test node that exports a function which returns a rejecting promise
|
||||
|
||||
var when = require("when");
|
||||
module.exports = function(RED) {
|
||||
return when.promise(function(resolve,reject) {
|
||||
reject("fail");
|
||||
});
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-3"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-3"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-3',{});</script>
|
@@ -1 +0,0 @@
|
||||
throw new Error("fail to require");
|
@@ -1 +0,0 @@
|
||||
This file exists just to ensure the parent directory is in the repository.
|
@@ -1,5 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-mod-1"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-mod-1"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-mod-1',{});</script>
|
||||
<style></style>
|
||||
<p>this should be filtered out</p>
|
@@ -1,5 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function TestNode(n) {}
|
||||
RED.nodes.registerType("test-node-mod-1",TestNode);
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-mod-2"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-mod-2"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-mod-2',{});</script>
|
||||
<style></style>
|
||||
<p>this should be filtered out</p>
|
@@ -1,4 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
throw new Error("fail to load");
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
This file exists just to ensure the 'icons' directory is in the repository.
|
||||
TODO: a future test needs to ensure the right icon files are loaded - this
|
||||
directory can be used for that
|
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"name" : "TestNodeModule",
|
||||
"version" : "0.0.1",
|
||||
"description" : "A test node module",
|
||||
"node-red" : {
|
||||
"nodes": {
|
||||
"TestNodeMod1": "TestNodeModule.js",
|
||||
"TestNodeMod2": "TestNodeModule2.js"
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-mod-1"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-mod-1"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-mod-1',{});</script>
|
||||
<style></style>
|
||||
<p>this should be filtered out</p>
|
@@ -1,5 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
function TestNode(n) {}
|
||||
RED.nodes.registerType("test-node-mod-1",TestNode);
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
<script type="text/x-red" data-template-name="test-node-mod-2"></script>
|
||||
<script type="text/x-red" data-help-name="test-node-mod-2"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('test-node-mod-2',{});</script>
|
||||
<style></style>
|
||||
<p>this should be filtered out</p>
|
@@ -1,4 +0,0 @@
|
||||
// A test node that exports a function
|
||||
module.exports = function(RED) {
|
||||
throw new Error("fail to load");
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
This file exists just to ensure the 'icons' directory is in the repository.
|
||||
TODO: a future test needs to ensure the right icon files are loaded - this
|
||||
directory can be used for that
|
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"name" : "VersionMismatchModule",
|
||||
"version" : "0.0.1",
|
||||
"description" : "A test node module",
|
||||
"node-red" : {
|
||||
"version": "100.0.0",
|
||||
"nodes": {
|
||||
"VersionMismatchMod1": "TestNodeModule.js",
|
||||
"VersionMismatchMod2": "TestNodeModule2.js"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user