Skip to content
Myr

Makefile

This file

Path

Makefile

44 lines · 816 bytes

Last changed by

Added mocha test coverage supportTJ Holowaychukbefore adoptionb6ee5fa

History of this file

Take it

The walk stopped after 200 commits: lines older than 2e22887 point at it.

docsTj Holowaychukbefore adoption2e22887

lines 1–7why, one step back
1
2DOCS = docs/*.md3HTMLDOCS = $(DOCS:.md=.html)4REPORTER = dot56test:7 @NODE_ENV=test ./node_modules/.bin/mocha \

mocha.optsTj Holowaychukbefore adoptiondd7af29

line 8why, one step back
8 --reporter $(REPORTER)

docsTj Holowaychukbefore adoption2e22887

line 9why, one step back
9

added first batch of acceptance tests for examplesTj Holowaychukbefore adoption29ef828

line 10why, one step back
10test-acceptance:

mocha.optsTj Holowaychukbefore adoptiondd7af29

lines 11–13why, one step back
11 @NODE_ENV=test ./node_modules/.bin/mocha \
12 --reporter spec \13 test/acceptance/*.js

added first batch of acceptance tests for examplesTj Holowaychukbefore adoption29ef828

line 14why, one step back
14

docsTj Holowaychukbefore adoption2e22887

lines 15–24why, one step back
15docs: $(HTMLDOCS)
16 @ echo "... generating TOC"17 @./support/toc.js docs/guide.html1819%.html: %.md20 @echo "... $< -> $@"21 @markdown $< \22 | cat docs/layout/head.html - docs/layout/foot.html \23 > $@24

Added mocha test coverage supportTJ Holowaychukbefore adoptionb6ee5fa

lines 25–30why, one step back
25test-cov: lib-cov
26 @EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html2728lib-cov:29 @jscoverage lib lib-cov30

docsTj Holowaychukbefore adoption2e22887

lines 31–43why, one step back
31site:
32 rm -fr /tmp/docs \33 && cp -fr docs /tmp/docs \34 && git checkout gh-pages \35 && cp -fr /tmp/docs/* . \36 && echo "done"3738benchmark:39 @./support/bench4041docclean:42 rm -f docs/*.{1,html}43

added first batch of acceptance tests for examplesTj Holowaychukbefore adoption29ef828

line 44why, one step back
44.PHONY: site test benchmark docs docclean test-acceptance