Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Timing only specific tasks #5

Closed
sankargorthi opened this issue Oct 24, 2013 · 2 comments
Closed

Timing only specific tasks #5

sankargorthi opened this issue Oct 24, 2013 · 2 comments

Comments

@sankargorthi
Copy link

Is there a way to target a specific task to be timed? Instead of the overall progress?

I have multiple grunt projects under a parent grunt-hub. All my projects have time-grunt on them so I don't necessarily need the parent project to show me the result when I trigger a build. Individual stats are sufficient. However, when I run a distribution task, I'd like to only get the overall build stats and turn off time-grunt for individual tasks. Is it as simple as:

grunt.registerTask('dist', 'Runs the distribution build', function() {
      timeGrunt(grunt);
      ...
});

Or would I have to do something different?

@sindresorhus
Copy link
Owner

Only all tasks supported and I don't want to complicate it with that.

I haven't used grunt-hub, but if it's a task, then it should measure correctly with your above config.

@sankargorthi
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants