mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
5916eaac13
commit
0b2b3f6d6f
@ -59,7 +59,9 @@ end
|
|||||||
# Running yarn install in the root directory will also run it for YARN_DIR via a post-install hook
|
# 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
|
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")
|
if ARGV.include?("--forward-host")
|
||||||
yarn_env["FORWARD_HOST"] = "true"
|
yarn_env["FORWARD_HOST"] = "true"
|
||||||
end
|
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")
|
if line.include?("\e[32m200\e") || line.include?("\e[36m304\e[0m") || line.include?("POST /message-bus")
|
||||||
# skip 200s and 304s and message bus
|
# skip 200s and 304s and message bus
|
||||||
else
|
else
|
||||||
puts line
|
puts "[ember-cli] #{line}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user