 class Worker
   
   configFile: 'config.json'
+  watchedFiles: []
   defaults:
     public: 'public' # Static Files
     libs: [] # JS to concat and append before app scripts
-    scripts: [ 'app' ]
+    scripts: [ 'app' ] # Folders containing scripts and templates to stitch
     scriptsOutput: 'public/js/app.js'
     styles: [ 'css/style.less' ]
     stylesOutput: 'public/css/app.css'

    process.exit(1)

  walk: (path, callback) ->
    for f in fs.readdirSync(path)
      f = fpath.join(path, f)
      stats = fs.statSync(f)
      if stats.isDirectory()
        @walk f, callback
      else
        callback.call(@, f) if @isWatchable(f)

  isWatchable: (file) ->
    switch fpath.extname file 
      when '.js', '.coffee', '.css', '.less', '.eco' then return true
    false
 
new Worker()


  _watch: ->
    @_build()
    @walk lib, @watchFile for lib in @options.libs
    @walk scripts, @watchFile for scripts in @options.scripts
    @walk styles, @watchFile for styles in @options.styles


  _serve: ->
    @_watch()
