[Pkg-javascript-commits] [node-tinycon] 06/09: also remove from the tarball the prebuilt minified file

Paolo Greppi paolog-guest at moszumanska.debian.org
Wed Dec 21 08:50:01 UTC 2016


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

paolog-guest pushed a commit to branch master
in repository node-tinycon.

commit 5845d3be34f5cafcd03bd137bfe13d8ea75ffbb9
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Wed Dec 21 08:43:38 2016 +0000

    also remove from the tarball the prebuilt minified file
    
    and generate it with uglify
---
 debian/changelog | 7 ++++---
 debian/control   | 1 +
 debian/copyright | 9 ++++++---
 debian/install   | 4 +++-
 debian/rules     | 9 +++++----
 debian/watch     | 2 +-
 6 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0d5f9ad..21c4117 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,8 @@
-node-tinycon (0.6.5+ds-1) unstable; urgency=low
+node-tinycon (0.6.5+ds1-1) unstable; urgency=low
 
   * Initial release (Closes: #721611)
-  * Repackage to remove file provided by node-requirejs package.
+  * Repackage to remove file provided by node-requirejs package and to
+    remove the prebuilt minified file.
 
- -- Paolo Greppi <paolo.greppi at libpf.com>  Tue, 20 Dec 2016 18:03:43 +0000
+ -- Paolo Greppi <paolo.greppi at libpf.com>  Wed, 21 Dec 2016 08:41:40 +0000
 
diff --git a/debian/control b/debian/control
index 7f8c0b0..3527690 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Paolo Greppi <paolo.greppi at libpf.com>
 Build-Depends:
  debhelper (>= 9)
  , dh-buildinfo
+ , node-uglify
  , nodejs
 Standards-Version: 3.9.8
 Homepage: https://github.com/tommoor/tinycon
diff --git a/debian/copyright b/debian/copyright
index e81e240..fb711c2 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,9 +2,12 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: tinycon
 Upstream-Contact: Tom Moor <tom.moor at gmail.com> (http://tommoor.com)
 Source: https://github.com/tommoor/tinycon
-Files-Excluded: examples/require.js
-Comment: file is provided as /usr/lib/nodejs/requirejs/require.min.js by
- the node-requirejs package
+Files-Excluded:
+ examples/require.js
+ tinycon.min.js
+Comment:
+ examples/requirejs: file is provided by the node-requirejs package
+ tinycon.min.js: minifed file must be generated by the build script
 
 Files: *
 Copyright: 2015 Tom Moor
diff --git a/debian/install b/debian/install
index 749e7a8..bad2f10 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,4 @@
 package.json usr/lib/nodejs/tinycon/
-*.js usr/lib/nodejs/tinycon/
+tinycon.js usr/lib/nodejs/tinycon/
+tinycon.min.js usr/lib/nodejs/tinycon/
+tinycon.min.map usr/lib/nodejs/tinycon/
diff --git a/debian/rules b/debian/rules
index de57af0..06884d8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,10 @@
 %:
 	dh $@
 
-#override_dh_auto_build:
+override_dh_auto_build:
+	dh_auto_build
+	uglifyjs -o tinycon.min.js \
+	--source-map tinycon.min.map \
+	tinycon.js
 
 #override_dh_auto_test:
-
-
-
diff --git a/debian/watch b/debian/watch
index 061c683..aff91f0 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,5 +1,5 @@
 version=3
-opts=repacksuffix=+ds,\
+opts=repacksuffix=+ds1,\
 dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
 filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-fined-$1.tar.gz/ \
  https://github.com/tommoor/tinycon/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list