(results)
| 118 | } |
| 119 | |
| 120 | didChange(results) { |
| 121 | logger.info('didChange %o', results); |
| 122 | |
| 123 | results.totalTime = this._totalTime(results); |
| 124 | let totalTime = results.totalTime / 1e6; |
| 125 | let message = chalk.green(`Build successful (${Math.round(totalTime)}ms)`); |
| 126 | |
| 127 | this.ui.writeLine(''); |
| 128 | |
| 129 | if (this.serving) { |
| 130 | message += ` – Serving on ${this.serveURL(this.options, this.options.project)}`; |
| 131 | } |
| 132 | |
| 133 | this.ui.writeLine(message); |
| 134 | |
| 135 | if (this.verbose) { |
| 136 | printSlowTrees(results.graph.__heimdall__); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | buildOptions() { |
| 141 | let watcher = this.options && this.options.watcher; |
no test coverage detected