1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _cli = require('../utils/cli');
|
8 |
|
9 | class SimpleReporter {
|
10 | start(context) {
|
11 | _cli.consola.info(`Compiling ${context.state.name}`);
|
12 | }
|
13 |
|
14 | change(context, { shortPath }) {
|
15 | _cli.consola.debug(`${shortPath} changed.`, `Rebuilding ${context.state.name}`);
|
16 | }
|
17 |
|
18 | done(context) {
|
19 | const { hasError, message, name } = context.state;
|
20 | _cli.consola[hasError ? 'error' : 'success'](`${name}: ${message}`);
|
21 | }
|
22 | }
|
23 | exports.default = SimpleReporter; |
\ | No newline at end of file |