Reputation: 8416
Is there a simple way to log the command-line output of a grunt
task to the browser? By "log" I mean take the input &/or output of the command line and display it in a browser. I know I can write a whole big application to do this, but is there a grunt
plugin or anything that already does it?
The reason I am asking is because I am asking another question on this site that requires me to show some grunt
tasks and their output. However, there is more than 1 file and, while not overly long files, they're overly long for a StackOverflow question. I'm thinking I can either upload the files to StackExchange and let answerers download them, or create a JSFiddle. I'm pretty much asking how I should create that JSFiddle.
Upvotes: 1
Views: 336
Reputation: 48
You can have a look on Grunt website : http://gruntjs.com/api/grunt.log
grunt.log.debug('watch');
Upvotes: 1