Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (8 sloc) 398 Bytes
{exec} = require 'child_process'
option '-o', '--output [DIR]', 'directory for compiled source'
task 'compile', 'Compile node-trakt source to JavaScript', (options) ->
target = options.output or "#{__dirname}/lib"
console.log "Compiling node-trakt"
console.log " - source: #{__dirname}/src"
console.log " - target: #{target}"
exec "coffee -c -o #{target} #{__dirname}/src"