time-grunt

Display the elapsed execution time of grunt tasks

  • 所有者: sindresorhus/time-grunt
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

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)
用户参与
星數519
關注者數10
派生數67
提交數99
已啟用問題?
問題數54
打開的問題數0
拉請求數14
打開的拉請求數0
關閉的拉請求數23
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?