1
1
###############################
2
- # Directory structure #
2
+ # Filesystem interactions #
3
3
###############################
4
4
5
5
# 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.
11
10
build --symlink_prefix=/
12
11
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
18
14
19
15
###############################
20
- # Output #
16
+ # Output control #
21
17
###############################
22
18
23
19
# A more useful default output mode for bazel query
24
20
# Prints eg. "ng_module rule //foo:bar" rather than just "//foo:bar"
25
21
query --output=label_kind
26
22
27
- # Don't print every dependency in :node_modules, for example
28
- query --noimplicit_deps
29
-
30
23
# By default, failing tests don't print any output, it goes to the log file
31
24
test --test_output=errors
32
25
@@ -43,9 +36,15 @@ build --workspace_status_command=./tools/bazel-stamp-vars.sh
43
36
###############################
44
37
# Typescript / Angular / Sass #
45
38
###############################
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
47
41
# 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
+ ################################
49
48
50
49
# Use the legacy AOT compiler strategy. We don't want to compile with Ivy nor with "ngtsc" which
51
50
# does not generate factory files which are needed for AOT.
0 commit comments