Skip to content

Commit 8db1118

Browse files
committed
feat(bars): consola integration
1 parent dcac84f commit 8db1118

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/reporters/bars.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Consola from 'consola';
12
import draftLog from 'draftlog';
23
import chalk from 'chalk';
34
import prettyTime from 'pretty-time';
@@ -19,13 +20,18 @@ export default class BarsReporter {
1920

2021
compiling() {
2122
if (!globalConsole.draft) {
22-
draftLog.into(globalConsole);
23+
draftLog(globalConsole);
2324
}
2425

26+
Consola.pause();
2527
globalConsole.log();
2628
this.drafts = [globalConsole.draft(), globalConsole.draft()];
2729
}
2830

31+
done() {
32+
Consola.resume();
33+
}
34+
2935
compiled(context) {
3036
this._render(context);
3137
}

0 commit comments

Comments
 (0)