 
         glob  = path.join manifest.basedir, glob
         globs.push glob
-        # globs.push "!#{commons}"
 
       onRaw = (e, file) ->
 


      styl manifest, globs

      if opts.watchCss
        console.log {globs}
        w = chokidar.watch globs, persistent: yes
        w.on 'ready', -> w.on 'raw', onRaw


    init = =>
      fn = ->
        manifests.forEach (manifest) ->
          return  unless Array.isArray manifest.styles
          bundle manifest
      @on '_updated-sprites', -> fn()
      copyKd -> fn()


    if opts.sprites
      spriteSheets = path.join opts.spriteTmpCssOutdir, '*', \
        SPRITESMITH_CSS_NAME_PREFIX + '*x.' + SPRITESMITH_CSS_EXTENSION
      includes.push spriteSheets
      @once '_updated-sprites', ->
        init()
    else
      init()


  _thirdparty: (done) ->

SPRITES_TMPDIR              = '.sprites'
STYLES_KDJS_MODULE_NAME     = 'kd.js'
STYLES_KDJS_CSS_FILE        = 'dist/kd.css'
STYLES_COMMONS_GLOB         = 'app/styl/**/*.styl'
THROTTLE_WAIT               = 500

module.exports =
