Skip to content

Commit

Permalink
browser-sync-2017 use chalk everywhere (#2018)
Browse files Browse the repository at this point in the history
* chalk 100%

* updated test

* remove spaces that chrome would add

* fix a test

---------

Co-authored-by: Shane Osbourne <sosbourne@duckduckgo.com>
  • Loading branch information
shakyShane and Shane Osbourne authored Feb 27, 2023
1 parent c1db647 commit 3b0581e
Show file tree
Hide file tree
Showing 22 changed files with 429 additions and 1,020 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 3b0581e

Please sign in to comment.