@lodder/time-grunt
Display the elapsed execution time of grunt tasks
Last updated 8 months ago by lodder .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lodder/time-grunt 
SYNC missed versions from official npm registry.

time-grunt

NPM Version Build Status Dependency Status

Display the elapsed execution time of grunt tasks

Install

$ npm i --save-dev @lodder/time-grunt

Usage

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

	grunt.initConfig();
}

Optional callback

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

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

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

Options

  • Run grunt with --no-color to disable any colour indicators in the terminal

Clean layout

The watch task is 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

  • 4.0.0                                ...           latest (8 months ago)

3 Versions

  • 4.0.0                                ...           8 months ago
  • 3.0.1                                ...           10 months ago
  • 3.0.0                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 4
This Month 4
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |