Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (30 sloc) 0.831 kB
b940c7c @tj Initial commit
tj authored
1
04204b1 @tj Added client-side support
tj authored
2 SRC = $(shell find lib -name "*.js" -type f)
ce0fa62 @reedriley Added 'uglifyjs' as an explicit devDependency.
reedriley authored
3 UGLIFY = $(shell find node_modules -name "uglifyjs" -type f)
7063e38 @tj Added test coverage support
tj authored
4 UGLIFY_FLAGS = --no-mangle
5 REPORTER = dot
a9a5fd5 @tj Added install docs / seed.yml
tj authored
6
74e1344 @tj runtime.js make targets
tj authored
7 all: jade.min.js runtime.min.js
8
b940c7c @tj Initial commit
tj authored
9 test:
064aa7c @tj use mocha instead of expresso
tj authored
10 @./node_modules/.bin/mocha \
d533f9e @tj mocha.opts
tj authored
11 --reporter $(REPORTER)
af65d7c @tj Added `make test-cov`
tj authored
12
7063e38 @tj Added test coverage support
tj authored
13 test-cov: lib-cov
14 JADE_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
15
16 lib-cov:
17 jscoverage lib lib-cov
18
f88f9b6 @tj started benchmarks
tj authored
19 benchmark:
4523886 @tj Added `make benchmark` for continuous-bench
tj authored
20 @node support/benchmark
f88f9b6 @tj started benchmarks
tj authored
21
04204b1 @tj Added client-side support
tj authored
22 jade.js: $(SRC)
23 @node support/compile.js $^
24
25 jade.min.js: jade.js
ce0fa62 @reedriley Added 'uglifyjs' as an explicit devDependency.
reedriley authored
26 @$(UGLIFY) $(UGLIFY_FLAGS) $< > $@ \
dafb7fb @ixti Improve report of disk-usage on minified versions
ixti authored
27 && du -bh jade.js jade.min.js
04204b1 @tj Added client-side support
tj authored
28
74e1344 @tj runtime.js make targets
tj authored
29 runtime.js: lib/runtime.js
30 @cat support/head.js $< support/foot.js > $@
31
32 runtime.min.js: runtime.js
ce0fa62 @reedriley Added 'uglifyjs' as an explicit devDependency.
reedriley authored
33 @$(UGLIFY) $(UGLIFY_FLAGS) $< > $@ \
dafb7fb @ixti Improve report of disk-usage on minified versions
ixti authored
34 && du -bh runtime.js runtime.min.js
74e1344 @tj runtime.js make targets
tj authored
35
04204b1 @tj Added client-side support
tj authored
36 clean:
37 rm -f jade.js
38 rm -f jade.min.js
74e1344 @tj runtime.js make targets
tj authored
39 rm -f runtime.js
40 rm -f runtime.min.js
04204b1 @tj Added client-side support
tj authored
41
25e9a85 @tj remove jade manpage
tj authored
42 .PHONY: test-cov test benchmark clean
Something went wrong with that request. Please try again.