-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
43 lines (29 loc) · 905 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
THEME = $(HOME)/.spm/themes/arale
build-doc:
@nico build -C $(THEME)/nico.js
debug:
@nico server -C $(THEME)/nico.js --watch debug
server:
@nico server -C $(THEME)/nico.js
watch:
@nico server -C $(THEME)/nico.js --watch
publish-doc: clean build-doc
@rm -fr _site/sea-modules
@spm publish --doc _site
clean:
@rm -fr _site
reporter = spec
url = tests/runner.html
test-task:
@mocha-phantomjs --reporter=${reporter} http://127.0.0.1:8000/${url}
test-src:
@node $(THEME)/server.js _site $(MAKE) test-task
test-dist:
@$(MAKE) test-src url=tests/runner.html?dist
test: test-src test-dist
coverage:
@rm -fr _site/src-cov
@jscoverage --encoding=utf8 src _site/src-cov
@$(MAKE) test-task reporter=json-cov url=tests/runner.html?cov | node $(THEME)/html-cov.js > tests/coverage.html
@echo "Build coverage to tests/coverage.html"
.PHONY: build-doc debug server publish clean test coverage