Last active
August 29, 2015 14:07
-
-
Save josephabrahams/1aae77305e7ac81756d0 to your computer and use it in GitHub Desktop.
Debug gulp streams
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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