pochade-node-red 0.1.0

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.
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "node-red-contrib-boilerplate",
3
+ "version": "0.1.0",
4
+ "description": "${project_description}",
5
+ "keywords": [
6
+ "node-red"
7
+ ],
8
+ "author": "",
9
+ "license": "ISC",
10
+ "node-red": {
11
+ "nodes": {
12
+ "${node_name}": "src/${node_name}.js"
13
+ }
14
+ },
15
+ "scripts": {
16
+ "test": "echo \"Error: no test specified\" && exit 1",
17
+ "install-plugin": "SRC=$PWD && echo \"Installing from $SRC\" && test -d $HOME/.node-red && (cd $HOME/.node-red && npm install $SRC) || (echo 'Error: $HOME/.node-red not found. Please initialize Node-RED first.' && exit 1)",
18
+ "watch": "nodemon -e js,html --exec \"npm run install-plugin && npm run restart-node-red\"",
19
+ "restart-node-red": "pkill -f 'node-red -u' || true && node-red -u $HOME/.node-red"
20
+ },
21
+ "devDependencies": {
22
+ "nodemon": "^2.0.22"
23
+ }
24
+ }
@@ -0,0 +1,26 @@
1
+ <script type="text/javascript">
2
+ RED.nodes.registerType('${node_name}', {
3
+ category: '${node_sidebar_title}',
4
+ color: '#a6bbcf',
5
+ defaults: {
6
+ name: { value: "" }
7
+ },
8
+ inputs: 1,
9
+ outputs: 1,
10
+ icon: "file.png",
11
+ label: function () {
12
+ return this.name || "${node_name}";
13
+ }
14
+ });
15
+ </script>
16
+
17
+ <script type="text/html" data-template-name="${node_name}">
18
+ <div class="form-row">
19
+ <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
20
+ <input type="text" id="node-input-name" placeholder="Name">
21
+ </div>
22
+ </script>
23
+
24
+ <script type="text/html" data-help-name="${node_name}">
25
+ <p>${node_purpose}</p>
26
+ </script>
@@ -0,0 +1,11 @@
1
+ module.exports = function (RED) {
2
+ console.log("Loading node-red-contrib-${node_name}...");
3
+ function NodeRedNode(config) {
4
+ RED.nodes.createNode(this, config);
5
+ var node = this;
6
+ node.on('input', function (msg) {
7
+ node.send(msg);
8
+ });
9
+ }
10
+ RED.nodes.registerType("${node_name}", NodeRedNode);
11
+ }
@@ -0,0 +1,3 @@
1
+ # Warp Configuration
2
+
3
+ Refer to [AGENTS.md](./AGENTS.md) for instructions on how to implement Node-RED plugins.