Comments (5)
make sure you're on the latest version.
from time-grunt.
Just started this project.
~/opower/x-web/x-web-task-collection ✗ WEB-1885-innovation-day ❯ npm ls time-grunt
[email protected] /Users/dgreene/opower/x-web/x-web-task-collection
└── [email protected]
Seems like it only happens with async tasks, and only the last one.
lapsed time
jshint 315ms
jshint:grunt 33ms
jshint:test 58ms
Total 406ms
jshint:test 58ms
vs
Elapsed time
test 316ms
jshint:grunt 91ms
jshint:src 25ms
jshint:test 30ms
mochaTest:unit 40ms
Total 502ms
mochaTest:unit 40ms
from time-grunt.
It seems to be happening when this is called:
grunt.log.header('Elapsed time');
So maybe the unhook is not working as expected.
A possible workaround is to return early from the header hook
if name
is undefined
.
from time-grunt.
Another possible workaround is to make sure the original header fn is called.
grunt.util.hooker.orig(grunt.log, 'header')('Elapsed time');
from time-grunt.
Sounds like a Hooker bug though. Mind opening a ticket here? https://github.com/cowboy/javascript-hooker
from time-grunt.
Related Issues (20)
- Execution start time is always in UTC HOT 8
- Feature request: Ignore Tasks HOT 3
- allow custom barChar character, or non utf8 option HOT 4
- builder is not defined HOT 1
- Command line support HOT 5
- Ctrl+C not working HOT 4
- `createBar` invalid array length exception due to negative maxBarWidth HOT 4
- [feature] Allow depth configuration or whitelist HOT 4
- Execution time (date+time) is wrong HOT 1
- --no-color flag does nothing HOT 3
- TypeError: chalk.stripColor is not a function HOT 1
- Maintainer needed HOT 4
- xo 0.15.0 throwing lint error
- Abstracted grunt hooks package HOT 4
- Not outputting total elapsed time unless grunt is called with `--no-color` option HOT 5
- Disable for independent runs
- Callback is not called when exit HOT 1
- Prevents Jest from completion HOT 1
- LESS option 'spawn HOT 1
- grunt-contrib-watch option 'spawn': false blocks time-grunt? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from time-grunt.