mirror of
https://github.com/0x1d/esp8266-laser.git
synced 2025-12-16 10:44:30 +01:00
setup base frontend framework
This commit is contained in:
@@ -8,10 +8,12 @@
|
||||
"clear": "rm -rf data/*",
|
||||
"cp:config": "cp config/* data/",
|
||||
"build:css": "lessc frontend/styles/main.less data/styles.css",
|
||||
"build:js": "cat frontend/scripts/* > data/scripts.js",
|
||||
"build:html": "cp -r frontend/pages/* data/",
|
||||
"build": "npm run build:css && npm run build:html",
|
||||
"build": "npm run build:css && npm run build:html && npm run build:js",
|
||||
"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:js": "nodemon -q -w frontend/scripts --ext \".\" --exec \"npm run build:js\"",
|
||||
"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:*"
|
||||
|
||||
Reference in New Issue
Block a user