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.
This commit is contained in:
David Taylor 2024-08-20 19:20:47 +01:00 committed by GitHub
parent 5916eaac13
commit 0b2b3f6d6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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