time-grunt-nowatch

1.0.1 • Public • Published

time-grunt-nowatch

Display the elapsed execution time of grunt tasks

Install

$ npm install --save-dev time-grunt-nowatch

Usage

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

	grunt.initConfig();
}

Optional callback

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

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

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

Clean layout

Tasks that take less than 1% of the total time are hidden to reduce clutter.

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

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i time-grunt-nowatch

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • marcinkrysiak