From 1cd4d537afb196dc06e32331e7d650e8ad09704d Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 13 Jul 2018 19:46:12 -0300 Subject: [PATCH] Colors --- scripts/watcher/watch.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/watcher/watch.ts b/scripts/watcher/watch.ts index 8302126f9..63ed48fd4 100644 --- a/scripts/watcher/watch.ts +++ b/scripts/watcher/watch.ts @@ -1,3 +1,4 @@ +import chalk from "chalk"; import Joi from "joi"; import { pickBy } from "lodash"; @@ -21,7 +22,7 @@ async function beginWatch( } for await (const filePath of watcher.watch(rootDir, paths, { ignore })) { // tslint:disable-next-line:no-console - console.log(`Execute "${key}"`); + console.log(chalk.cyanBright(`Execute "${key}"`)); executor.execute(filePath); } } @@ -72,7 +73,7 @@ function filterOnly( return pickBy(watchers, (value, key) => { if (resolved.indexOf(key) === -1) { // tslint:disable-next-line:no-console - console.log(`Disabled watcher "${key}"`); + console.log(chalk.grey(`Disabled watcher "${key}"`)); return false; } return true; @@ -98,7 +99,7 @@ export default async function watch(config: Config, options: Options = {}) { for (const key of Object.keys(watchersConfigs)) { // tslint:disable-next-line:no-console - console.log(`Start watcher "${key}"`); + console.log(chalk.cyanBright(`Start watcher "${key}"`)); const watcherConfig = watchersConfigs[key]; beginWatch(watcher, key, watcherConfig, rootDir); }