 
 saveToFile = (buffer, conf, callback) ->
   gen = (path, content) -> (callback) ->
-    writeFile path, content, ->
+    writeFile path, content, (err) ->
       callback?()
 
   parallel (gen k,v for k,v of buffer), ->

createDirectory = (buffer, conf, callback) ->
  newBuffer = {}
  path = "#{conf.dir}/#{conf.directory}"
  ensure path, (err) ->
    for p,c of buffer
      newBuffer[p.replace conf.dir, path] = c


Neat = require '../../neat'

{parallel} = Neat.require 'async'
{ensurePath} = Neat.require 'utils/files'
{writeFile} = require 'fs'
{compile:coffee} = require 'coffee-script'
{parser, uglify:pro} = require 'uglify-js'
