Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 33 lines (26 sloc) 0.603 kb
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 30 31 32 33

TESTS = test/*.js
SRC = $(shell find lib -name "*.js" -type f)
UGLIFY_FLAGS = --no-mangle

test:
@./support/expresso/bin/expresso \
-I lib \
-I support/coffee-script/lib \
-I support/markdown/lib \
-I support/sass/lib \
-I support \
$(TESTS)

benchmark:
@node benchmarks/jade.js \
&& node benchmarks/haml.js \
&& node benchmarks/haml2.js \
&& node benchmarks/ejs.js

jade.js: $(SRC)
@node support/compile.js $^

jade.min.js: jade.js
@uglifyjs $(UGLIFY_FLAGS) $< > $@ \
&& du jade.min.js \
&& du jade.js

clean:
rm -f jade.js
rm -f jade.min.js

.PHONY: test benchmark clean
Something went wrong with that request. Please try again.