forked from aralejs/nico-arale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (24 loc) · 746 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
THEME = $(HOME)/.spm/themes/arale
build-doc:
@nico build -v -C $(THEME)/nico.js
debug:
@nico server -v -C $(THEME)/nico.js --watch debug
server:
@nico server -v -C $(THEME)/nico.js
watch:
@nico server -v -C $(THEME)/nico.js --watch
publish: clean build-doc
@ghp-import _site
@git push origin gh-pages
clean:
@rm -fr _site
reporter = spec
url = tests/runner.html
test:
@mocha-phantomjs --reporter=${reporter} http://127.0.0.1:8000/$(url)
coverage:
@rm -fr _site/src-cov
@jscoverage --encoding=utf8 src _site/src-cov
@$(MAKE) test reporter=json-cov url=tests/runner.html?coverage=1 | node $(THEME)/html-cov.js > coverage.html
@echo "Build coverage to coverage.html"
.PHONY: build-doc debug server publish clean test coverage