1 | all:
|
2 | @npm install -d
|
3 | @cp scripts/githooks/* .git/hooks/
|
4 | @chmod -R +x .git/hooks/
|
5 |
|
6 | colors:
|
7 | @node tests/colors.test.js
|
8 |
|
9 |
|
10 | files := $(shell find . -name '*.js' ! -path "*node_modules/*")
|
11 | lint:
|
12 | @node_modules/.bin/jshint ${files}
|
13 |
|
14 | theme = $(HOME)/.spm/themes/one
|
15 | documentation:
|
16 | @cp README.md _docs/index.md
|
17 | @nico build --theme=${theme}
|
18 | @cp screen-shot.png _site/
|
19 |
|
20 | publish: clean documentation
|
21 | @ghp-import _site -p
|
22 |
|
23 | clean:
|
24 | @rm -fr _site
|
25 |
|
26 | server:
|
27 | @cp README.md _docs/index.md
|
28 | @nico server --theme=${theme}
|
29 |
|
30 | .PHONY: all build test lint coverage
|