Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Debug Vinyl file streams to see what files are run through your Gulp pipeline

License

Notifications You must be signed in to change notification settings

sindresorhus/gulp-debug

gulp-debug

Debug Vinyl file streams to see what files are run through your Gulp pipeline

Install

npm install --save-dev gulp-debug

Usage

import gulp from 'gulp';
import debug from 'gulp-debug';
export default () => (
	gulp.src('foo.js')
		.pipe(debug({title: 'unicorn:'}))
		.pipe(gulp.dest('dist'))
);

API

debug(options?)

options

Type: object

title

Type: string
Default: 'gulp-debug:'

Give it a custom title so it's possible to distinguish the output of multiple instances logging at once.

minimal

Type: boolean
Default: true

By default only file paths relative to the current working directory 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.

showFiles

Type: boolean
Default: true

Print filenames.

showCount

Type: boolean
Default: true

Print the file count.

logger(message)

Type: Function
Default: console.log

Provide your own logging utility.

The message is passed as a string in the first argument. Note that ANSI colors may be used in the message.

About

Debug Vinyl file streams to see what files are run through your Gulp pipeline

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 8

AltStyle によって変換されたページ (->オリジナル) /