UNPKG

710 BPlain TextView Raw
1REPORTER = spec
2all: test
3
4test:
5 ./node_modules/mocha/bin/mocha --reporter $(REPORTER)
6
7test-cov: lib-cov
8 @$(MAKE) REPORTER=html-cov > gen/coverage.html
9
10lib-cov:
11 jscoverage hearts hearts-cov
12
13stats:
14 gitstats . gen/stats
15
16setup:
17 npm install
18 brew install haskell-platform
19 brew install go
20 brew install thrift --with-haskell --HEAD
21 gem install thrift
22
23update-thrift:
24 git submodule init
25 git submodule update
26
27package-thrift:
28 mkdir -p node_modules
29 rm -rf node_modules/thrift
30 cp -r vendor/thrift/lib/nodejs node_modules/thrift
31 git add -A -f node_modules/thrift
32 cp vendor/thrift/lib/js/thrift.js web/public/javascripts/thrift.js
33 git add web/public/javascripts/thrift.js
34
35.PHONY: test stats clean all