Skip to content

Commit

Permalink
Merge pull request #157 from spalger/remove-gulp-util
Browse files Browse the repository at this point in the history
Remove gulp util
  • Loading branch information
spalger authored Dec 29, 2017
2 parents 807bead + 5f621f8 commit 2c57c9f
Show file tree
Hide file tree
Showing 9 changed files with 1,744 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ test
.jshintignore
.jshintrc
.travis.yml
gulpfile.js
gulpfile.js
yarn.lock
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"gulpplugin"
],
"dependencies": {
"gulp-util": "^3.0.0",
"lodash": "^4.12.0",
"minimatch": "^3.0.3",
"plugin-error": "^0.1.2",
"rcloader": "^0.2.2",
"through2": "^2.0.0"
},
Expand All @@ -29,7 +29,8 @@
"gulp": "^3.8.10",
"jshint": "^2.9.4",
"mocha": "^3.0.0",
"should": "^11.0.0"
"should": "^11.0.0",
"vinyl": "^2.1.0"
},
"scripts": {
"test": "gulp test"
Expand Down
2 changes: 1 addition & 1 deletion src/fileIgnored.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var dirname = require('path').dirname;
var join = require('path').join;
var sep = require('path').sep;
var RcLoader = require('rcloader');
var PluginError = require('gulp-util').PluginError;
var PluginError = require('plugin-error');

var ignoreLoader = new RcLoader('.jshintignore', {}, {
loader: function (path) {
Expand Down
2 changes: 1 addition & 1 deletion src/lint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var path = require('path');
var PluginError = require('gulp-util').PluginError;
var PluginError = require('plugin-error');
var RcLoader = require('rcloader');
var jshintcli = require('jshint/src/cli');
var minimatch = require('minimatch');
Expand Down
2 changes: 1 addition & 1 deletion src/reporters/fail.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var path = require('path');
var stream = require('../stream');
var PluginError = require('gulp-util').PluginError;
var PluginError = require('plugin-error');
var reduce = require('lodash/reduce');

module.exports = function (opts) {
Expand Down
2 changes: 1 addition & 1 deletion src/reporters/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var PluginError = require('gulp-util').PluginError;
var PluginError = require('plugin-error');
var stream = require('../stream');
var defaults = require('lodash/defaults');

Expand Down
2 changes: 1 addition & 1 deletion test/specs/linting.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Fixture = require('../util').Fixture;
var PluginError = require('gulp-util').PluginError;
var PluginError = require('plugin-error');
var jshint = require('../../src');

describe('linting', function () {
Expand Down
4 changes: 2 additions & 2 deletions test/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var isString = require('lodash/isString');
var jshint = require('../');
var gutil = require('gulp-util');
var Vinyl = require('vinyl');
var join = require('path').join;
var extname = require('path').extname;
var fs = require('fs');
Expand All @@ -22,7 +22,7 @@ function File(opts) {
? new Buffer(opts.contents, 'utf8')
: fs.readFileSync(path);

return new gutil.File({
return new Vinyl({
cwd: opts.cwd || ROOT,
base: opts.base || ROOT,
path: path,
Expand Down
Loading

0 comments on commit 2c57c9f

Please sign in to comment.