1 | fs = require 'fs'
|
2 | {exec} = require 'child_process'
|
3 |
|
4 | task "build", "", ->
|
5 | console.log "Compile main file..."
|
6 | command = "coffee -c lib/main.coffee"
|
7 | exec command, (err, stdout, stderr) ->
|
8 | if err
|
9 | console.log "Running coffee-script compiler caught an exception: \n" + err
|
10 | else
|
11 | console.log "The compilation succeeded."
|
12 |
|
13 | console.log stdout
|