From c709584f3eee05c7ff80c93a41be7976a9c34413 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 13 Jun 2019 17:13:20 -0700 Subject: [PATCH] feat(create): add worker flags for ts and ng This should help users stay on the happy path --- common.bazelrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common.bazelrc b/common.bazelrc index f561c064ba..86c594f9e2 100644 --- a/common.bazelrc +++ b/common.bazelrc @@ -15,6 +15,13 @@ build --symlink_prefix=dist/ # build --symlink_prefix=/ # however this makes it harder to find outputs. +# Make compilation fast, by keeping a few copies of the compilers +# running as workers. These can cache SourceFile AST's to reduce parse time. +# You can control how many workers, see +# https://docs.bazel.build/versions/master/command-line-reference.html#flag--worker_max_instances +build --strategy=AngularTemplateCompile=worker +build --strategy=TypeScriptCompile=worker + # Specifies desired output mode for running tests. # Valid values are # 'summary' to output only test status summary