linemanjs / lineman

Lineman helps you build fat-client JavaScript apps. It produces happiness by building assets, mocking servers, running specs on every file change
MIT License
1.18k stars 83 forks source link

Time-Grunt Integration #392

Closed mosa99 closed 7 years ago

mosa99 commented 7 years ago

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 commented 7 years ago

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.

mosa99 commented 7 years ago

@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 commented 7 years ago

Sorry, but I'm not familiar with the module or how it works.

On Dec 23, 2016, at 9:51 AM, Mark notifications@github.com wrote:

@searls https://github.com/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).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/linemanjs/lineman/issues/392#issuecomment-269000726, or mute the thread https://github.com/notifications/unsubscribe-auth/AAE1x2enFqOPszHakoqCdNwuTcYcESloks5rK9_6gaJpZM4LUjU6.

mosa99 commented 7 years ago

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