The biggest and the best in the Northwest

Logging in Grunt

I gave a lightning talk at the December SeattleJS Meetup on logging in Grunt. It was a quick and dirty walk-through on using the grunt.log api to add custom log messages, the use of --verbose and --debug when running grunt tasks and a few small bonuses about using color strings in your log messages and using the awesome grunt-prompt library.

Pro Grunt Logging on slid.es (the easiest way to view the presentation below is by using your back/forward arrow keys or opening the presentation in a new window).

Colors in grunt – using colors isn’t documented on the grunt project site from what I could find but if you consult the source code on github – gruntjs/lib/grunt/log.js, you find the colors package is used internally. The colors npm package documentation can be found at https://github.com/Marak/colors.js.