Permalink
Browse files

Makefile

  • Loading branch information...
1 parent 98f88e6 commit d8475ea3f6d0655b4aa19b6e8914ed1557b14ea5 @rf committed Aug 29, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 Makefile
View
14 Makefile
@@ -1,3 +1,7 @@
+.PHONY: test coverage docs
+
+all: docs coverage
+
test:
mocha -R spec -u tdd test.js
@@ -9,3 +13,13 @@ coverage:
TSM_COV=1 mocha -R html-cov -u tdd test.js > coverage.html
rm -rf lib
rm -rf lib-cov
+ # quickfix for this strange problem...
+ sed -i'bak' 's/>/>/g' coverage.html
+ sed -i'bak' 's/&lt;/</g' coverage.html
+ sed -i'bak' 's/&quot;/"/g' coverage.html
+ rm coverage.htmlbak
+ mkdir -p docs
+ mv coverage.html docs/
+
+docs:
+ docco index.js

0 comments on commit d8475ea

Please sign in to comment.