forked from agoragames/leaderboard-coffeescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (16 loc) · 856 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
generate-js: deps
@find src -name '*.coffee' | xargs coffee -c -o lib
remove-js:
@rm -fr lib/
deps:
@test `which coffee` || echo 'You need to have CoffeeScript in your PATH.\nPlease install it using `brew install coffee-script` or `npm install coffee-script`.'
test: generate-js
@./node_modules/.bin/mocha --compilers coffee:coffee-script/register --reporter spec -r spec/spec_helper.js spec/reverse_competition_ranking_leaderboard_spec.coffee spec/reverse_tie_ranking_leaderboard_spec.coffee spec/competition_ranking_leaderboard_spec.coffee spec/tie_ranking_leaderboard_spec.coffee spec/leaderboard_spec.coffee
publish: generate-js
@test `which npm` || echo 'You need npm to do npm publish... makes sense?'
npm publish
@remove-js
link: generate-js
@test `which npm` || echo 'You need npm to do npm link... makes sense?'
npm link
@remove-js