[Pkg-javascript-commits] [backbone] 13/14: Generate and include source map. Build-depend on node-source-map.

Jonas Smedegaard dr at jones.dk
Tue Aug 30 20:55:36 UTC 2016


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

js pushed a commit to branch master
in repository backbone.

commit 3eeb3bfd55844b8870b81129038e7278da6afa4a
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Tue Aug 30 22:49:18 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 d4f463f..01795e5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ lib = $(DEB_SOURCE_PACKAGE)
 pkg-js = libjs-$(lib)
 pkg-node = node-$(lib)
 js-reg = $(lib).js
-js-min = debian/$(lib).min.js
+js-min = $(lib).min.js
 js-nodestem = $(lib)
 js-destdir = /usr/share/javascript/$(lib)
 node-destdir = /usr/lib/nodejs/$(lib)
@@ -31,7 +31,7 @@ node-destdir = /usr/lib/nodejs/$(lib)
 # Minimal requirement according to upstream index.html
 underscore_minver = 1.7.0~dfsg
 
-CDBS_BUILD_DEPENDS +=, node-uglify
+CDBS_BUILD_DEPENDS +=, node-uglify, node-source-map
 CDBS_BUILD_DEPENDS +=, coffeescript, libjs-json, libjs-jquery, libjs-qunit
 CDBS_BUILD_DEPENDS +=, libjs-underscore (>= $(underscore_minver))
 CDBS_BUILD_DEPENDS +=, node-underscore (>= $(underscore_minver))
@@ -52,16 +52,16 @@ DEB_COPYRIGHT_EXTRACT_EXTS = jpg png ttf woff
 DEB_COPYRIGHT_CHECK_IGNORE_EXTS = eot
 
 build/$(pkg-js):: $(js-min)
-$(js-min): debian/%.min.js: %.js
-	uglifyjs -o $@ $<
+$(js-min): %.min.js: %.js
+	uglifyjs --source-map $*.min.map -o $@ $<
 	$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,coffee test/*.coffee)
 #	$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,phantomjs test/vendor/runner.js test/index.html?noglobals=true)
 clean::
-	rm -f $(js-min)
+	rm -f $(js-min) $(js-min:js=map)
 
 DEB_INSTALL_DOCS_ALL += README.md index.html
 DEB_INSTALL_EXAMPLES_$(pkg-js) += examples/*
 
-DEB_DH_INSTALL_ARGS_$(pkg-js) = $(js-reg) $(js-min) $(js-destdir)
+DEB_DH_INSTALL_ARGS_$(pkg-js) = $(js-reg) $(js-min) $(js-min:js=map) $(js-destdir)
 DEB_DH_INSTALL_ARGS_$(pkg-node) = package.json $(node-destdir)
 DEB_DH_LINK_$(pkg-node) = $(js-destdir)/$(js-nodestem).js $(node-destdir)/index.js

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



More information about the Pkg-javascript-commits mailing list