[Pkg-javascript-commits] [node-q] 13/20: Minify .js files & also install queue.js.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sun Mar 1 12:36:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository node-q.
commit b45934ecca40666b2b7608d6e9306d80aa61deea
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Feb 28 23:40:26 2015 +0100
Minify .js files & also install queue.js.
---
debian/control | 3 ++-
debian/libjs-q.install | 4 ++++
debian/node-q.install | 1 +
debian/rules | 8 ++++++++
4 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index b7b069a..4fea5e8 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Section: web
Priority: extra
Build-Depends: debhelper (>= 9),
dh-buildinfo,
- nodejs
+ nodejs,
+ node-uglify
Standards-Version: 3.9.6
Vcs-Browser: http://anonscm.debian.org/cgit/pkg-javascript/node-q.git
Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-q.git
diff --git a/debian/libjs-q.install b/debian/libjs-q.install
new file mode 100644
index 0000000..cf2b899
--- /dev/null
+++ b/debian/libjs-q.install
@@ -0,0 +1,4 @@
+q.js usr/share/javascript/q/
+q.min.js usr/share/javascript/q/
+queue.js usr/share/javascript/q/
+queue.min.js usr/share/javascript/q/
diff --git a/debian/node-q.install b/debian/node-q.install
index 96db01d..c8dc2bb 100644
--- a/debian/node-q.install
+++ b/debian/node-q.install
@@ -1,2 +1,3 @@
package.json usr/lib/nodejs/q/
q.js usr/lib/nodejs/q/
+queue.js usr/lib/nodejs/q/
diff --git a/debian/rules b/debian/rules
index 0c06312..a38aa44 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,3 +7,11 @@
%:
dh $@
+override_dh_clean:
+ dh_clean q.min.js queue.min.js
+
+override_dh_auto_build:
+ # Minify Javascript
+ uglifyjs -o q.min.js q.js
+ uglifyjs -o queue.min.js queue.js
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-q.git
More information about the Pkg-javascript-commits
mailing list