UNPKG

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