Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves #17: Replace deprecated dependency gulp-util #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Require Gulp
var gulp = require('gulp'),
gutil = require('gulp-util');
var gulp = require('gulp');

// Require tasks
var combineMq = require('./index');
Expand All @@ -13,6 +12,4 @@
});

// Default task does all of the things
gulp.task('default', [
'combineMq'
]);
gulp.task('default', gulp.series('combineMq'));
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
'use strict';

var path = require('path'),
gutil = require('gulp-util'),
through = require('through2'),
combineMq = require('combine-mq');
combineMq = require('combine-mq'),
log = require('fancy-log'),
colors = require('ansi-colors'),
PluginError = require('plugin-error');


var PLUGIN_NAME = 'gulp-combine-mq';
Expand All @@ -20,7 +22,7 @@ module.exports = function(options) {
}

if(file.isStream()) {
this.emit('error', new gutil.PluginError(PLUGIN_NAME, 'Streaming not supported'));
this.emit('error', new PluginError(PLUGIN_NAME, 'Streaming not supported'));
return cb();
}

Expand All @@ -30,7 +32,7 @@ module.exports = function(options) {
});

if(options.showLog) {
gutil.log(PLUGIN_NAME, gutil.colors.green('✔ ') + file.relative);
log(PLUGIN_NAME, colors.green('✔ ') + file.relative);
}

file.contents = new Buffer(processed);
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,21 @@
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"dependencies": {
"combine-mq": "^0.7.0",
"gulp-util": "~2.2.0",
"path": "^0.4.9",
"through2": "~0.6.0"
"ansi-colors": "^1.1.0",
"combine-mq": "^0.8.1",
"fancy-log": "^1.3.2",
"path": "^0.12.7",
"plugin-error": "^1.0.1",
"through2": "~2.0.3"
},
"devDependencies": {
"coveralls": "*",
"event-stream": "*",
"gulp": "^3.8.8",
"gulp": "^4.0.0",
"istanbul": "*",
"mocha": "*",
"mocha-lcov-reporter": "*",
"should": "~2.1.0"
"should": "~13.2.1"
},
"keywords": [
"gulpplugin",
Expand Down
Loading