Skip to content
Newer
Older
100644 38 lines (30 sloc) 655 Bytes
35e2f6b @tj NODE makefile
tj authored
1
b8a589d @tj first new test
tj authored
2 DOCS = docs/*.md
3 HTMLDOCS = $(DOCS:.md=.html)
4 TESTS = test/*.js
c96b778 @tj dot reporter
tj authored
5 REPORTER = dot
939cf45 @tj Added `make docs`
tj authored
6
2932bf5 @tj make test / make init distinction
tj authored
7 test:
b8a589d @tj first new test
tj authored
8 @NODE_ENV=test ./node_modules/.bin/mocha \
9 --require should \
8ad17ab @tj app.configure() tests
tj authored
10 --reporter $(REPORTER) \
96f5279 @tj consider 20ms slow
tj authored
11 --slow 20 \
b8a589d @tj first new test
tj authored
12 --growl \
80e9ffb @tj Refactored router. Closes #639
tj authored
13 $(TESTS)
903f67a @tj Started utils.parseRange()
tj authored
14
eefe51c @tj removed manpages from make
tj authored
15 docs: $(HTMLDOCS)
0cdc836 @tj Generating TOC
tj authored
16 @ echo "... generating TOC"
17 @./support/toc.js docs/guide.html
939cf45 @tj Added `make docs`
tj authored
18
19 %.html: %.md
20 @echo "... $< -> $@"
a75e60a @tj fixed docs due to markdown-js not supporting html
tj authored
21 @markdown $< \
29641ae @tj Started new docs
tj authored
22 | cat docs/layout/head.html - docs/layout/foot.html \
0cdc836 @tj Generating TOC
tj authored
23 > $@
939cf45 @tj Added `make docs`
tj authored
24
0d4eaf0 @tj Added `make site`
tj authored
25 site:
26 rm -fr /tmp/docs \
27 && cp -fr docs /tmp/docs \
28 && git checkout gh-pages \
29 && cp -fr /tmp/docs/* . \
30 && echo "done"
31
e3aabdc @tj Added `make benchmark` for experimental continuous-benchmarking tool
tj authored
32 benchmark:
33 @./support/bench
34
939cf45 @tj Added `make docs`
tj authored
35 docclean:
36 rm -f docs/*.{1,html}
37
b8a589d @tj first new test
tj authored
38 .PHONY: site test benchmark docs docclean
Something went wrong with that request. Please try again.