setup base frontend framework

This commit is contained in:
2017-10-22 22:46:04 +02:00
parent 944f2bbb34
commit b16c0d21a2
13 changed files with 417 additions and 81 deletions

View File

@@ -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:*"