     fs.unlinkSync(@target) if fs.existsSync(@target)
 
   build: (minify = false) ->
-    console.log "Building #{@name} to target: #{@target}"
+    console.log "Building '#{@name}' target: #{@target}"
     source = @compile(minify)
     fs.writeFileSync(@target, source) if source
 

      require('watch').watchTree dir, { persistent: true, interval: 1000 },  (file, curr, prev) =>
        @build() if curr and (curr.nlink is 0 or +curr.mtime isnt +prev?.mtime)

  # TODO: move this to a separate middleware class, pass in package to call compile and content type on..
  middleware: (req, res, next) =>
    str = @compile()
    res.charset = 'utf-8'

          _path  = require.resolve(path.resolve(_path))
          delete require.cache[_path]
          result.push require(_path)
        # TODO: do we want a minify option for css??
        result.join("\n")
    catch ex
      console.trace ex
      # only return when in server/watch mode, otherwise exit
      switch @argv.command
        when "server" then return "console.log(\"#{ex}\");"
        when "watch"  then return ""
        else process.exit(1)

  isJavascript: ->
    @contentType is "application/javascript"
