Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/browser-sync-ui/lib/UI.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var fs = require("fs");
var path = require("path");
var chalk = require("chalk");

var config = require("./config");
var eachSeries = require("async-each-series");
Expand Down Expand Up @@ -188,7 +189,7 @@ function taskRunner (ui) {
if (out) {
handleOut(ui, out);
}
ui.logger.debug("{green:Step Complete: " + item.step);
ui.logger.debug(chalk.green("Step Complete: %s", item.step));
cb();
});
};
Expand Down Expand Up @@ -247,4 +248,4 @@ function tasksComplete (ui) {
};
}

module.exports = UI;
module.exports = UI;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const PLUGIN_NAME = "Sync Options";
var chalk = require("chalk");

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

"set": function (data) {

ui.logger.debug("Setting option: {magenta:%s}:{cyan:%s}", data.path.join("."), data.value);
ui.logger.debug("Setting option: %s:%s", chalk.magenta(data.path.join(".")), chalk.cyan(data.value));
bs.setOptionIn(data.path, data.value);

},

"setMany": function (data) {
Expand Down
Loading