Skip to content

Commit

Permalink
Update dependencies and test with rollup3 (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
btd authored Oct 15, 2022
1 parent fd7904d commit 5f0775c
Show file tree
Hide file tree
Showing 23 changed files with 700 additions and 1,531 deletions.
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import", "prettier"],
plugins: ["@typescript-eslint", "prettier"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
],
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
rules: {
"import/order": ["error"],
},
overrides: [
{
files: ["src/**/*.js"],
Expand Down
3 changes: 0 additions & 3 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const commonJs = require("@rollup/plugin-commonjs");
const resolve = require("@rollup/plugin-node-resolve").default;
const typescript = require("@rollup/plugin-typescript");
const postcss = require("rollup-plugin-postcss");
const { terser } = require("rollup-plugin-terser");
const postcssUrl = require("postcss-url");

const HTML_TEMPLATE = ["treemap", "sunburst", "network"];
Expand All @@ -23,7 +22,6 @@ let args = require("yargs")
.option("open", { describe: "Open browser with stat files", boolean: true })
.option("e2e", { describe: "Exec e2e test", boolean: true })
.option("sourcemap", { describe: "Enable sourcemap", boolean: true })
.option("terser", { describe: "Enable terser", boolean: true })
.option("gzip", { describe: "Enable gzip", boolean: true })
.option("brotli", { describe: "Enable brotli", boolean: true })
.option("test", { describe: "Run tests", boolean: true })
Expand Down Expand Up @@ -84,7 +82,6 @@ const COMMON_PLUGINS = () =>
}),
],
}),
argv.terser ? terser() : null,
].filter(Boolean);

const onwarn = (warning, warn) => {
Expand Down
Loading

0 comments on commit 5f0775c

Please sign in to comment.