From ecd144e2167986517083c61449d32e748e7f020a Mon Sep 17 00:00:00 2001 From: brunosimon Date: Tue, 26 Dec 2017 14:31:44 +0100 Subject: [PATCH] :heavy_minus_sign: Remove colors dependency --- lib/site.js | 1 - lib/watcher.js | 2 +- package-lock.json | 3 ++- package.json | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/site.js b/lib/site.js index e46c683..50b273b 100644 --- a/lib/site.js +++ b/lib/site.js @@ -2,7 +2,6 @@ const express = require('express') const helmet = require('helmet') const http = require('http') -const colors = require('colors') const path = require('path') const chalk = require('chalk') diff --git a/lib/watcher.js b/lib/watcher.js index 2206637..fb610d0 100644 --- a/lib/watcher.js +++ b/lib/watcher.js @@ -68,7 +68,7 @@ class Watcher this.socket.on('started', () => { const url = this.config.domain - console.log('app'.green.bold + ' - ' + url.yellow) + console.log(`${chalk.green.bold('app')} - ${chalk.yellow.underline(url)}`) if(this.config.open) { diff --git a/package-lock.json b/package-lock.json index 129cb24..a8f9066 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1537,7 +1537,8 @@ "colors": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=" + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "dev": true }, "commander": { "version": "2.11.0", diff --git a/package.json b/package.json index 43b996c..9ec2e19 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "dependencies": { "chalk": "^2.3.0", "chokidar": "^1.7.0", - "colors": "^1.1.2", "diff": "^3.3.0", "express": "^4.15.3", "glob": "^7.1.2",