Skip to content
Browse files

Add make file

  • Loading branch information...
1 parent 2250432 commit 74a6a79c20a640fbb3dc94e15bc3f3aad7bd7e9a @wdavidw committed Nov 13, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 Makefile
View
15 Makefile
@@ -0,0 +1,15 @@
+REPORTER = dot
+
+build:
+ @./node_modules/.bin/coffee -b -o lib src/*.coffee
+
+test: build
+ @NODE_ENV=test ./node_modules/.bin/mocha --compilers coffee:coffee-script \
+ --reporter $(REPORTER)
+
+coverage: build
+ @jscoverage --no-highlight lib lib-cov
+ @HIVE_COV=1 $(MAKE) test REPORTER=html-cov > doc/coverage.html
+ @rm -rf lib-cov
+
+.PHONY: test

0 comments on commit 74a6a79

Please sign in to comment.
Something went wrong with that request. Please try again.