-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
38 lines (28 loc) · 852 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
MOCHA_EXEC=node_modules/.bin/_mocha
ISTANBUL_EXEC=node_modules/.bin/istanbul
all:
npm -g i .
version:
./scripts/versions.js
help:
./scripts/help.sh
docs: docsghpages
firedoc build ./lib --markdown
docsghpages:
-rm -rf ./docs-ghpages
-mkdir -p ./docs-ghpages/en
-mkdir -p ./docs-ghpages/zh
firedoc build ./ --lang en -D 'docs-ghpages/en' --theme notab -Hv
firedoc build ./ --lang zh -D 'docs-ghpages/zh' --theme notab -Hv
cp -r ./docs-ghpages/en/* ./docs-ghpages/
sh ./scripts/ghpages.sh
notab:
node bin/firedoc-build ./lib --en -o 'docs-ghpages/en' --theme notab
sh ./scripts/ghpages.sh
deploydocs: version
./scripts/docs.sh
test:
NODE_ENV=test $(ISTANBUL_EXEC) cover $(MOCHA_EXEC) -- -R spec --timeout 3000 ./test/test-*.js
test.nocoverage:
NODE_ENV=test $(MOCHA_EXEC) --timeout 3000 ./test/test-*.js
.PHONY: docs clean test