@gregoriusrippenstein/node-red-contrib-nodedev 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,6 +45,14 @@ Normally when developing nodes for Node-RED, a restart is necessary to flush old
45
45
 
46
46
  Since all this happens in the browser, there is no leaving Node-RED, making it more efficient to test and modify nodes. Renaming of packages can be done automagically as demonstrated by the [flow](https://flowhub.org/f/b92be5062203ff69) that maintains these nodes.
47
47
 
48
+ ### Artifacts
49
+
50
+ - [Flow that maintains](https://flowhub.org/f/b92be5062203ff69) this codebase
51
+ - [GitHub repo](https://flows.nodered.org/node/@gregoriusrippenstein/node-red-contrib-nodedev)
52
+ - [NPMjs node package](https://www.npmjs.com/package/@gregoriusrippenstein/node-red-contrib-nodedev)
53
+ - [Node-RED node package](https://flows.nodered.org/node/@gregoriusrippenstein/node-red-contrib-nodedev)
54
+
48
55
  ### Outlook
49
56
 
50
57
  Wherever the road shall lead, there it will go.
58
+
@@ -1,4 +1,13 @@
1
1
  <script type="text/javascript">
2
+ (function(){
3
+
4
+ function frontendSupportFunction() {
5
+ }
6
+
7
+ var functTwo = (arg) => {
8
+
9
+ };
10
+
2
11
  RED.nodes.registerType('{{ node.name }}',{
3
12
  color: '{{ node.color }}',
4
13
  icon: "{{{ node.icon }}}",
@@ -50,17 +59,19 @@
50
59
  message: RED._("notification.warnings.undeployedChanges")
51
60
  }), "warning");
52
61
  }
62
+ /* here goes the button code to be executed on click */
53
63
  }
54
64
  },
55
65
  {{/node.hasbutton}}
56
66
 
57
67
  });
68
+ })();
58
69
  </script>
59
70
 
60
71
  <script type="text/html" data-template-name="{{ node.name }}">
61
72
  <div class="form-row">
62
73
  <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
63
- <input type="text" id="node-input-name" placeholder="Name">
74
+ <input type="text" id="node-input-name" placeholder="Name"/>
64
75
  </div>
65
76
  </script>
66
77
 
@@ -9,10 +9,12 @@ module.exports = function(RED) {
9
9
  node.status({});
10
10
  });
11
11
 
12
+ /* msg handler, in this case pass the message on unchanged */
12
13
  node.on("input", function(msg, send, done) {
13
14
  send(msg);
14
15
  done();
15
16
  });
16
17
  }
18
+
17
19
  RED.nodes.registerType("{{ node.name }}", {{ node.name }}Functionality);
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "@gregoriusrippenstein/node-red-contrib-nodedev",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "dependencies": {
5
5
  "pako": "latest",
6
6
  "tar-stream": "latest",
@@ -13,11 +13,11 @@
13
13
  "node-red", "node development", "introspection", "bootstrapping", "recursion"
14
14
  ],
15
15
 
16
- "homepage": "https://github.com/gorenje/node-red-contrib-nodedev",
16
+ "homepage": "https://github.com/gorenje/node-red-contrib-nodedev#README.md",
17
17
  "license": "Don't do evil.",
18
18
  "author": "Gerrit Riessen <does.anyone@spread-the.love> (https://spread-the.love)",
19
19
  "engines": {
20
- "node": ">=16"
20
+ "node": ">=8"
21
21
  },
22
22
 
23
23
  "node-red" : {