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

Remove gulp util #157

Merged
merged 4 commits into from
Dec 29, 2017
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
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