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