-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 679 Bytes
/
Makefile
File metadata and controls
36 lines (24 loc) · 679 Bytes
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
THEME = $(HOME)/.spm/themes/arale
build-doc:
@nico build -C $(THEME)/nico.js
publish-doc: clean build-doc
@spm publish --doc _site -s spmjs
server:
@nico server -C $(THEME)/nico.js
watch:
@nico server -C $(THEME)/nico.js --watch
clean:
@rm -fr _site
runner = _site/tests/runner.html
test-src:
@mocha-browser ${runner} -S
test-dist:
@mocha-browser ${runner}?dist -S
test: test-src test-dist
output = _site/coverage.html
coverage: build-doc
@rm -fr _site/src-cov
@jscoverage --encoding=utf8 src _site/src-cov
@mocha-browser ${runner}?cov -S -R html-cov > ${output}
@echo "Build coverage to ${output}"
.PHONY: build-doc publish-doc server clean test coverage