aboutsummaryrefslogtreecommitdiffstats
path: root/Cakefile
diff options
context:
space:
mode:
authorPhil Crosby2012-06-10 13:35:19 -0700
committerPhil Crosby2012-06-10 13:35:19 -0700
commitca87dcee1b396be0c4e1ee82561fb7afdb5f5b18 (patch)
tree2f3b2dc17fb284bed1e3711fddcac6922f839ca5 /Cakefile
parentc86cda7e0ffbaa044c8b131e5726b1cce4c72ca6 (diff)
downloadvimium-ca87dcee1b396be0c4e1ee82561fb7afdb5f5b18.tar.bz2
Add a target to build the coffeescript
Diffstat (limited to 'Cakefile')
-rw-r--r--Cakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Cakefile b/Cakefile
index 8954ea1c..44d2d6ec 100644
--- a/Cakefile
+++ b/Cakefile
@@ -1,6 +1,10 @@
fs = require "fs"
{spawn, exec} = require "child_process"
+task "build", "compile all coffeescript files to javascript", ->
+ coffee = spawn "coffee", ["tests", "background_scripts"]
+ coffee.stdout.on "data", (data) -> console.log data.toString().trim()
+
task "autobuild", "continually rebuild coffeescript files using coffee --watch", ->
coffee = spawn "coffee", ["-cw", "tests", "background_scripts"]
coffee.stdout.on "data", (data) -> console.log data.toString().trim()