 
 
 class GLP
+  changedFiles: []
+
   constructor: (task, @configurator) ->
     @configure task
 

        @initialize configuration

  eventWatched: (filetype) -> (options) =>
    {type, path} = options

    if @configuration.static.enabled
      relatedFiles = @outputs[filetype]
    else
      relatedFiles = [path]

    @liveReload?.changed
      body:
        files: relatedFiles

  initialize: (@configuration) ->
    watchStatus = chalk.white 'enabled' if @configuration.watch

    gulp.start type

    if @configuration.watch
      gulp.on 'stop', (args...) => @reload args...
      gulp.watch allInputs, [type]
        .on 'change', @eventWatched type


module.exports = {GLP}
