From a2527bf9998cbbc94353d254323ae5fcd9d488f9 Mon Sep 17 00:00:00 2001 From: vladikoff Date: Wed, 6 Aug 2014 10:15:27 -0700 Subject: [PATCH] Switch to "log.ok". Only show source map log if maps are created. --- tasks/coffee.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/coffee.js b/tasks/coffee.js index 7b9094b..5440f79 100644 --- a/tasks/coffee.js +++ b/tasks/coffee.js @@ -44,8 +44,10 @@ module.exports = function(grunt) { } }); - grunt.log.writeln(actionCounts.fileCreated + ' files created.'); - grunt.log.writeln(actionCounts.mapCreated + ' source map files created.'); + grunt.log.ok(actionCounts.fileCreated + ' files created.'); + if (actionCounts.mapCreated > 0) { + grunt.log.ok(actionCounts.mapCreated + ' source map files created.'); + } });