From e0c80a3556867cc4e9e1e523097141021342b225 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 4 Oct 2020 17:30:39 +0200 Subject: [PATCH] Remove the `fancy-log` dependency This dependency hasn't been updated in two years and the only place that uses it is the `externaltest` target in the Gulpfile. We can simply replace `fancy-log` usage there with `console.log` like we do in all other places in the Gulpfile because we're not interested in the timestamps here. Gulp already prints timestamps and these tests finish within a second anyway. Note that it remains in `package-lock.json` because other Gulp-related packages have it as a dependency, but at least we're no longer depending on it directly anymore now. --- gulpfile.js | 8 +++++--- package.json | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index e197e7155..48f60ef08 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -21,7 +21,6 @@ var autoprefixer = require("autoprefixer"); var calc = require("postcss-calc"); var cssvariables = require("postcss-css-variables"); -var fancylog = require("fancy-log"); var fs = require("fs"); var gulp = require("gulp"); var postcss = require("gulp-postcss"); @@ -1962,11 +1961,14 @@ gulp.task( ); gulp.task("externaltest", function (done) { - fancylog("Running test-fixtures.js"); + console.log(); + console.log("### Running test-fixtures.js"); safeSpawnSync("node", ["external/builder/test-fixtures.js"], { stdio: "inherit", }); - fancylog("Running test-fixtures_esprima.js"); + + console.log(); + console.log("### Running test-fixtures_esprima.js"); safeSpawnSync("node", ["external/builder/test-fixtures_esprima.js"], { stdio: "inherit", }); diff --git a/package.json b/package.json index 75d43decb..70d9078f5 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "eslint-plugin-no-unsanitized": "^3.1.4", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-unicorn": "^20.1.0", - "fancy-log": "^1.3.3", "globals": "^11.12.0", "gulp": "^4.0.2", "gulp-postcss": "^8.0.0",