1 | REPORTER = spec
|
2 | all: test
|
3 |
|
4 | test:
|
5 | ./node_modules/mocha/bin/mocha --reporter $(REPORTER)
|
6 |
|
7 | test-cov: lib-cov
|
8 | @$(MAKE) REPORTER=html-cov > gen/coverage.html
|
9 |
|
10 | lib-cov:
|
11 | jscoverage hearts hearts-cov
|
12 |
|
13 | stats:
|
14 | gitstats . gen/stats
|
15 |
|
16 | setup:
|
17 | npm install
|
18 | brew install haskell-platform
|
19 | brew install go
|
20 | brew install thrift --with-haskell --HEAD
|
21 | gem install thrift
|
22 |
|
23 | update-thrift:
|
24 | git submodule init
|
25 | git submodule update
|
26 |
|
27 | package-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
|