kopia lustrzana https://github.com/dceejay/electron-node-red
bit more noodling
rodzic
85809aed61
commit
dee0f6a968
|
@ -18,7 +18,7 @@
|
|||
install:
|
||||
- npm install
|
||||
script:
|
||||
- npm test
|
||||
- npm run build
|
||||
before_deploy:
|
||||
# Brew is the latest state
|
||||
- brew update
|
||||
|
@ -28,4 +28,4 @@
|
|||
# Makensis for creating Windows Installer is required
|
||||
- brew install makensis
|
||||
# Perform to build + installer created + zip with respect to each platform
|
||||
- npm run build
|
||||
# - npm run build
|
||||
|
|
16
builder.json
16
builder.json
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"osx" : {
|
||||
"title": "Node-RED installer",
|
||||
"background": "appbkg.png",
|
||||
"icon": "nodered.icns",
|
||||
"icon-size": 80,
|
||||
"contents": [
|
||||
{ "x": 438, "y": 344, "type": "link", "path": "/Applications" },
|
||||
{ "x": 192, "y": 344, "type": "file" }
|
||||
]
|
||||
},
|
||||
"win" : {
|
||||
"title" : "Node-RED installer",
|
||||
"icon" : "nodered.ico"
|
||||
}
|
||||
}
|
|
@ -1 +1 @@
|
|||
[{"type":"tab","id":"41f61d2.fbe09e4","label":"Flow 1"},{"id":"52a903f3.ad56fc","type":"ui_tab","z":"41f61d2.fbe09e4","name":"Home","icon":"dashboard","order":"1"},{"id":"30e652f.d9de3ae","type":"ui_group","z":"41f61d2.fbe09e4","order":"2","name":"Widgets","width":"6"},{"id":"a8ecb9.c60f4348","type":"ui_group","z":"41f61d2.fbe09e4","order":"1","name":"Introduction","width":"6"},{"id":"d3a0fd6d.2c5f","type":"ui_slider","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"3","width":"6","height":"1","name":"Slider","label":"Slider","topic":"","min":0,"max":10,"x":130,"y":100,"wires":[["42ddca5b.bd2234"]]},{"id":"42ddca5b.bd2234","type":"ui_gauge","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"2","width":"6","height":"4","name":"Gauge","title":"","label":"","format":"{{value}}","min":0,"max":10,"x":290,"y":100,"wires":[]},{"id":"852d9c04.7ad26","type":"ui_link","z":"41f61d2.fbe09e4","name":"Admin","link":"http://localhost:8000/admin","icon":"open_in_browser","target":"newtab","order":1,"x":69.5,"y":217,"wires":[]},{"id":"fce4a072.031b6","type":"ui_button","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"4","width":"6","height":"1","name":"Button","label":"Click Me","color":"green","icon":"","payload":"Hello !","topic":"","x":130,"y":160,"wires":[["a09bb056.68216"]]},{"id":"a09bb056.68216","type":"ui_toast","z":"41f61d2.fbe09e4","name":"","x":310,"y":160,"wires":[]},{"id":"189cf871.681118","type":"ui_template","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"a8ecb9.c60f4348","name":"Welcome","order":1,"format":"<h3>Welcome to Node-RED</h3>\nOn the right you will see some simple widgets to play with.\nTo get started making something a bit more useful click the menu icon at the top-left, and select <b>Admin</b>.","storeOutMessages":false,"fwdInMessages":false,"x":80,"y":40,"wires":[[]]}]
|
||||
[{"type":"tab","id":"41f61d2.fbe09e4","label":"Flow 1"},{"id":"52a903f3.ad56fc","type":"ui_tab","z":"41f61d2.fbe09e4","name":"Home","icon":"dashboard","order":"1"},{"id":"30e652f.d9de3ae","type":"ui_group","z":"41f61d2.fbe09e4","order":"2","name":"Widgets","width":"6"},{"id":"a8ecb9.c60f4348","type":"ui_group","z":"41f61d2.fbe09e4","order":"1","name":"Introduction","width":"6"},{"id":"d3a0fd6d.2c5f","type":"ui_slider","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"3","width":"6","height":"1","name":"Slider","label":"Slider","topic":"","min":0,"max":10,"x":130,"y":100,"wires":[["42ddca5b.bd2234"]]},{"id":"42ddca5b.bd2234","type":"ui_gauge","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"2","width":"6","height":"4","name":"Gauge","title":"","label":"","format":"{{value}}","min":0,"max":10,"x":290,"y":100,"wires":[]},{"id":"852d9c04.7ad26","type":"ui_link","z":"41f61d2.fbe09e4","name":"Editor","link":"http://localhost:8000/admin","icon":"open_in_browser","target":"newtab","order":1,"x":70,"y":240,"wires":[]},{"id":"fce4a072.031b6","type":"ui_button","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"30e652f.d9de3ae","order":"4","width":"6","height":"1","name":"Button","label":"Click Me","color":"green","icon":"","payload":"Hello !","topic":"","x":130,"y":160,"wires":[["a09bb056.68216"]]},{"id":"a09bb056.68216","type":"ui_toast","z":"41f61d2.fbe09e4","name":"","x":310,"y":160,"wires":[]},{"id":"189cf871.681118","type":"ui_template","z":"41f61d2.fbe09e4","tab":"52a903f3.ad56fc","group":"a8ecb9.c60f4348","name":"Welcome","order":1,"format":"<h3>Welcome to Node-RED</h3>\nOn the right you will see some simple widgets to play with.\nTo get started making something a bit more useful click the menu icon at the top-left, and select <b>Editor</b>.","storeOutMessages":false,"fwdInMessages":false,"x":80,"y":40,"wires":[[]]},{"id":"9944bbbe.242c68","type":"ui_link","z":"41f61d2.fbe09e4","name":"Worldmap","link":"http://localhost:8000/worldmap","icon":"language","target":"iframe","order":"2","x":80,"y":280,"wires":[]},{"id":"fcc1980e.81fb58","type":"worldmap","z":"41f61d2.fbe09e4","name":"","x":80,"y":320,"wires":[]}]
|
91
package.json
91
package.json
|
@ -1,52 +1,49 @@
|
|||
{
|
||||
"name": "electron-node-red",
|
||||
"version": "1.0.5",
|
||||
"description": "Electron Node-RED template",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "electron main.js",
|
||||
"test": "echo \" Warning: no test specified \"",
|
||||
"name": "electron-node-red",
|
||||
"version": "1.0.5",
|
||||
"description": "Electron Node-RED application starter",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "electron main.js",
|
||||
"test": "echo \" Warning: no test specified \"",
|
||||
|
||||
"clean": "rm -rf ./dist ",
|
||||
"clean": "rm -rf ./dist ",
|
||||
|
||||
"pack": "npm run pack:osx",
|
||||
"pack:osx": "npm run clean && electron-packager . Node-RED --icon=nodered.icns --platform=darwin --arch=x64 --out=dist",
|
||||
"pack:win": "npm run clean && electron-packager . Node-RED --icon=nodered.icns --platform=win32 --arch=x64 --out=dist",
|
||||
"pack": "npm run pack:osx",
|
||||
"pack:osx": "npm run clean && electron-packager . Node-RED --icon=nodered.icns --platform=darwin --arch=x64 --out=dist",
|
||||
"pack:win": "npm run clean && electron-packager . Node-RED --icon=nodered.icns --platform=win32 --arch=x64 --out=dist",
|
||||
|
||||
"build": "npm run build:osx",
|
||||
"build:osx": "npm run pack:osx && appdmg appdmg.json dist/Node-RED.dmg",
|
||||
"build:mac": "npm run pack:osx && electron-builder \"dist/Node-RED-darwin-x64\" --platform=osx --out=dist --config=builder.json",
|
||||
"build:win": "npm run pack:win && electron-builder \"dist/Node-RED-win32-x64\" --platform=win --out=dist --config=builder.json"
|
||||
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/natcl/electron-node-red.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"node-red": "~0.13.4",
|
||||
"node-red-dashboard": "git+https://github.com/node-red/node-red-dashboard.git",
|
||||
"express": "^4.13.0"
|
||||
},
|
||||
"keywords": [
|
||||
"electron",
|
||||
"quick",
|
||||
"start",
|
||||
"node-red"
|
||||
],
|
||||
"contributors": [
|
||||
{"name":"Nathanaël Lécaudé"},
|
||||
{"name":"Dave Conway-Jones"}
|
||||
],
|
||||
"license": "CC0-1.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/dceejay/electron-node-red/issues"
|
||||
},
|
||||
"homepage": "https://github.com/dceejay/electron-node-red#readme",
|
||||
"devDependencies": {
|
||||
"electron-prebuilt": "^0.37.8",
|
||||
"electron-builder": "*",
|
||||
"appdmg": "*",
|
||||
"electron-packager": "*"
|
||||
}
|
||||
"build": "npm run build:osx",
|
||||
"build:osx": "npm run pack:osx && appdmg appdmg.json dist/Node-RED.dmg"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/dceejay/electron-node-red.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"node-red": "~0.13.4",
|
||||
"node-red-dashboard": "git+https://github.com/node-red/node-red-dashboard.git",
|
||||
"node-red-contrib-web-worldmap": "*",
|
||||
"express": "^4.13.0"
|
||||
},
|
||||
"keywords": [
|
||||
"electron",
|
||||
"quick",
|
||||
"start",
|
||||
"node-red"
|
||||
],
|
||||
"contributors": [
|
||||
{"name":"Dave Conway-Jones"},
|
||||
{"name":"Nathanaël Lécaudé"}
|
||||
],
|
||||
"license": "CC0-1.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/dceejay/electron-node-red/issues"
|
||||
},
|
||||
"homepage": "https://github.com/dceejay/electron-node-red#readme",
|
||||
"devDependencies": {
|
||||
"electron-prebuilt": "^0.37.8",
|
||||
"appdmg": "*",
|
||||
"electron-packager": "*"
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue