time-grunt

Display the elapsed execution time of grunt tasks

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.
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install time-grunt 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (a year ago)

26 Versions

  • 2.0.0 [deprecated]           ...           a year ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.2                                ...           5 years ago
  • 0.3.1                                ...           6 years ago
  • 0.2.10                                ...           6 years ago
  • 0.2.9                                ...           6 years ago
  • 0.2.8                                ...           6 years ago
  • 0.2.7                                ...           6 years ago
  • 0.2.6                                ...           6 years ago
  • 0.2.5                                ...           6 years ago
  • 0.2.4                                ...           6 years ago
  • 0.2.3                                ...           6 years ago
  • 0.2.2                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 44
This Week 44
This Month 604
Last Day 7
Last Week 213
Last Month 827
Dependencies (7)
Dev Dependencies (3)
Dependents (208)

Copyright 2014 - 2016 © taobao.org |