-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·48 lines (32 loc) · 1021 Bytes
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
TESTS = $(shell find test/ -name '*.test.js')
BROWSERIFY = browserify
all: build build-dev
test:
@time ./node_modules/.bin/mocha $(T) $(TESTS)
test-dbg:
@time ./node_modules/.bin/mocha $(T) -t 1000000 --debug-brk --async-only $(TESTS)
test-dbg-2:
@time ./node_modules/.bin/mocha $(T) -t 1000000 --debug-brk --async-only $(TESTS) --grep "MWS individual exception handler work"
test2:
@time ./node_modules/.bin/mocha $(T) $(TESTS) --grep "MWS individual exception handler work"
bench:
@time node ./benchmark/run.js
build:
mkdir -p dist
$(BROWSERIFY) browser.js -o dist/pipeline.js
build-dev:
mkdir -p dist
$(BROWSERIFY) browser.js --debug -o dist/pipeline.dev.js
coverage:
rm -rf lib-cov
jscoverage lib lib-cov
COVERAGE=1 ./node_modules/.bin/mocha -R html-cov $(TESTS) > coverage.html
docs: docclean gendocs
ghpages:
git checkout gh-pages
gendocs:
./node_modules/doxx/bin/doxx --source lib --target docs
rsync -a --include='*.png' pics/stages ./docs/
docclean:
rm -rf ./docs/*
.PHONY: test