UNPKG

533 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _cli = require('../utils/cli');
8
9class 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}
23exports.default = SimpleReporter;
\No newline at end of file