[Pkg-javascript-commits] [node-jsonselect] 13/20: minify js during build

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Oct 14 17:30:42 UTC 2016


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

praveen pushed a commit to branch master
in repository node-jsonselect.

commit d0f5811d128a2960d146cfa2fc11f1115fac6968
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Oct 14 21:48:22 2016 +0530

    minify js during build
---
 debian/changelog | 2 +-
 debian/control   | 1 +
 debian/copyright | 1 +
 debian/rules     | 9 +++++++--
 4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 28eab01..62e3cfd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-node-jsonselect (0.4.0+dfsg1-1) UNRELEASED; urgency=low
+node-jsonselect (0.4.0+dfsg2-1) UNRELEASED; urgency=low
 
   * Initial release (Closes: #840773)
 
diff --git a/debian/control b/debian/control
index 27bf3ca..e56f331 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
  debhelper (>= 9)
  , dh-buildinfo
  , nodejs
+ , node-uglify
 Standards-Version: 3.9.8
 Homepage: http://jsonselect.org
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-JSONSelect.git
diff --git a/debian/copyright b/debian/copyright
index 6bddbc7..5eb978a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -6,6 +6,7 @@ Files-Excluded:
   src/build/lib/jshint.js
   src/build/lib/jslint.js
   site/js/jquery-1.6.1.min.js
+  site/js/jquery.ba-hashchange.min.js
 
 Files: *
 Copyright: 2016 Lloyd Hilaiel <lloyd at hilaiel.com> (http://lloyd.io)
diff --git a/debian/rules b/debian/rules
index de57af0..b14b928 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,14 @@
 %:
 	dh $@
 
-#override_dh_auto_build:
+override_dh_auto_build:
+	dh_auto_build
+	uglifyjs -o site/js/jquery.ba-hashchange.min.js \
+	debian/missing-sources/jquery.ba-hashchange.js
 
 #override_dh_auto_test:
 
-
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f site/js/jquery.ba-hashchange.min.js
 

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



More information about the Pkg-javascript-commits mailing list