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 dependency on deprecated gulp-util #15

Merged
merged 1 commit into from
Dec 31, 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
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var path = require('path');
var through2 = require('through2');
var flattenPath = require('./lib/flatten-path');
var PluginError = require('gulp-util').PluginError;
var PluginError = require('plugin-error');

module.exports = function(opts) {
opts = opts || {};
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@
},
"homepage": "https://github.com/armed/gulp-flatten",
"dependencies": {
"gulp-util": "^3.0.7",
"plugin-error": "^0.1.2",
"through2": "^2.0.0"
},
"devDependencies": {
"eslint-config-airbnb": "^1.0.2",
"gulp": "^3.9.0",
"mocha": "^2.3.4",
"pre-commit": "^1.1.2",
"should": "^7.1.1"
"should": "^7.1.1",
"vinyl": "^2.1.0"
},
"engines": {
"node": ">=0.10"
Expand Down
4 changes: 2 additions & 2 deletions test/main.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var should = require('should');
var flatten = require('../');
var File = require('gulp-util').File;
var Vinyl = require('vinyl');
var gulp = require('gulp');
var path = require('path');
var fileInstance;

describe('gulp-flatten', function () {

beforeEach(function () {
fileInstance = new File({
fileInstance = new Vinyl({
cwd: '/some/project/',
base: '/some/project/src/',
path: '/some/project/src/assets/css/app.css',
Expand Down