-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
47 lines (34 loc) · 1007 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
36
37
38
39
40
41
42
43
44
45
46
47
COLOR = \033[1;33m
COLOR_RESET = \033[0m
default: build
bench: build
@NODE_ENV=production go run benchmarks/runner.go
clean:
@if [ -a lib ] ; \
then \
rm -r lib/ ; \
fi;
build:
@echo "Building src..."
@node_modules/.bin/babel src -d lib
release:
make clean
make test
watch:
@echo "Auto building..."
node_modules/.bin/babel src -d lib
test: build
@echo "\n$(COLOR)Running tests...$(COLOR_RESET)"
@node_modules/.bin/jasmine ${file}
@echo "\n"
test-ci: build
@node_modules/.bin/istanbul cover -x "**/spec/**" node_modules/jasmine/bin/jasmine.js
doc-watch: doc-build
node_modules/.bin/gitbook serve
doc-build:
@rm -rf _book
node_modules/.bin/gitbook install
node_modules/.bin/gitbook build
doc: doc-build
cd _book && cp ../CNAME . && git init && git commit --allow-empty -m "make doc" && git checkout -b gh-pages && git add . && git commit -am "make doc" && git push git@github.com:spirit-js/spirit gh-pages --force
.PHONY: default build test watch bench test-ci clean release