Codebase list node-d3-chord / 4758c41
Use node-rollup-plugin-terser (now available in the archive) Pirate Praveen 3 years ago
5 changed file(s) with 2 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
88 , pkg-js-tools
99 , node-tape
1010 , rollup
11 , uglifyjs.terser
11 , node-rollup-plugin-terser
1212 , node-d3-array (>= 1)
1313 , node-d3-path (>= 1)
1414 Standards-Version: 4.4.1
+0
-32
debian/patches/remove-unsupported-syntax.patch less more
0 This syntax is not supported in packaged rollup/node yet.
1 Minified file is generated by uglifyjs.terser command line.
2
3 --- a/rollup.config.js
4 +++ b/rollup.config.js
5 @@ -1,4 +1,3 @@
6 -import {terser} from "rollup-plugin-terser";
7 import * as meta from "./package.json";
8
9 const config = {
10 @@ -17,20 +16,5 @@
11 };
12
13 export default [
14 - config,
15 - {
16 - ...config,
17 - output: {
18 - ...config.output,
19 - file: `dist/${meta.name}.min.js`
20 - },
21 - plugins: [
22 - ...config.plugins,
23 - terser({
24 - output: {
25 - preamble: config.output.banner
26 - }
27 - })
28 - ]
29 - }
30 + config
31 ];
33
44 --- a/rollup.config.js
55 +++ b/rollup.config.js
6 @@ -9,7 +9,7 @@
6 @@ -10,7 +10,7 @@
77 format: "umd",
88 indent: false,
99 extend: true,
0 remove-unsupported-syntax.patch
10 reproducible_build.diff
00 #!/usr/bin/make -f
11 # -*- makefile -*-
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
52
63 %:
74 dh $@ --with nodejs
85
96 override_dh_auto_build:
107 rollup -c
11 uglifyjs.terser dist/d3-chord.js -o dist/d3-chord.min.js