From 0b2b3f6d6f30b291b05fa27e60c7578316b7d67e Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 20 Aug 2024 19:20:47 +0100 Subject: [PATCH] DEV: Show ember-cli build progress when using `bin/ember-cli -u` (#28443) `bin/ember-cli -u` buffers the output of ember-cli, which means progress is not shown clearly. This commit uses `TERM=dumb` to put ember-cli into a more simple mode, which outputs progress on separate lines. Also adds a `[ember-cli]` prefix to all output. --- bin/ember-cli | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/ember-cli b/bin/ember-cli index ee9e46ea0be..69a9870bfee 100755 --- a/bin/ember-cli +++ b/bin/ember-cli @@ -59,7 +59,9 @@ end # Running yarn install in the root directory will also run it for YARN_DIR via a post-install hook exit 1 if !system "yarn", "-s", "install", "--cwd", RAILS_ROOT -yarn_env = {} +yarn_env = { + "TERM" => "dumb", # simple output from ember-cli, so we can parse/forward it more easily +} if ARGV.include?("--forward-host") yarn_env["FORWARD_HOST"] = "true" end @@ -78,7 +80,7 @@ if ARGV.include?("-u") || ARGV.include?("--unicorn") if line.include?("\e[32m200\e") || line.include?("\e[36m304\e[0m") || line.include?("POST /message-bus") # skip 200s and 304s and message bus else - puts line + puts "[ember-cli] #{line}" end end end