diff --git a/.eslintrc b/.eslintrc index e53662fda9..0ed0aa0651 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,9 @@ "__DEV__": false, "Polymer": true }, + "env": { + "browser": true + }, "rules": { "new-cap": 0, "prefer-template": 0, diff --git a/.gitignore b/.gitignore index 1cbd9d7a58..c9c5fd4d5d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build/* +build-temp/* node_modules/* bower_components/* npm-debug.log diff --git a/home-assistant-js b/home-assistant-js index 8ad1b80dac..0209bcdd0b 160000 --- a/home-assistant-js +++ b/home-assistant-js @@ -1 +1 @@ -Subproject commit 8ad1b80dac98aeefba73fb1081f51b9fb1cb6952 +Subproject commit 0209bcdd0b7491d539f05887347d66a63e0da42c diff --git a/package.json b/package.json index 614c05d6d4..050b846f76 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ }, "scripts": { "setup_js_dev": "git submodule init && git submodule update && cd home-assistant-js && npm install", - "js_dev": "watch_ru_all", + "clean": "rm -rf build/* build-temp/*", + "js_dev": "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", @@ -36,9 +37,9 @@ }, "devDependencies": { "bower": "^1.7.9", - "eslint": "^3.0.1", - "eslint-config-airbnb-base": "^4.0.0", - "eslint-plugin-import": "^1.10.2", + "eslint": "^3.1.0", + "eslint-config-airbnb-base": "^4.0.2", + "eslint-plugin-import": "^1.10.3", "html-minifier": "^3.0.1", "rollup": "^0.34.1", "rollup-plugin-babel": "^2.6.1", diff --git a/src/components/events-list.html b/panels/dev-event/events-list.html similarity index 93% rename from src/components/events-list.html rename to panels/dev-event/events-list.html index b7b3378037..6d5fd19633 100644 --- a/src/components/events-list.html +++ b/panels/dev-event/events-list.html @@ -1,4 +1,4 @@ - + + + + + + diff --git a/panels/iframe/ha-panel-iframe.html b/panels/iframe/ha-panel-iframe.html new file mode 100644 index 0000000000..7ff7e4a7f4 --- /dev/null +++ b/panels/iframe/ha-panel-iframe.html @@ -0,0 +1,38 @@ + + + + + + diff --git a/src/components/ha-logbook.html b/panels/logbook/ha-logbook.html similarity index 76% rename from src/components/ha-logbook.html rename to panels/logbook/ha-logbook.html index 4408fe155f..d494a923b2 100644 --- a/src/components/ha-logbook.html +++ b/panels/logbook/ha-logbook.html @@ -1,6 +1,8 @@ + - +