Permalink
Browse files

plz rules file.

  • Loading branch information...
1 parent 298b920 commit 4b216e3c1b70dd60b177139ee7b600a8039efb71 @robey committed Apr 29, 2013
Showing with 17 additions and 0 deletions.
  1. +17 −0 plz-rules.coffee
View
@@ -0,0 +1,17 @@
+
+coffee = "./node_modules/coffee-script/bin/coffee"
+mocha = "./node_modules/mocha/bin/mocha"
+
+task "build", description: "build javascript", run: ->
+ mkdir "-p", "lib"
+ exec "#{coffee} -o lib -c src"
+
+task "test", description: "run unit tests", must: "build", run: (options) ->
+ display = options.display or "spec"
+ exec "#{mocha} -R #{display} --compilers coffee:coffee-script --colors"
+
+task "clean", description: "erase build products", run: ->
+ rm "-rf", "lib"
+
+task "distclean", description: "erase everything that wasn't in git", must: "clean", run: ->
+ rm "-rf", "node_modules"

0 comments on commit 4b216e3

Please sign in to comment.