Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jan 4, 2020
1 parent e1375ab commit dc72752
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 24 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
},
"homepage": "https://github.com/hacs/frontend#readme",
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-decorators": "^7.4.0",
"@rollup/plugin-json": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
Expand All @@ -33,7 +30,6 @@
"node-emoji": "^1.10.0",
"patch-package": "^6.2.0",
"prettier": "^1.16.4",
"rollup-plugin-babel-minify": "^9.1.1",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-cleanup": "^3.1.1",
"rollup-plugin-commonjs": "^10.1.0",
Expand All @@ -42,6 +38,7 @@
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-progress": "^1.1.1",
"rollup-plugin-sizes": "^1.0.1",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.24.3",
"rollup": "^1.24.0",
"sweetalert": "^2.1.2",
Expand Down
12 changes: 1 addition & 11 deletions rollup.config.debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import nodeResolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import typescript from "rollup-plugin-typescript2";
import babel from "rollup-plugin-babel";
import json from "@rollup/plugin-json";
import gzipPlugin from "rollup-plugin-gzip";

Expand All @@ -11,14 +10,5 @@ export default {
file: `hacs_frontend/debug.js`,
format: "es"
},
plugins: [
nodeResolve({}),
commonjs(),
typescript(),
json(),
babel({
exclude: "node_modules/**"
}),
gzipPlugin()
]
plugins: [nodeResolve({}), commonjs(), typescript(), json(), gzipPlugin()]
};
11 changes: 3 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { terser } from "rollup-plugin-terser";
import babel from "rollup-plugin-babel";
import cleanup from "rollup-plugin-cleanup";
import commonjs from "rollup-plugin-commonjs";
import dev from "rollup-plugin-dev";
import gzipPlugin from "rollup-plugin-gzip";
import json from "@rollup/plugin-json";
import minify from "rollup-plugin-babel-minify";
import nodeResolve from "rollup-plugin-node-resolve";
import progress from "rollup-plugin-progress";
import sizes from "rollup-plugin-sizes";
Expand All @@ -18,9 +16,8 @@ const opts_json = {
preferConst: true
};

const opts_babel = {
exclude: "node_modules/**",
sourceMap: "inline"
const opts_terser = {
mangle: false
};

const opts_dev = {
Expand All @@ -43,9 +40,7 @@ const AwesomePlugins = [
commonjs(),
typescript(),
json(opts_json),
babel(opts_babel),
!isdev && minify(),
!isdev && terser(),
!isdev && terser(opts_terser),
!isdev && cleanup(opts_cleanup),
isdev && sizes(),
isdev && sizes(opts_sizes),
Expand Down
2 changes: 1 addition & 1 deletion src/HacsFrontend.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-console, no-undef, prefer-destructuring, prefer-destructuring, no-constant-condition, max-len */
/* eslint-disable no-undef, prefer-destructuring, prefer-destructuring, no-constant-condition, max-len */
import { HomeAssistant } from "custom-card-helpers";
import {
css,
Expand Down

0 comments on commit dc72752

Please sign in to comment.