From d78254009e5b39b60433fe5d41354b8419573adc Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 16 Jul 2018 22:40:42 -0400 Subject: [PATCH] Reduce unnecessary build output. --- BUILD.gn | 1 + tools/run_node.py | 2 +- tools/util.py | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index e3ab4a187d..452f35b048 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -178,6 +178,7 @@ run_node("bundle") { args = [ "./node_modules/parcel-bundler/bin/cli.js", "build", + "--log-level=1", # Only disply errors. "--no-minify", "--out-dir", rebase_path(out_dir, root_build_dir), diff --git a/tools/run_node.py b/tools/run_node.py index afa861020f..4f6c87b910 100755 --- a/tools/run_node.py +++ b/tools/run_node.py @@ -16,4 +16,4 @@ target_abs = os.path.join(third_party_path, "node_modules") target_rel = os.path.relpath(target_abs) util.remove_and_symlink(target_rel, "node_modules", True) -util.run(["node"] + sys.argv[1:]) +util.run(["node"] + sys.argv[1:], quiet=True) diff --git a/tools/util.py b/tools/util.py index 40c98e3367..6874f80009 100644 --- a/tools/util.py +++ b/tools/util.py @@ -4,8 +4,9 @@ import os import subprocess -def run(args): - print " ".join(args) +def run(args, quiet=False): + if not quiet: + print " ".join(args) env = os.environ.copy() if os.name == "nt": # Run through shell to make .bat/.cmd files work.