Skip to content

Commit

Permalink
Merge pull request #60 from demurgos/issue-59
Browse files Browse the repository at this point in the history
Drop deprecated dependency `gulp-util`
  • Loading branch information
tschaub authored Jan 5, 2018
2 parents adf36a2 + 0276a22 commit c62e267
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
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

0 comments on commit c62e267

Please sign in to comment.