[Pkg-javascript-commits] [json-js] 10/18: Generate and include source map. Build-depend on node-source-map.

Jonas Smedegaard dr at jones.dk
Wed Aug 31 09:48:46 UTC 2016


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

js pushed a commit to branch master
in repository json-js.

commit c741df608828f5e23e3c278fe93fbac51f1dc3d3
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Wed Aug 31 11:35:51 2016 +0200

    Generate and include source map. Build-depend on node-source-map.
---
 debian/rules | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index cfc3f7f..3dc96d3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,21 +24,21 @@ libname = json
 libdirname = $(libname)
 pkg = libjs-$(libname)
 
-CDBS_BUILD_DEPENDS += , uglifyjs
+CDBS_BUILD_DEPENDS +=, uglifyjs, node-source-map
 
 DEB_UPSTREAM_URL = https://github.com/douglascrockford/JSON-js/archive
 
 js-reg = $(wildcard *.js)
-js-min = $(js-reg:%.js=debian/%.min.js)
+js-min = $(js-reg:js=min.js)
 js-destdir = /usr/share/javascript/$(libdirname)
 
-DEB_DH_INSTALL_ARGS_DEFAULT = $(js-reg) $(js-min) $(js-destdir)
+DEB_DH_INSTALL_ARGS_DEFAULT = $(js-reg) $(js-min) $(js-min:js=map) $(js-destdir)
 
 build/$(pkg):: $(js-min)
-$(js-min): debian/%.min.js: %.js
-	uglifyjs -o $@ $<
+$(js-min): %.min.js: %.js
+	uglifyjs --source-map $*.min.map -o $@ $<
 clean::
-	rm -f $(js-min)
+	rm -f $(js-min) $(js-min:js=map)
 
 binary-fixup/$(pkg)::
 	chmod -x $(cdbs_curdestdir)/usr/share/javascript/json/*

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



More information about the Pkg-javascript-commits mailing list