From 4143a25b9afef1981463e9cbe43df57a03662015 Mon Sep 17 00:00:00 2001 From: Dustin Dodson Date: Wed, 31 Jan 2018 01:26:31 -0900 Subject: [PATCH] Replaced gulp-util dependency with fancy-log. (#786) --- gulpfile.babel.js | 4 ++-- package.json | 2 +- yarn.lock | 20 +++++++++++++++++++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index fb7d19ebe..8388d6348 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -2,7 +2,7 @@ const through = require("through2"); const chalk = require("chalk"); const newer = require("gulp-newer"); const babel = require("gulp-babel"); -const gutil = require("gulp-util"); +const log = require("fancy-log"); const gulp = require("gulp"); const path = require("path"); @@ -39,7 +39,7 @@ function getBuildTask({ scripts, dest }) { .pipe(newer(dest)) .pipe( through.obj((file, enc, callback) => { - gutil.log("Compiling", "'" + chalk.cyan(file._path) + "'..."); + log("Compiling", "'" + chalk.cyan(file._path) + "'..."); callback(null, file); }) ) diff --git a/package.json b/package.json index f6cb88855..296bcee2b 100644 --- a/package.json +++ b/package.json @@ -35,12 +35,12 @@ "commander": "^2.12.2", "eslint": "^4.13.1", "eslint-plugin-prettier": "^2.4.0", + "fancy-log": "^1.3.2", "fs-readdir-recursive": "^1.1.0", "google-closure-compiler-js": "^20171203.0.0", "gulp": "github:gulpjs/gulp#4.0", "gulp-babel": "^7.0.0", "gulp-newer": "^1.3.0", - "gulp-util": "^3.0.8", "jest-cli": "^22.0.3", "lerna": "^2.5.1", "lerna-changelog": "^0.7.0", diff --git a/yarn.lock b/yarn.lock index 0d3056691..d9bc0ab08 100644 --- a/yarn.lock +++ b/yarn.lock @@ -172,6 +172,12 @@ ansi-escapes@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92" +ansi-gray@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251" + dependencies: + ansi-wrap "0.1.0" + ansi-red@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c" @@ -1423,6 +1429,10 @@ color-name@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" +color-support@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" + colors@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" @@ -2233,6 +2243,14 @@ fancy-log@^1.1.0: chalk "^1.1.1" time-stamp "^1.0.0" +fancy-log@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.2.tgz#f41125e3d84f2e7d89a43d06d958c8f78be16be1" + dependencies: + ansi-gray "^0.1.1" + color-support "^1.1.3" + time-stamp "^1.0.0" + fast-deep-equal@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff" @@ -2764,7 +2782,7 @@ gulp-sourcemaps@1.6.0: through2 "^2.0.0" vinyl "^1.0.0" -gulp-util@^3.0.0, gulp-util@^3.0.7, gulp-util@^3.0.8: +gulp-util@^3.0.0, gulp-util@^3.0.7: version "3.0.8" resolved "https://registry.yarnpkg.com/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f" dependencies: