Skip to content

Commit 0096015

Browse files
authored
build: add back bazelrc (#1110)
1 parent e80b2f1 commit 0096015

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.bazelrc

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
###############################
2+
# Filesystem interactions #
3+
###############################
4+
5+
# Don't create bazel-* symlinks in the WORKSPACE directory.
6+
# These require .gitignore and may scare users. Also, it's a workaround for
7+
# https://github.com/bazelbuild/rules_typescript/issues/12 which affects the common case of
8+
# having `tsconfig.json` in the WORKSPACE directory. Instead, you should run
9+
# `bazel info output_base` to find out where the outputs went.
10+
build --symlink_prefix=/
11+
12+
# Performance: avoid stat'ing input files
13+
build --watchfs
14+
15+
# Turn off legacy external runfiles
16+
run --nolegacy_external_runfiles
17+
test --nolegacy_external_runfiles
18+
19+
###############################
20+
# Output control #
21+
###############################
22+
23+
# A more useful default output mode for bazel query
24+
# Prints eg. "ng_module rule //foo:bar" rather than just "//foo:bar"
25+
query --output=label_kind
26+
27+
# By default, failing tests don't print any output, it goes to the log file
28+
test --test_output=errors
29+
30+
# Show which actions are run under workers,
31+
# and print all the actions running in parallel.
32+
# Helps to demonstrate that bazel uses all the cores on the machine.
33+
build --experimental_ui
34+
test --experimental_ui
35+
36+
#################################
37+
# Release configuration. #
38+
# Run with "--config=release" #
39+
#################################
40+
41+
# Configures script to do version stamping.
42+
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
43+
build:release --workspace_status_command=./tools/bazel-stamp-vars.sh
44+
45+
###############################
46+
# Typescript / Angular / Sass #
47+
###############################
48+
49+
# Make compilation fast, by keeping a few copies of the compilers
50+
# running as daemons, and cache SourceFile AST's to reduce parse time.
51+
build --strategy=TypeScriptCompile=worker
52+
build --strategy=AngularTemplateCompile=worker
53+
54+
################################
55+
# Temporary Settings for Ivy #
56+
################################
57+
58+
# Use the legacy AOT compiler strategy. We don't want to compile with Ivy nor with "ngtsc" which
59+
# does not generate factory files which are needed for AOT.
60+
build --define=compile=legacy
File renamed without changes.

0 commit comments

Comments
 (0)