File: 2000_nodejs.diff

package info (click to toggle)
python-mpld3 0.3git%2B20140910dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,804 kB
  • ctags: 1,095
  • sloc: python: 3,595; makefile: 187
file content (29 lines) | stat: -rw-r--r-- 928 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: use nodejs and node modules from Debian
Author: W. Martin Borgert <debacle@debian.org>
Origin: vendor
Last-Update: 2014-09-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
@@ -13,16 +13,16 @@
 	@npm test
 
 src/version.js: mpld3/__about__.py
-	@node bin/version $(VERSION) > $@
+	@nodejs bin/version $(VERSION) > $@
 
-mpld3/js/mpld3.v$(VERSION).js: $(shell node_modules/.bin/smash --ignore-missing --list src/mpld3.js) package.json
+mpld3/js/mpld3.v$(VERSION).js: $(shell smash --ignore-missing --list src/mpld3.js) package.json
 	@rm -f $@
-	node_modules/.bin/smash src/mpld3.js | node_modules/.bin/uglifyjs - -b indent-level=2 -o $@
+	smash src/mpld3.js | uglifyjs -b --indent 2 -o $@
 	@chmod a-w $@
 
 mpld3/js/mpld3.v$(VERSION).min.js: mpld3/js/mpld3.v$(VERSION).js bin/uglify
 	@rm -f $@
-	bin/uglify $< > $@
+	uglifyjs $< > $@
 	@chmod a-w $@
 
 clean: