[Pkg-javascript-commits] [node-rollup-plugin-replace] 01/02: Use rollup -- like upstream

Julien Puydt julien.puydt at laposte.net
Sun Feb 25 07:47:32 UTC 2018


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-rollup-plugin-replace.

commit 2e2e8cbc5ae8f7a6910a9148097255f8beb98ed7
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sun Feb 25 08:34:25 2018 +0100

    Use rollup -- like upstream
---
 debian/control   | 13 ++++++++++---
 debian/copyright |  1 -
 debian/install   |  2 +-
 debian/links     |  1 +
 debian/rules     |  5 ++---
 5 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/debian/control b/debian/control
index d7a11c1..32dc808 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,10 @@ Section: web
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Julien Puydt <julien.puydt at laposte.net>
-Build-Depends: debhelper (>= 10), node-es6-module-transpiler, node-magic-string, node-rollup-pluginutils
+Build-Depends: debhelper (>= 10),
+               node-magic-string,
+               node-rollup-pluginutils,
+               rollup
 Standards-Version: 4.1.0
 Homepage: https://github.com/rollup/rollup-plugin-replace
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-rollup-plugin-replace.git
@@ -11,10 +14,14 @@ Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-rollup-plugin-r
 
 Package: node-rollup-plugin-replace
 Architecture: all
-Depends: ${misc:Depends}, nodejs, node-magic-string (>= 0.15.2), node-rollup-pluginutils (>= 1.5.0), node-minimatch (>= 3.0.2)
+Depends: node-magic-string (>= 0.15.2),
+         node-minimatch (>= 3.0.2),
+         node-rollup-pluginutils (>= 1.5.0),
+         nodejs,
+         ${misc:Depends}
 Description: Rollup plugin to make string substitutions while bundling
  This rollup plugin replaces strings in files during the bundling stage ; you
  should ensure it is run early in the bundling pipeline so other plugins can
- apply optimisations such as dead code removal. 
+ apply optimisations such as dead code removal.
  .
  Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
index 58662ad..59942f7 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -31,4 +31,3 @@ License: Expat
  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
-
diff --git a/debian/install b/debian/install
index 1e6736f..8b7a24c 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,2 @@
+dist/* usr/lib/nodejs/rollup-plugin-replace/
 package.json usr/lib/nodejs/rollup-plugin-replace/
-index.js usr/lib/nodejs/rollup-plugin-replace/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..10bfd74
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/rollup-plugin-replace/rollup-plugin-replace.cjs.js usr/lib/nodejs/rollup-plugin-replace/index.js
diff --git a/debian/rules b/debian/rules
index 70c9abc..795f4d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,7 @@
 	dh $@
 
 override_dh_auto_build:
-	compile-modules convert -f commonjs src/index.js > index.js
-	sed -i index.js -e "s/exports.*/module.exports = replace;/g"
+	rollup -c
 
 override_dh_auto_clean:
-	rm -rf index.js
+	rm -rf dist

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-rollup-plugin-replace.git



More information about the Pkg-javascript-commits mailing list