grunt-colorguard
grunt-colorguard copied to clipboard
output result to textfile instead of console?
Any way to output all the results to a text file instead of console? On large projects this would be helpful.
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');