Skip to content

Instantly share code, notes, and snippets.

@scips
Last active December 19, 2015 07:18
Show Gist options
  • Save scips/5917417 to your computer and use it in GitHub Desktop.
Save scips/5917417 to your computer and use it in GitHub Desktop.
Cakefile sbuild task for sublime
{exec} = require 'child_process'
task 'sbuild', 'Build project from *.coffee to *.js', ->
cwd = process.cwd()
process.chdir 'public/static/'
exec 'coffee -b -m --output js/ coffee/', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
process.chdir cwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment