Skip to content

Commit

Permalink
Merge pull request #136 from seevee/chore/dev-tooling
Browse files Browse the repository at this point in the history
Chore: dev tooling updates
  • Loading branch information
madmicio authored Dec 22, 2023
2 parents 51867d2 + f3ad6d7 commit 2eab8ff
Show file tree
Hide file tree
Showing 7 changed files with 5,278 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Build'
name: Build

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 20

- name: Build
run: |
Expand Down
5,244 changes: 5,244 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

39 changes: 21 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,33 @@
"license": "MIT",
"dependencies": {
"custom-card-helpers": "^1.9.0",
"home-assistant-js-websocket": "^8.0.1",
"lit": "^2.0.0"
"home-assistant-js-websocket": "^9.1.0",
"lit": "^3.1.0"
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/core": "^7.23.6",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-decorators": "^7.14.5",
"@rollup/plugin-json": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"@babel/plugin-proposal-decorators": "^7.23.6",
"@babel/plugin-transform-runtime": "^7.23.6",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@types/node": "^20.10.5",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"cross-var": "^1.1.0",
"prettier": "^2.4.1",
"replace-in-file": "^6.3.5",
"rollup": "^2.58.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"typescript": "^4.4.3"
"prettier": "^3.1.1",
"replace-in-file": "^7.0.2",
"rollup": "^4.9.1",
"rollup-plugin-serve": "^2.0.3",
"ts-lit-plugin": "^2.0.1",
"typescript": "^5.3.3"
},
"scripts": {
"start": "rollup -c rollup.config.dev.js --watch",
"start": "rollup -c rollup.config.mjs --watch",
"build": "npm run rollup && npm run add-version",
"add-version": "cross-var replace-in-file \"@LG_REMOTE_CONTROL_CARD_VERSION_PLACEHOLDER@\" \"$npm_package_version\" \"dist/lg-remote-control.js\"",
"rollup": "rollup -c"
Expand Down
10 changes: 5 additions & 5 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import typescript from "rollup-plugin-typescript2";
import commonjs from "rollup-plugin-commonjs";
import nodeResolve from "rollup-plugin-node-resolve";
import babel from "rollup-plugin-babel";
import { terser } from "rollup-plugin-terser";
import typescript from "@rollup/plugin-typescript";
import commonjs from "@rollup/plugin-commonjs";
import nodeResolve from "@rollup/plugin-node-resolve";
import babel from "@rollup/plugin-babel";
import terser from "@rollup/plugin-terser";
import serve from "rollup-plugin-serve";
import json from "@rollup/plugin-json";

Expand Down
2 changes: 1 addition & 1 deletion src/editor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Create and register the card editor
import { customElement } from "lit/decorators";
import { customElement } from "lit/decorators.js";
import { html, css, LitElement } from "lit";

import { HomeAssistantFixed } from "./types";
Expand Down
6 changes: 3 additions & 3 deletions src/lg-remote-control.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css, html, LitElement } from "lit";
import { customElement } from 'lit/decorators';
import { HomeAssistant } from "custom-card-helpers";
import { css, html, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';
import { HomeAssistant } from 'custom-card-helpers';

import "./editor";
import { lineOutIcon, amazonIcon, tvOpticIcon, daznIcon, disneyIcon, tvHeadphonesIcon, arcIcon, opticIcon, nowTvIcon } from "./icons";
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"noImplicitAny": false,
"skipLibCheck": true,
"resolveJsonModule": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"types": ["node"]
}
}

0 comments on commit 2eab8ff

Please sign in to comment.