Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time-Grunt Integration #392

Closed
mosa99 opened this issue Dec 23, 2016 · 4 comments
Closed

Time-Grunt Integration #392

mosa99 opened this issue Dec 23, 2016 · 4 comments

Comments

@mosa99
Copy link

mosa99 commented Dec 23, 2016

It would be great to have https://github.com/sindresorhus/time-grunt layered in (or somthing that tracks the time of all the grunt tasks). I find as the day goes on things can get quite slow so I'm using this to try and troubleshoot the bottleneck.

I was able to add it in via manually changing the Gruntfile but I would assume there is a more graceful way:

/*global module:false*/
var timer = require("grunt-timer");

module.exports = function (grunt) {
  timer.init(grunt, { friendlyTime: true });
  require('./config/lineman').config.grunt.run(grunt);
};
@searls
Copy link
Member

searls commented Dec 23, 2016

If this worked for you I'd just roll with it. I don't think we'd pull this into the core lineman project since it's only necessary when profiling performance.

@searls searls closed this as completed Dec 23, 2016
@mosa99
Copy link
Author

mosa99 commented Dec 23, 2016

@searls Is there a more elegant way to integrate it (without having to go into the gruntifle directly?)? Currently for example the "total" doesn't display until the "Watch" task is finished (basically when a change is detected).

@searls
Copy link
Member

searls commented Dec 23, 2016 via email

@mosa99
Copy link
Author

mosa99 commented Dec 23, 2016

@searls Thanks, sorry for the basic questions, still trying to figure out how to properly incorporate grunt through the lineman configs, etc.

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

No branches or pull requests

2 participants