Skip to content

Commit

Permalink
Remove direct dependency on gul-util
Browse files Browse the repository at this point in the history
  • Loading branch information
guanw88 committed Aug 28, 2024
1 parent 9744885 commit 67b0887
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
7 changes: 4 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const gulp = require('gulp');
const util = require('gulp-util');
const log = require('fancy-log');
const colors = require('ansi-colors');
const minimist = require('minimist');
const path = require('path');
const del = require('del');
Expand All @@ -18,7 +19,7 @@ gulp.task('build-module', () => {
return gulp.src(source)
.pipe(coffee())
.pipe(gulp.dest(moduleOutput))
.on('error', util.log);
.on('error', log);
});

gulp.task('clean-module', () => {
Expand All @@ -43,7 +44,7 @@ if (typeof options.grep === 'string') {

const karmaErrorHandler = function(code) {
if (code === 1) {
util.log(util.colors.red('Tests finished with failures.'));
log(colors.red('Tests finished with failures.'));
process.exit(1);
} else {
this();
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@
"jquery": "2.2.4"
},
"devDependencies": {
"ansi-colors": "^4.1.3",
"backbone": "1.0.0 - 1.1.2",
"backbone-factory": "https://github.com/mavenlink/Backbone-Factory.git#master",
"browserify": "^17.0.0",
"browserify-shim": "^3.8.16",
"coffeeify": "^2.0.1",
"del": "^2.2.0",
"fancy-log": "^2.0.0",
"gulp": "^5.0.0",
"gulp-coffee": "^2.3.5",
"gulp-util": "^3.0.7",
"jasmine-core": "2.5.2",
"jasmine-jquery-matchers": "^1.4.2",
"karma": "^6.4.3",
Expand Down
14 changes: 13 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ amdefine@>=0.0.4:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"

ansi-colors@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b"
integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==

ansi-gray@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251"
Expand Down Expand Up @@ -1122,6 +1127,13 @@ fancy-log@^1.1.0:
parse-node-version "^1.0.0"
time-stamp "^1.0.0"

fancy-log@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-2.0.0.tgz#cad207b8396d69ae4796d74d17dff5f68b2f7343"
integrity sha512-9CzxZbACXMUXW13tS0tI8XsGGmxWzO2DmYrGuBJOJ8k8q2K7hwfJA5qHjuPPe8wtsco33YR9wc+Rlr5wYFvhSA==
dependencies:
color-support "^1.1.3"

fast-fifo@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c"
Expand Down Expand Up @@ -1431,7 +1443,7 @@ gulp-coffee@^2.3.5:
through2 "^2.0.1"
vinyl-sourcemaps-apply "^0.2.1"

gulp-util@^3.0.2, gulp-util@^3.0.7:
gulp-util@^3.0.2:
version "3.0.8"
resolved "https://registry.yarnpkg.com/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f"
dependencies:
Expand Down

0 comments on commit 67b0887

Please sign in to comment.