Skip to content

Commit

Permalink
chalk 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Osbourne committed Feb 27, 2023
1 parent c1db647 commit da40369
Show file tree
Hide file tree
Showing 21 changed files with 423 additions and 1,017 deletions.
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

0 comments on commit da40369

Please sign in to comment.