Skip to content

Commit 183df8f

Browse files
devversionjosephperrott
authored andcommitted
build: move bazel config to workspace root (#13644)
1 parent 6fae3bf commit 183df8f

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

tools/bazel.rc renamed to .bazelrc

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
###############################
2-
# Directory structure #
2+
# Filesystem interactions #
33
###############################
44

55
# Don't create bazel-* symlinks in the WORKSPACE directory.
6-
# These require .gitignore and may scare users.
7-
# Also, it's a workaround for https://github.com/bazelbuild/rules_typescript/issues/12
8-
# which affects the common case of having `tsconfig.json` in the WORKSPACE directory.
9-
#
10-
# Instead, you should run `bazel info bazel-bin` to find out where the outputs went.
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.
1110
build --symlink_prefix=/
1211

13-
# Another good choice is to create a dist/ directory. Then you can use
14-
# build --symlink_prefix=dist/
15-
# to get folders like dist/bin
16-
# But be aware, this will still create a bazel-out symlink in your project directory.
17-
# You may still need to exclude that, eg. from the editor's search path.
12+
# Performance: avoid stat'ing input files
13+
build --watchfs
1814

1915
###############################
20-
# Output #
16+
# Output control #
2117
###############################
2218

2319
# A more useful default output mode for bazel query
2420
# Prints eg. "ng_module rule //foo:bar" rather than just "//foo:bar"
2521
query --output=label_kind
2622

27-
# Don't print every dependency in :node_modules, for example
28-
query --noimplicit_deps
29-
3023
# By default, failing tests don't print any output, it goes to the log file
3124
test --test_output=errors
3225

@@ -43,9 +36,15 @@ build --workspace_status_command=./tools/bazel-stamp-vars.sh
4336
###############################
4437
# Typescript / Angular / Sass #
4538
###############################
46-
# Make TypeScript and Angular compilation fast, by keeping a few copies of the compiler
39+
40+
# Make compilation fast, by keeping a few copies of the compilers
4741
# running as daemons, and cache SourceFile AST's to reduce parse time.
48-
build --strategy=TypeScriptCompile=worker --strategy=AngularTemplateCompile=worker
42+
build --strategy=TypeScriptCompile=worker
43+
build --strategy=AngularTemplateCompile=worker
44+
45+
################################
46+
# Temporary Settings for Ivy #
47+
################################
4948

5049
# Use the legacy AOT compiler strategy. We don't want to compile with Ivy nor with "ngtsc" which
5150
# does not generate factory files which are needed for AOT.

0 commit comments

Comments
 (0)