Skip to content

Commit

Permalink
Replace deprecated gulp util (Fixes #6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocasciaro committed Jan 2, 2018
1 parent c64d91b commit 918beb6
Show file tree
Hide file tree
Showing 4 changed files with 377 additions and 13 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var through = require('through2'),
gutil = require('gulp-util');
var through = require('through2')
var PluginError = require('plugin-error')

var cloneStream = function() {
return through.obj(function(file, enc, cb) {
Expand All @@ -14,7 +14,7 @@ var cloneSink = function() {

var stream = through.obj(function(file, enc, cb) {
if (file.isStream()) {
this.emit('error', new gutil.PluginError('gulp-clone', 'Streaming not supported'));
this.emit('error', new PluginError('gulp-clone', 'Streaming not supported'));
return cb();
}

Expand Down
363 changes: 363 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 918beb6

Please sign in to comment.