time-grunt

Display the elapsed execution time of grunt tasks

  • Owner: sindresorhus/time-grunt
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownersindresorhus/time-grunt
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2013-08-04 00:10:32
Pushed At2023-10-30 15:55:54
Last Commit At
Release Count27
Last Release Namev2.0.0 (Posted on 2018-11-01 17:11:02)
First Release Namev0.1.0 (Posted on 2013-08-04 02:28:50)
用户参与
Stargazers Count519
Watchers Count10
Fork Count67
Commits Count99
Has Issues Enabled
Issues Count54
Issue Open Count0
Pull Requests Count14
Pull Requests Open Count0
Pull Requests Close Count23
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private