Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/time-grunt
Display the elapsed execution time of grunt tasks
https://github.com/sindresorhus/time-grunt
deprecated grunt
Last synced: 3 months ago
JSON representation
Display the elapsed execution time of grunt tasks
- Host: GitHub
- URL: https://github.com/sindresorhus/time-grunt
- Owner: sindresorhus
- License: mit
- Created: 2013-08-04T00:10:32.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T15:55:54.000Z (about 1 year ago)
- Last Synced: 2024-04-14T10:28:45.910Z (9 months ago)
- Topics: deprecated, grunt
- Language: JavaScript
- Homepage:
- Size: 194 KB
- Stars: 520
- Watchers: 11
- Forks: 74
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
- Security: .github/security.md
Awesome Lists containing this project
README
## 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](https://travis-ci.org/sindresorhus/time-grunt.svg?branch=master)](https://travis-ci.org/sindresorhus/time-grunt)
> Display the elapsed execution time of [grunt](http://gruntjs.com) tasks
![](screenshot.png)
## Install
```
$ npm install --save-dev time-grunt
```## Usage
```js
// 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:
```js
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](https://sindresorhus.com)