sindresorhus / time-grunt

Display the elapsed execution time of grunt tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

time-grunt makes grunt slow while not running any task

oosterholt opened this issue · comments

time-grunt makes running of grunt very slow when not running tasks.
E.g.

grunt --verbose --version 

I noticed this because "grunt bash completion" uses exact that command.

Issue needs reopening; when running grunt --verbose --version, Available tasks is empty..

I opened this issue because of grunt bash completion (grunt --verbose --version).
Now I see a similar issue in Netbeans 8. It uses grunt --help --no-color to get available tasks.

The patch doesn't fix this neither. IMHO the patch should "check for grunt run with tasks" instead of hard coding the exceptions (bash completion, Netbeans, other? trying to get available tasks)...

@dylang any thoughts?

This is fixed by #29.

Or at least it could fix the problem. I can't use completion without #29.

With regards to slowness in general, could time-grunt.js#L27 cause performance problems?

@oosterholt can you try out 0.2.9?

Tested 0.2.9; works like a charm!
Thanks a lot guys.