gulp-debug

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

Github星跟踪图

gulp-debug Build Status

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

Install

$ npm install --save-dev gulp-debug

Usage

const gulp = require('gulp');
const debug = require('gulp-debug');

exports.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 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.

showFiles

Type: boolean
Default: true

Print filenames.

showCount

Type: boolean
Default: true

Print the file count.

logger(message)

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.

主要指标

概览
名称与所有者sindresorhus/gulp-debug
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-01-09 06:06:38
推送于2023-11-03 08:41:43
最后一次提交
发布数19
最新版本名称v5.0.1 (发布于 2023-11-03 15:40:41)
第一版名称v0.1.0 (发布于 2014-01-09 07:08:37)
用户参与
星数220
关注者数5
派生数29
提交数51
已启用问题?
问题数33
打开的问题数1
拉请求数6
打开的拉请求数0
关闭的拉请求数9
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?