Skip to content

Commit

Permalink
1.10.0 (#166)
Browse files Browse the repository at this point in the history
* Add an option to ignore light temperature

* Deprecate style in favor of styles.card

* pre-commit hooks

* name_template and entity_picture_template

* Use custom-card-helpers

* Deep merging state by id

* Using latest custom-card-helpers

* Aspect ratio support and auto icon resizing

* Updating documentation
  • Loading branch information
RomRider authored May 24, 2019
1 parent 6f12577 commit 5ec35fd
Show file tree
Hide file tree
Showing 20 changed files with 4,353 additions and 3,294 deletions.
3 changes: 1 addition & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"name": "Chrome Localhost",
"url": "http://localhost:8123",
"webRoot": "${workspaceFolder}/dist",
"sourceMaps": true,
"preLaunchTask": "watch"
"sourceMaps": true
}
]
}
134 changes: 128 additions & 6 deletions README.md

Large diffs are not rendered by default.

1,232 changes: 743 additions & 489 deletions dist/button-card.js

Large diffs are not rendered by default.

Binary file added examples/aspect_ratio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions hooks/pre-commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -euo pipefail

echo "Pre-Commit hooks running..."

npm run build
git add dist/button-card.js
5,307 changes: 3,253 additions & 2,054 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
"description": "Button card for lovelace",
"main": "dist/button-card.js",
"pre-commit": [
"build",
"commit_dist"
"pre-commit"
],
"scripts": {
"pre-commit": "./hooks/pre-commit.sh",
"build": "npm run rollup && npm run babel",
"rollup": "rollup -c",
"commit_dist": "git add dist/button-card.js",
"babel": "babel dist/button-card.js --out-file dist/button-card.js",
"lint": "eslint src/button-card.ts",
"watch": "rollup -c rollup.debug.config.js --watch"
Expand All @@ -33,30 +32,31 @@
},
"homepage": "https://github.com/custom-cards/button-card#readme",
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-decorators": "^7.4.0",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"@babel/core": "^7.4.4",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"babel-cli": "^6.26.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.17.2",
"npm": "^6.9.0",
"pre-commit": "^1.2.2",
"prettier": "^1.17.0",
"rollup": "^1.10.1",
"prettier": "^1.17.1",
"rollup": "^1.12.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^4.2.3",
"rollup-plugin-node-resolve": "^4.2.4",
"rollup-plugin-terser": "^4.0.4",
"rollup-plugin-typescript2": "^0.20.1",
"ts-lit-plugin": "^1.0.5",
"ts-lit-plugin": "^1.0.6",
"typescript": "^3.4.4",
"typescript-styled-plugin": "^0.14.0"
},
"dependencies": {
"@ctrl/tinycolor": "^2.4.0",
"custom-card-helpers": "^1.2.1",
"home-assistant-js-websocket": "^3.4.0",
"lit-element": "^2.1.0",
"lit-html": "^1.0.0"
Expand Down
Loading

0 comments on commit 5ec35fd

Please sign in to comment.