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

Drop deprecated dependency gulp-util #60

Merged
merged 1 commit into from
Jan 5, 2018
Merged
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/node_modules/
package-lock.json
yarn.lock
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ var util = require('util');
var glob = require('glob');

var Q = require('kew');
var gutil = require('gulp-util');

var PluginError = gutil.PluginError;
var PluginError = require('plugin-error');

var PLUGIN_NAME = 'gulp-newer';

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
"eslint-config-tschaub": "^6.0.0",
"gulp": "^3.9.1",
"mocha": "^3.1.0",
"mock-fs": "^4.0.0"
"mock-fs": "^4.0.0",
"vinyl": "^2.1.0"
},
"dependencies": {
"glob": "^7.0.3",
"gulp-util": "^3.0.7",
"kew": "^0.7.0"
"kew": "^0.7.0",
"plugin-error": "^0.1.2"
},
"eslintConfig": {
"extends": "tschaub"
Expand Down
5 changes: 2 additions & 3 deletions spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ var fs = require('fs');
var path = require('path');

var chai = require('chai');
var gutil = require('gulp-util');
var Vinyl = require('vinyl');
var mock = require('mock-fs');

var newer = require('./index.js');

chai.config.includeStack = true;

var File = gutil.File;
var assert = chai.assert;

/**
Expand All @@ -23,7 +22,7 @@ var assert = chai.assert;
*/
function write(stream, paths) {
paths.forEach(function(filePath) {
stream.write(new File({
stream.write(new Vinyl({
contents: fs.readFileSync(filePath),
path: path.resolve(filePath),
stat: fs.statSync(filePath)
Expand Down