[Pkg-javascript-commits] [node-deep-eql] 07/10: Build deep-eql using browserify-lite

Sruthi Chandran srud-guest at moszumanska.debian.org
Sat Nov 5 14:21:18 UTC 2016


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

srud-guest pushed a commit to branch master
in repository node-deep-eql.

commit 89c462b19ef8c208216541eefd2bfd048251bad1
Author: Sruthi <srud at disroot.org>
Date:   Sat Nov 5 19:40:59 2016 +0530

    Build deep-eql using browserify-lite
---
 debian/control |  2 ++
 debian/rules   | 11 ++++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index c317e2a..2915b23 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,8 @@ Build-Depends:
  debhelper (>= 9)
  , dh-buildinfo
  , nodejs
+ , node-browserify-lite
+ , node-uglify
 Standards-Version: 3.9.8
 Homepage: https://github.com/chaijs/deep-eql#readme
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-deep-eql.git
diff --git a/debian/rules b/debian/rules
index de57af0..5e746c6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,10 +4,19 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export NODE_PATH=/usr/lib/nodejs
+
 %:
 	dh $@
 
-#override_dh_auto_build:
+override_dh_auto_build:
+	dh_auto_build
+	browserify-lite ./index.js --standalone deepEqual --outfile deep-eql.tmp.js
+	uglifyjs deep-eql.tmp.js  -o deep-eql.js
+	
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f deep-eql.tmp.js deep-eql.js
 
 #override_dh_auto_test:
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-deep-eql.git



More information about the Pkg-javascript-commits mailing list