From ca87dcee1b396be0c4e1ee82561fb7afdb5f5b18 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Sun, 10 Jun 2012 13:35:19 -0700 Subject: Add a target to build the coffeescript --- Cakefile | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit v1.2.3