           src_path = path.join root, fileStats.name
           tgt_path = changeExt src_path, '.js'
           src = yield fs.readFileAsync src_path, 'utf-8'
-          tgt = compile src
+          try
+            tgt = compile src
+          catch e
+            console.log "Compiling #{src_path} failed: #{e}"
+            return
           yield fs.writeFileAsync tgt_path, tgt
           yield fs.removeAsync src_path
           log "Compiled #{tgt_path}"

compressGzipAsync = (src_folder, tgt_path) ->
  targz().compress src_folder, tgt_path

runScriptAsync = (script_path, args, options) ->
  new Promise (resolve) ->
    child_process.fork.apply this, arguments
    .on 'exit', -> resolve()

npmInstallAsync = async (tgt_dir, args=[]) ->
  # Can't use require('npm') module b/c we kept npm2 in node_modules for plugins

# *** INCLUDE ***
os = require 'os'
path = require 'path-extra'
