Compare commits
No commits in common. "1bb68228d84dc0a341039f75ee909dce8a915455" and "7991fb4f298c943b621fb1b21d6b332c49e85031" have entirely different histories.
1bb68228d8
...
7991fb4f29
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
*node-red-contrib-*.tgz
|
22
Makefile
22
Makefile
@ -1,22 +0,0 @@
|
||||
|
||||
|
||||
# Target to increment the version
|
||||
bump-version:
|
||||
@jq '.version |= (. | split(".") | .[2] |= (tonumber + 1 | tostring) | join("."))' package.json > package.json.tmp
|
||||
@mv package.json.tmp package.json
|
||||
|
||||
# Target to clean old tgz files
|
||||
clean:
|
||||
@rm -f *.tgz
|
||||
|
||||
git-commit:
|
||||
$(eval NEW_VERSION := $(shell jq -r '.version' package.json))
|
||||
@git add .
|
||||
@git commit -m "Bump version to $(NEW_VERSION)"
|
||||
@git push origin
|
||||
|
||||
# Target to execute npm pack
|
||||
pack: clean bump-version git-commit
|
||||
npm pack
|
||||
|
||||
|
12
package.json
12
package.json
@ -1,11 +1,9 @@
|
||||
{
|
||||
"name": "@vvzvlad/node-red-contrib-rn-combined-nodes",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
"node-red"
|
||||
],
|
||||
"keywords": [ "node-red" ],
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
@ -13,11 +11,11 @@
|
||||
"type": "git",
|
||||
"url": "https://gitea.vvzvlad.xyz/vvzvlad/node-red-contrib-rn-combined-nodes"
|
||||
},
|
||||
"node-red": {
|
||||
"node-red" : {
|
||||
"nodes": {
|
||||
"thermostat": "thermostat.js"
|
||||
"thermostat": "thermostat.js"
|
||||
}
|
||||
},
|
||||
},
|
||||
"author": "vvzvlad",
|
||||
"license": "ISC"
|
||||
}
|
||||
|
@ -1,8 +1,7 @@
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('c-thermostat',{
|
||||
category: 'Combined RN',
|
||||
RED.nodes.registerType('lower-case',{
|
||||
category: 'function',
|
||||
color: '#a6bbcf',
|
||||
paletteLabel: 'C-Thermostat',
|
||||
defaults: {
|
||||
name: {value:""}
|
||||
},
|
||||
@ -10,19 +9,18 @@
|
||||
outputs: 1,
|
||||
icon: "file.svg",
|
||||
label: function() {
|
||||
return this.name||"C-Thermostat";
|
||||
return this.name||"lower-case";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-template-name="c-thermostat">
|
||||
<script type="text/html" data-template-name="lower-case">
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-input-name" placeholder="Name">
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="c-thermostat">
|
||||
<p>c-thermostat/p>
|
||||
<script type="text/html" data-help-name="lower-case">
|
||||
<p>A simple node that converts the message payloads into all lower-case characters</p>
|
||||
</script>
|
||||
|
||||
|
@ -7,5 +7,13 @@ module.exports = function(RED) {
|
||||
node.send(msg);
|
||||
});
|
||||
}
|
||||
RED.nodes.registerType("c-thermostat", thermostat );
|
||||
RED.nodes.registerType("thermostat",{
|
||||
"category": "thermostat",
|
||||
"defaults": {
|
||||
name: {
|
||||
value: "C-Thermostat"
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user