Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (28 sloc) 0.75 kb
2312b3b remove useless code of class, add tests for class
Hsiaoming Yang authored
1 specs := $(shell find ./tests -name '*.test.js' ! -path "*node_modules/*")
2 reporter = spec
3 opts =
4 test:
5 @rm -fr tests/_site
6 @node_modules/.bin/mocha --reporter ${reporter} ${opts} ${specs}
7
8 out = _site/coverage.html
9 coverage:
10 @rm -fr lib-cov
11 @jscoverage lib lib-cov
12 @JS_COVERAGE=1 $(MAKE) test reporter=html-cov > ${out}
13 @echo
14 @rm -fr lib-cov
15 @echo "Built Report to ${out}"
16 @echo
17
d36496a for documentation
Hsiaoming Yang authored
18 theme = $(HOME)/.spm/themes/one
2312b3b remove useless code of class, add tests for class
Hsiaoming Yang authored
19 documentation:
d36496a for documentation
Hsiaoming Yang authored
20 @cp README.md _docs/index.md
21 @nico build -C nico.json -q --theme=${theme}
2312b3b remove useless code of class, add tests for class
Hsiaoming Yang authored
22
d36496a for documentation
Hsiaoming Yang authored
23 server: documentation
24 @nico server -C nico.json -v --theme=${theme}
2312b3b remove useless code of class, add tests for class
Hsiaoming Yang authored
25
26 publish: clean documentation coverage
27 @ghp-import _site
28 @git push origin gh-pages
29
30 clean:
31 @rm -fr tests/_site
32 @rm -fr _site
33
34 .PHONY: all build test lint coverage
Something went wrong with that request. Please try again.