(options)
| 138 | } |
| 139 | |
| 140 | start(options) { |
| 141 | options.project = this.project; |
| 142 | options.watcher = this.watcher; |
| 143 | options.serverWatcher = this.serverWatcher; |
| 144 | options.ui = this.ui; |
| 145 | |
| 146 | this.startOptions = options; |
| 147 | |
| 148 | if (this.serverWatcher) { |
| 149 | this.serverWatcher.on('change', this.serverWatcherDidChange.bind(this)); |
| 150 | this.serverWatcher.on('add', this.serverWatcherDidChange.bind(this)); |
| 151 | this.serverWatcher.on('delete', this.serverWatcherDidChange.bind(this)); |
| 152 | } |
| 153 | |
| 154 | return this.startHttpServer(); |
| 155 | } |
| 156 | |
| 157 | serverWatcherDidChange() { |
| 158 | this.scheduleServerRestart(); |
no test coverage detected