Skip to content

Instantly share code, notes, and snippets.

@rashfael
Created August 29, 2012 13:39
Show Gist options
  • Save rashfael/3512655 to your computer and use it in GitHub Desktop.
Save rashfael/3512655 to your computer and use it in GitHub Desktop.
{exec} = require 'child_process'
{spawn} = require 'child_process'
{fork} = require 'child_process'
os = require 'os'
if os.platform() is 'win32'
coffee = 'coffee.cmd'
brunch = 'brunch.cmd'
else
coffee = 'coffee'
brunch = 'brunch'
task 'run', 'Launch the server', ->
server = spawn coffee, ['-w','lib/server'], {stdio: 'inherit'}
task 'build', 'Builds all brunches', ->
server = spawn brunch, ['b'], {stdio: 'inherit', cwd: 'lib/client'}
server = spawn brunch, ['b'], {stdio: 'inherit', cwd: 'lib/admin'}
task 'watch', 'Watches all brunches', ->
server = spawn brunch, ['w'], {stdio: 'inherit', cwd: 'lib/client'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment