grunt-colorguard icon indicating copy to clipboard operation
grunt-colorguard copied to clipboard

output result to textfile instead of console?

Open joseph-jja opened this issue 9 years ago • 1 comments

Any way to output all the results to a text file instead of console? On large projects this would be helpful.

joseph-jja avatar Jul 02 '15 18:07 joseph-jja

grunt.log is what this task uses to produce its output. It doesn't look like there's any way to override the log stream for a specific task — is this something you'd like me to add specifically?

One workaround would be running just your colorguard task, and piping those results to a file:

grunt --no-color colorguard > out

Another would be to modify grunt.log.options.outStream before and after the task:

var fs = require('fs');
grunt.log.options.outStream = fs.createWriteStream('out');

elliottwilliams avatar Jul 09 '15 04:07 elliottwilliams