MVP Gulp introduction (#334)
* Install gulp as dev dependency * Placeholder gulpfile * Replace rollup invocations with gulp * Consolidate duplicated code * Big cleanup of gulpfile * Without cache test * Revert "Without cache test" This reverts commit 0e3881d8d79b81faa514669fa2836e415dcc5c95.
This commit is contained in:
committed by
Paulus Schoutsen
parent
8a2f881684
commit
2c69e001ee
+9
-14
@@ -8,23 +8,16 @@
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf build/* build-temp/*",
|
||||
"js_dev": "node script/gen-service-worker.js && npm run watch_ru_all",
|
||||
"js_dev_demo": "BUILD_DEMO=1 npm run watch_ru_all",
|
||||
"js_prod": "BUILD_DEV=0 npm run ru_all",
|
||||
"js_demo": "BUILD_DEV=0 BUILD_DEMO=1 npm run ru_all",
|
||||
"gulp": "gulp",
|
||||
"js_dev": "node script/gen-service-worker.js && npm run gulp watch_ru_all",
|
||||
"js_dev_demo": "BUILD_DEMO=1 npm run gulp watch_ru_all",
|
||||
"js_prod": "BUILD_DEV=0 npm run gulp ru_all",
|
||||
"js_demo": "BUILD_DEV=0 BUILD_DEMO=1 npm run gulp ru_all",
|
||||
"frontend_html": "node script/vulcanize.js",
|
||||
"frontend_prod": "npm run js_prod && npm run frontend_html",
|
||||
"frontend_demo": "npm run js_demo && npm run frontend_html",
|
||||
"ru_all": "npm run ru_automation && npm run ru_core && npm run ru_compatibility && npm run ru_demo",
|
||||
"ru_automation": "rollup --config rollup/automation.js",
|
||||
"ru_core": "rollup --config rollup/core.js",
|
||||
"ru_compatibility": "rollup --config rollup/compatibility.js",
|
||||
"ru_demo": "rollup --config rollup/demo.js",
|
||||
"watch_ru_all": "(npm run watch_ru_automation & npm run watch_ru_core & npm run watch_ru_compatibility & npm run watch_ru_demo) && wait",
|
||||
"watch_ru_automation": "rollup --config rollup/automation.js --watch --sourcemap inline",
|
||||
"watch_ru_core": "rollup --config rollup/core.js --watch --sourcemap inline",
|
||||
"watch_ru_compatibility": "rollup --config rollup/compatibility.js --watch --sourcemap inline",
|
||||
"watch_ru_demo": "rollup --config rollup/demo.js --watch --sourcemap inline",
|
||||
"ru_all": "npm run gulp ru_all",
|
||||
"watch_ru_all": "npm run gulp watch_ru_all",
|
||||
"lint_js": "eslint src panels preact-src --ext js,html",
|
||||
"lint_html": "ls -1 src/home-assistant.html panels/**/ha-panel-*.html | xargs polymer lint --input",
|
||||
"test": "npm run lint_js && npm run lint_html"
|
||||
@@ -47,6 +40,8 @@
|
||||
"eslint-plugin-html": "^2.0.1",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"eslint-plugin-react": "^7.0.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-rollup-each": "^1.0.2",
|
||||
"html-minifier": "^3.4.3",
|
||||
"hydrolysis": "^1.24.1",
|
||||
"polymer-cli": "^0.17.0",
|
||||
|
||||
Reference in New Issue
Block a user