Skip to content

Commit da40369

Browse files
author
Shane Osbourne
committed
chalk 100%
1 parent c1db647 commit da40369

File tree

21 files changed

+423
-1017
lines changed

21 files changed

+423
-1017
lines changed

packages/browser-sync-ui/lib/UI.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var fs = require("fs");
22
var path = require("path");
3+
var chalk = require("chalk");
34

45
var config = require("./config");
56
var eachSeries = require("async-each-series");
@@ -188,7 +189,7 @@ function taskRunner (ui) {
188189
if (out) {
189190
handleOut(ui, out);
190191
}
191-
ui.logger.debug("{green:Step Complete: " + item.step);
192+
ui.logger.debug(chalk.green("Step Complete: %s", item.step));
192193
cb();
193194
});
194195
};
@@ -247,4 +248,4 @@ function tasksComplete (ui) {
247248
};
248249
}
249250

250-
module.exports = UI;
251+
module.exports = UI;

packages/browser-sync-ui/lib/plugins/sync-options/sync-options.plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const PLUGIN_NAME = "Sync Options";
2+
var chalk = require("chalk");
23

34
/**
45
* @type {{plugin: Function, plugin:name: string, hooks: object}}
@@ -11,9 +12,8 @@ module.exports = {
1112

1213
"set": function (data) {
1314

14-
ui.logger.debug("Setting option: {magenta:%s}:{cyan:%s}", data.path.join("."), data.value);
15+
ui.logger.debug("Setting option: %s:%s", chalk.magenta(data.path.join(".")), chalk.cyan(data.value));
1516
bs.setOptionIn(data.path, data.value);
16-
1717
},
1818

1919
"setMany": function (data) {

0 commit comments

Comments
 (0)