Use node-rollup-plugin-terser (now available in the archive)
Pirate Praveen
3 years ago
11 | 11 |
, node-d3-interpolate
|
12 | 12 |
, node-tape
|
13 | 13 |
, pkg-js-tools (>= 0.8.11)
|
14 | |
, uglifyjs.terser
|
|
14 |
, node-rollup-plugin-terser
|
15 | 15 |
Standards-Version: 4.5.1
|
16 | 16 |
Vcs-Browser: https://salsa.debian.org/js-team/node-d3-scale-chromatic
|
17 | 17 |
Vcs-Git: https://salsa.debian.org/js-team/node-d3-scale-chromatic.git
|
debian/patches/fix_rollup_config.diff
less
more
0 | |
Description: patch to fix rollup.config.js
|
1 | |
--- a/rollup.config.js
|
2 | |
+++ b/rollup.config.js
|
3 | |
@@ -1,4 +1,3 @@
|
4 | |
-import {terser} from "rollup-plugin-terser";
|
5 | |
import * as meta from "./package.json";
|
6 | |
|
7 | |
const config = {
|
8 | |
@@ -18,19 +17,4 @@
|
9 | |
|
10 | |
export default [
|
11 | |
config,
|
12 | |
- {
|
13 | |
- ...config,
|
14 | |
- output: {
|
15 | |
- ...config.output,
|
16 | |
- file: `dist/${meta.name}.min.js`
|
17 | |
- },
|
18 | |
- plugins: [
|
19 | |
- ...config.plugins,
|
20 | |
- terser({
|
21 | |
- output: {
|
22 | |
- preamble: config.output.banner
|
23 | |
- }
|
24 | |
- })
|
25 | |
- ]
|
26 | |
- }
|
27 | |
-];
|
28 | |
+];
|
29 | |
\ No newline at end of file
|
1 | 1 |
Author: Chris Lamb <lamby@debian.org>
|
2 | 2 |
Last-Update: 2019-06-22
|
3 | 3 |
|
4 | |
--- node-d3-scale-chromatic-1.3.3.orig/rollup.config.js
|
5 | |
+++ node-d3-scale-chromatic-1.3.3/rollup.config.js
|
6 | |
@@ -9,7 +9,7 @@ const config = {
|
|
4 |
--- a/rollup.config.js
|
|
5 |
+++ b/rollup.config.js
|
|
6 |
@@ -10,7 +10,7 @@
|
7 | 7 |
format: "umd",
|
8 | 8 |
indent: false,
|
9 | 9 |
extend: true,
|
0 | |
fix_rollup_config.diff
|
1 | 0 |
reproducible_build.diff
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
# -*- makefile -*-
|
2 | |
|
3 | |
# Uncomment this to turn on verbose mode.
|
4 | |
#export DH_VERBOSE=1
|
5 | 2 |
|
6 | 3 |
%:
|
7 | 4 |
dh $@ --with nodejs
|
8 | 5 |
|
9 | 6 |
override_dh_auto_build:
|
10 | 7 |
rollup -c
|
11 | |
uglifyjs.terser dist/d3-scale-chromatic.js -o dist/d3-scale-chromatic.min.js
|