Displays the execution time of grunt tasks
This is a fork of time-grunt with support for configurable color output.
$ npm install --save-dev time-grunt
// Gruntfile.js
module.exports = function (grunt) {
// require it at the top and pass in the grunt instance
require('time-grunt')(grunt);
grunt.initConfig();
}
You can also adjust the colors used for output - the color strings correspond to the colors implemented in chalk.
// Gruntfile.js with color adjustments
modules.exports = function(grunt) {
//require it at the top and pass in the grunt instance and color entries
require('time-grunt')(grunt, {
timestamp_color: 'yellow',
time_color: 'magenta',
bar_color: 'cyan',
total_color: 'red'
});
grunt.initConfig();
}
Tasks that take less than 1% of the total time are hidden to reduce clutter.
Run grunt with grunt --verbose
to see all tasks.