Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 679 Bytes
{spawn, exec} = require 'child_process'
task 'sbuild', 'ST2 build', ->
coffee = spawn 'coffee', ['-co', 'build', 'src']
coffee.stdout.on 'data', (data) ->
exec 'cake minify'
console.log data.toString().trim()
task 'watch', 'continually build', ->
coffee = spawn 'coffee', ['-cwo', 'build', 'src']
coffee.stdout.on 'data', (data) ->
exec 'cake minify'
console.log data.toString().trim()
task 'minify', 'Minify the resulting application file after build', ->
filename = 'jquery.superslides'
exec "uglifyjs -o build/#{filename}.min.js build/#{filename}.js", (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
Something went wrong with that request. Please try again.