Debug Vinyl file streams to see what files are run through your Gulp pipeline (evacuated from NSA/Microsoft Github)
Sindre Sorhus 12f594c932 4.0.0 | %!s(int64=6) %!d(string=hai) anos | |
---|---|---|
.editorconfig | %!s(int64=7) %!d(string=hai) anos | |
.gitattributes | %!s(int64=8) %!d(string=hai) anos | |
.gitignore | %!s(int64=7) %!d(string=hai) anos | |
.npmrc | %!s(int64=7) %!d(string=hai) anos | |
.travis.yml | %!s(int64=6) %!d(string=hai) anos | |
gulpfile.js | %!s(int64=7) %!d(string=hai) anos | |
index.js | %!s(int64=6) %!d(string=hai) anos | |
license | %!s(int64=7) %!d(string=hai) anos | |
package.json | %!s(int64=6) %!d(string=hai) anos | |
readme.md | %!s(int64=6) %!d(string=hai) anos | |
screenshot.png | %!s(int64=10) %!d(string=hai) anos | |
test.js | %!s(int64=6) %!d(string=hai) anos |
Debug Vinyl file streams to see what files are run through your Gulp pipeline
$ npm install --save-dev gulp-debug
const gulp = require('gulp');
const debug = require('gulp-debug');
gulp.task('default', () =>
gulp.src('foo.js')
.pipe(debug({title: 'unicorn:'}))
.pipe(gulp.dest('dist'))
);
Type: Object
Type: string
Default: gulp-debug:
Give it a custom title so it's possible to distinguish the output of multiple instances logging at once.
Type: boolean
Default: true
By default only relative paths are shown. Turn off minimal mode to also show cwd
, base
, path
.
The stat
property will be shown when you run gulp in verbose mode: gulp --verbose
.
Type: boolean
Default: true
Print filenames.
Type: boolean
Default: true
Print the file count.
Type: Function
Default: fancy-log
Provide your own logging utility in place of fancy-log. The message is passed as a string in the first argument. Note that ANSI colors may be used in the message.
MIT © Sindre Sorhus