Package list node-d3-shape / 26306f9
Use node-rollup-plugin-terser (now available in the archive) Pirate Praveen 11 months ago
5 changed file(s) with 2 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
1010 , node-tape
1111 , pkg-js-tools (>= 0.9.20~)
1212 , rollup
13 , uglifyjs.terser
13 , node-rollup-plugin-terser
1414 Standards-Version: 4.5.1
1515 Vcs-Browser: https://salsa.debian.org/js-team/node-d3-shape
1616 Vcs-Git: https://salsa.debian.org/js-team/node-d3-shape.git
+0
-32
debian/patches/remove-unsupported-syntax.patch less more
0 Description: Remove unsupported syntax
1 This syntax is not supported in packaged rollup/node yet.
2 Minified file is generated by uglifyjs.terser command line.
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-shape.js -o dist/d3-shape.min.js