Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Last active August 29, 2015 14:07
Show Gist options
  • Save josephabrahams/1aae77305e7ac81756d0 to your computer and use it in GitHub Desktop.
Save josephabrahams/1aae77305e7ac81756d0 to your computer and use it in GitHub Desktop.
Debug gulp streams
var gulp = require('gulp'),
through = require('through2'),
util = require('gulp-util');
gulp.src('client/js/**/*.js')
.pipe(through.obj(function(file,enc,cb) {
util.log('cwd : '+file.cwd);
util.log('base: '+file.base);
util.log('path: '+file.path);
util.log('\n');
cb(null, file)
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment