UNPKG

603 BPlain TextView Raw
1
2TESTS = test/*.js
3SRC = $(shell find lib -name "*.js" -type f)
4UGLIFY_FLAGS = --no-mangle
5
6test:
7 @./support/expresso/bin/expresso \
8 -I lib \
9 -I support/coffee-script/lib \
10 -I support/markdown/lib \
11 -I support/sass/lib \
12 -I support \
13 $(TESTS)
14
15benchmark:
16 @node benchmarks/jade.js \
17 && node benchmarks/haml.js \
18 && node benchmarks/haml2.js \
19 && node benchmarks/ejs.js
20
21jade.js: $(SRC)
22 @node support/compile.js $^
23
24jade.min.js: jade.js
25 @uglifyjs $(UGLIFY_FLAGS) $< > $@ \
26 && du jade.min.js \
27 && du jade.js
28
29clean:
30 rm -f jade.js
31 rm -f jade.min.js
32
33.PHONY: test benchmark clean