[Pkg-javascript-commits] [node-es6-promise] 03/05: build using babel
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Dec 5 04:57:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch babel
in repository node-es6-promise.
commit 9a6d20ae33c8a2092def53c79d0f29f2ad8841e3
Author: Pirate Praveen <praveen at debian.org>
Date: Tue Dec 5 09:52:20 2017 +0530
build using babel
---
debian/control | 10 +++++++---
debian/patches/series | 1 +
debian/patches/use-babel.patch | 10 ++++++++++
debian/rules | 5 ++++-
4 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/debian/control b/debian/control
index b51996f..1c4a8c6 100644
--- a/debian/control
+++ b/debian/control
@@ -1,10 +1,14 @@
Source: node-es6-promise
-Section: web
+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 (>= 9), nodejs, node-es6-module-transpiler, uglifyjs
-Standards-Version: 3.9.8
+Build-Depends: debhelper (>= 9)
+ , nodejs
+ , node-babel-cli
+ , node-babel-preset-es2015
+ , uglifyjs
+Standards-Version: 4.1.1
Homepage: https://github.com/jakearchibald/es6-promise
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-es6-promise.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-es6-promise.git
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7937310
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-babel.patch
diff --git a/debian/patches/use-babel.patch b/debian/patches/use-babel.patch
new file mode 100644
index 0000000..2cb01ba
--- /dev/null
+++ b/debian/patches/use-babel.patch
@@ -0,0 +1,10 @@
+--- /dev/null
++++ b/.babelrc
+@@ -0,0 +1,7 @@
++{
++ "presets": [
++ ["es2015", {
++ "loose": false,
++ }],
++ ],
++}
diff --git a/debian/rules b/debian/rules
index 04be571..aba4db9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,5 +8,8 @@
override_dh_auto_build:
mkdir dist
- compile-modules convert -f bundle -o dist/es6-promise.js lib/es6-promise.umd.js
+ babeljs lib/es6-promise.js -o dist/es6-promise.js
uglifyjs dist/es6-promise.js > dist/es6-promise.min.js
+
+override_dh_auto_clean:
+ rm -rf dist
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-es6-promise.git
More information about the Pkg-javascript-commits
mailing list