wecodemore / grunt-githooks

A Grunt plugin to help bind Grunt tasks to Git hooks
https://npmjs.org/package/grunt-githooks
MIT License
317 stars 24 forks source link

See if it's possible to keep pretty formatting in hook output #9

Closed romaricpascal closed 9 years ago

romaricpascal commented 11 years ago

At least in Windows, as noticed by @andrewjmead in #6:

Grunt output:

Grunt output with pretty formatting

Hook output:

Hook output, lost colors and line breaks

It would be nice if Grunt pretty output was kept when run inside hooks

romaricpascal commented 11 years ago

It would be nice to have live updates of the output, rather than waiting for the task to complete before printing the content of stdout.

andrewjmead commented 10 years ago

I was thinking about this a little more. I think the solution to this problem was solved in https://github.com/gruntjs/grunt-contrib-watch.

I'm going to look into their source for how they rerun tasks with the pretty print.

c089 commented 10 years ago

@andrewjmead could you test the template from #17 on your windows box and see if that fixes your problem?

franz-josef-kaiser commented 10 years ago

https://github.com/wecodemore/grunt-githooks/issues/18

franz-josef-kaiser commented 10 years ago

Anyway, we had the same problem with GitPHPHooks and after inspecting this this sadly is a won't fix.

F1LT3R commented 9 years ago

Can we at least get the output without it being pretty?

franz-josef-kaiser commented 9 years ago

@F1LT3R Sure. Do you want to work on an ASCII-only patch?