[Pkg-javascript-commits] [node-rollup-plugin-buble] 01/01: use babel to build

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Jan 19 15:28:26 UTC 2018


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

praveen pushed a commit to branch master
in repository node-rollup-plugin-buble.

commit be100552919fe9c081228225202933635b3f2a10
Author: Pirate Praveen <praveen at debian.org>
Date:   Fri Jan 19 19:55:13 2018 +0530

    use babel to build
---
 debian/control | 7 +++++--
 debian/rules   | 4 ++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 20bd155..2d68b98 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,11 @@ Section: javascript
 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-buble, node-rollup-pluginutils
-Standards-Version: 4.1.1
+Build-Depends: debhelper (>= 10)
+ , node-rollup-pluginutils
+ , babeljs
+ , node-babel-preset-es2015
+Standards-Version: 4.1.3
 Homepage: https://gitlab.com/Rich-Harris/rollup-plugin-buble
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-rollup-plugin-buble.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-rollup-plugin-buble.git
diff --git a/debian/rules b/debian/rules
index dbc5be5..e0f4918 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,8 @@
 	dh $@
 
 override_dh_auto_build:
-	compile-modules convert -f commonjs -I/usr/lib/nodejs/buble/dist src/index.js > index.js
-	sed -i index.js -e "s/exports.*/module.exports = buble;/g"
+	babeljs --presets=es2015 src/index.js -o index.js
+	sed -i index.js -e "s/^exports.*/module.exports = buble;/g"
 
 override_dh_auto_clean:
 	rm -rf index.js

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



More information about the Pkg-javascript-commits mailing list