Nighttime Possum Meandering

npm

Need private packages and team management tools?Check out npm Orgs. »

@leanplum/time-grunt

2.0.3 • Public • Published

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.


@leanplum/time-grunt

Display the elapsed execution time of grunt tasks

Install

$ npm install --save-dev @leanplum/time-grunt

Usage

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

Optional callback

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

require('@leanplum/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

install

npm i @leanplum/time-grunt

Downloadsweekly downloads

533

version

2.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability