 
 
 createDirs = (dirs, cb) ->
-  fns = dirs.map (x) ->
-    return mkdirp.bind mkdirp, x
+  fns = dirs.map (dir) ->
+    return mkdirp.bind mkdirp, dir
   async.parallel fns, (err) ->
-    if err then throw err
+    throw err  if err
     cb null

            notify 'styles', msg


    bundle = (x)->
      start = Date.now()

      x.styles.forEach (basename) ->
        dir = path.join x.basedir, basename
        globs = [ path.join dir, '**', '*.' + STYLES_EXTENSION ]
        globs.push "!#{commons}"

        styl x, globs

        if opts.watchCss
          w = chokidar.watch dir, persistent: yes

        console.log msg
        if opts.watchJs
          notify 'styles', msg

        callback?()

      if opts.watchJs and not watchingKd
        watchingKd = true
        w = chokidar.watch kdCssFile, persistent: yes
        w.on 'change', copyKd


    styl = (manifest, globs) ->
      pending += 1

      opts_ =
