Skip to content

Instantly share code, notes, and snippets.

@BaseCase
Created March 20, 2012 19:37
Show Gist options
  • Select an option

  • Save BaseCase/2140355 to your computer and use it in GitHub Desktop.

Select an option

Save BaseCase/2140355 to your computer and use it in GitHub Desktop.
Compile function called by Cake task
compile = (callback) ->
exec 'coffee -o bin/ -c src/', (err, stdout, stderr) ->
throw err if err
console.log "Compiled coffee files"
callback?()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment