From 58aa531813042bb0ec6ff2f87924a7b9b4616b85 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 3 May 2018 13:03:29 +0100 Subject: [PATCH] Cancel repeating client build log on build error refs https://github.com/TryGhost/Ghost/pull/9611 - #9611 added a repeating message to `grunt dev` output whilst waiting for a successful build but there was no handling for failed builds - modify bgShell config to cancel the repeating message when there is output on the `stderr` pipe from `ember-cli` --- Gruntfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index b3c586e4c6..afe2608fb1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -233,7 +233,10 @@ var config = require('./core/server/config'), hasBuiltClient = true; } }, - stderr: true + stderr: function (chunk) { + hasBuiltClient = true; + grunt.log.error(chunk); + } } },