File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ SPECVERSION=$(shell perl -ne 'print $$1 if /^version: *([0-9.]+)/' $(SPEC))
3
3
BENCHINP? =bench/samples/README.md
4
4
JSMODULES =$(wildcard lib/* .js)
5
5
VERSION? =$(SPECVERSION )
6
+ UGLIFYJS =node_modules/uglify-js/bin/uglifyjs
6
7
7
8
.PHONY : dingus dist test bench bench-detailed npm lint clean update-spec
8
9
@@ -15,9 +16,12 @@ dist/commonmark.js: lib/index.js ${JSMODULES}
15
16
browserify --standalone commonmark $< -o $@
16
17
17
18
# 'npm install -g uglify-js' for the uglifyjs tool:
18
- dist/commonmark.min.js : dist/commonmark.js
19
- uglifyjs --version # version should be at least 2.5.0
20
- uglifyjs $< --compress keep_fargs=true,pure_getters=true --preamble " /* commonmark $( VERSION) https://github.com/jgm/CommonMark @license BSD3 */" > $@
19
+ dist/commonmark.min.js : dist/commonmark.js $(UGLIFYJS )
20
+ $(UGLIFYJS ) --version # version should be at least 2.5.0
21
+ $(UGLIFYJS ) $< --compress keep_fargs=true,pure_getters=true --preamble " /* commonmark $( VERSION) https://github.com/jgm/CommonMark @license BSD3 */" > $@
22
+
23
+ $(UGLIFYJS ) :
24
+ npm install uglify-js
21
25
22
26
update-spec :
23
27
curl ' https://raw.githubusercontent.com/jgm/CommonMark/master/spec.txt' > $(SPEC )
You can’t perform that action at this time.
0 commit comments