(options, build)
| 4 | |
| 5 | module.exports = class ServerWatcher extends Watcher { |
| 6 | static async build(options, build) { |
| 7 | let { watcher: instance } = await super.build(options, build); |
| 8 | |
| 9 | instance.watcher.on('add', instance.didAdd.bind(instance)); |
| 10 | instance.watcher.on('delete', instance.didDelete.bind(instance)); |
| 11 | |
| 12 | return { watcher: instance }; |
| 13 | } |
| 14 | |
| 15 | constructBroccoliWatcher(options) { |
| 16 | return new (require('sane'))(this.watchedDir, options); |