Upgrade dependencies

This commit is contained in:
Paulus Schoutsen 2016-11-26 17:43:55 -08:00
parent 8ff385a568
commit 0df7f83ebd
8 changed files with 928 additions and 900 deletions

View File

@ -18,7 +18,8 @@
"strict": 0,
"prefer-spread": 0,
"no-plusplus": 0,
"no-bitwise": 0
"no-bitwise": 0,
"comma-dangle": 0
},
plugins: [
"html"

View File

@ -20,8 +20,8 @@
"ru_core": "rollup --config rollup/core.js",
"ru_demo": "rollup --config rollup/demo.js",
"watch_ru_all": "npm run watch_ru_core && npm run watch_ru_demo",
"watch_ru_core": "rollup --config rollup/core.js --watch",
"watch_ru_demo": "rollup --config rollup/demo.js --watch",
"watch_ru_core": "rollup --config rollup/core.js --watch --sourcemap inline",
"watch_ru_demo": "rollup --config rollup/demo.js --watch --sourcemap inline",
"lint_js": "eslint src panels --ext html",
"lint_html": "ls -1 src/**/*.html panels/**/*.html | xargs polymer lint --input",
"test": "npm run lint_js && npm run lint_html"
@ -38,13 +38,13 @@
"devDependencies": {
"bower": "^1.7.9",
"eslint": "^3.5.0",
"eslint-config-airbnb-base": "^7.1.0",
"eslint-config-airbnb-base": "^10.0.1",
"eslint-plugin-html": "^1.5.2",
"eslint-plugin-import": "^1.15.0",
"eslint-plugin-import": "^2.2.0",
"html-minifier": "^3.0.3",
"hydrolysis": "^1.24.1",
"optimize-js": "^1.0.0",
"polymer-cli": "^0.16.0",
"polymer-cli": "^0.17.0",
"polymer-lint": "^0.8.3",
"rollup": "^0.36.3",
"rollup-plugin-buble": "^0.14.0",

View File

@ -8,7 +8,10 @@ const DEV = !!JSON.parse(process.env.BUILD_DEV || 'true');
const DEMO = !!JSON.parse(process.env.BUILD_DEMO || 'false');
const plugins = [
nodeResolve(),
nodeResolve({
// Because es output for ha-js-ws breaks buble
module: false,
}),
commonjs(),

View File

@ -77,7 +77,6 @@ Polymer({
message = window.micromarkdown.parse(stateObj.state);
el.innerHTML = message;
}
return;
},
ready: function () {

View File

@ -79,6 +79,7 @@
<script>
(function () {
'use strict';
// mapping domain to size of the card.
var DOMAINS_WITH_CARD = {
camera: 4,
@ -147,8 +148,7 @@
'updateCards(columns, states, showIntroduction, panelVisible, viewVisible)',
],
updateCards: function (columns, states, showIntroduction,
panelVisible, viewVisible) {
updateCards: function (columns, states, showIntroduction, panelVisible, viewVisible) {
/* eslint-disable no-console */
if (!panelVisible || !viewVisible) {
return;

View File

@ -282,9 +282,10 @@ Polymer({
computeClassNames: function (stateObj) {
return 'more-info-climate ' + window.hassUtil.attributeClassNames(
stateObj,
['away_mode', 'aux_heat', 'temperature', 'humidity', 'operation_list',
'fan_list', 'swing_list']
stateObj, [
'away_mode', 'aux_heat', 'temperature', 'humidity', 'operation_list',
'fan_list', 'swing_list',
]
);
},

View File

@ -25,10 +25,12 @@
<script>
(function () {
'use strict';
var FILTER_KEYS = ['entity_picture', 'friendly_name', 'icon', 'unit_of_measurement',
'emulated_hue', 'emulated_hue_name',
'haaska_hidden', 'haaska_name',
'homebridge_hidden', 'homebridge_name'];
var FILTER_KEYS = [
'entity_picture', 'friendly_name', 'icon', 'unit_of_measurement',
'emulated_hue', 'emulated_hue_name', 'haaska_hidden', 'haaska_name',
'homebridge_hidden', 'homebridge_name',
];
Polymer({
is: 'more-info-default',

1788
yarn.lock

File diff suppressed because it is too large Load Diff