mirror of
https://github.com/0x1d/esp8266-laser.git
synced 2025-12-15 18:38:20 +01:00
add frontend dev toolchain
This commit is contained in:
35
package.json
Normal file
35
package.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "esp8266-laser",
|
||||
"version": "1.0.0",
|
||||
"description": "Wifi Host for the Arduino-Laser-Spirograph",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"clear": "rm -rf data/*",
|
||||
"cp:config": "cp config/* data/",
|
||||
"build:css": "lessc frontend/styles/main.less data/styles.css",
|
||||
"build:html": "cp -r frontend/pages/* data/",
|
||||
"build": "npm run build:css && npm run build:html",
|
||||
"watch:html": "nodemon -q -w frontend/pages/ --ext \".\" --exec \"npm run build:html\"",
|
||||
"watch:css": "nodemon -q -w frontend/styles --ext \".\" --exec \"npm run build:css\"",
|
||||
"watch:config": "nodemon -q -w config --ext \".\" --exec \"npm run cp:config\"",
|
||||
"watch:livereload": "cd data && live-server",
|
||||
"dev": "npm run clear && npm run build && npm-run-all --parallel watch:*"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/0x1d/esp8266-laser.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "SEE LICENSE FILE",
|
||||
"bugs": {
|
||||
"url": "https://github.com/0x1d/esp8266-laser/issues"
|
||||
},
|
||||
"homepage": "https://github.com/0x1d/esp8266-laser#readme",
|
||||
"devDependencies": {
|
||||
"less": "^3.0.0-alpha.3",
|
||||
"live-server": "^1.2.0",
|
||||
"nodemon": "^1.12.1",
|
||||
"npm-run-all": "^4.1.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user