time-grunt

Display the elapsed execution time of grunt tasks

Github星跟踪图

Deprecated

Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.


time-grunt Build Status

Display the elapsed execution time of grunt tasks

Install

$ npm install --save-dev time-grunt

Usage

// Gruntfile.js
module.exports = grunt => {
	// require it at the top and pass in the grunt instance
	require('time-grunt')(grunt);

	grunt.initConfig();
}

Optional callback

If you want to collect the timing stats for your own use, pass in a callback:

require('time-grunt')(grunt, (stats, done) => {
	// do whatever you want with the stats
	uploadReport(stats);

	// be sure to let grunt know when to exit
	done();
});

Clean layout

The watch task and tasks that take less than 1% of the total time are hidden to reduce clutter.

Run grunt with grunt --verbose to see all tasks.

Run grunt with grunt --quiet to quiet all tasks including time-grunt.

License

MIT © Sindre Sorhus

主要指标

概览
名称与所有者sindresorhus/time-grunt
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2013-08-04 00:10:32
推送于2023-10-30 15:55:54
最后一次提交
发布数27
最新版本名称v2.0.0 (发布于 2018-11-01 17:11:02)
第一版名称v0.1.0 (发布于 2013-08-04 02:28:50)
用户参与
星数518
关注者数9
派生数66
提交数99
已启用问题?
问题数54
打开的问题数0
拉请求数14
打开的拉请求数0
关闭的拉请求数23
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?