mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b3a00376cd
* Update to Angular & @angular/bazel 7.0.1 * Remove sha256 from io_bazel_rules_sass http_archive
56 lines
2.0 KiB
Plaintext
56 lines
2.0 KiB
Plaintext
###############################
|
|
# Filesystem interactions #
|
|
###############################
|
|
|
|
# Don't create bazel-* symlinks in the WORKSPACE directory.
|
|
# These require .gitignore and may scare users. Also, it's a workaround for
|
|
# https://github.com/bazelbuild/rules_typescript/issues/12 which affects the common case of
|
|
# having `tsconfig.json` in the WORKSPACE directory. Instead, you should run
|
|
# `bazel info output_base` to find out where the outputs went.
|
|
build --symlink_prefix=/
|
|
|
|
# Performance: avoid stat'ing input files
|
|
build --watchfs
|
|
|
|
# Turn off legacy external runfiles
|
|
run --nolegacy_external_runfiles
|
|
test --nolegacy_external_runfiles
|
|
|
|
###############################
|
|
# Output control #
|
|
###############################
|
|
|
|
# A more useful default output mode for bazel query
|
|
# Prints eg. "ng_module rule //foo:bar" rather than just "//foo:bar"
|
|
query --output=label_kind
|
|
|
|
# By default, failing tests don't print any output, it goes to the log file
|
|
test --test_output=errors
|
|
|
|
# Show which actions are run under workers,
|
|
# and print all the actions running in parallel.
|
|
# Helps to demonstrate that bazel uses all the cores on the machine.
|
|
build --experimental_ui
|
|
test --experimental_ui
|
|
|
|
# Configures script to do version stamping.
|
|
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
|
|
build --workspace_status_command=./tools/bazel-stamp-vars.sh
|
|
|
|
###############################
|
|
# Typescript / Angular / Sass #
|
|
###############################
|
|
|
|
# Make compilation fast, by keeping a few copies of the compilers
|
|
# running as daemons, and cache SourceFile AST's to reduce parse time.
|
|
build --strategy=TypeScriptCompile=worker
|
|
build --strategy=AngularTemplateCompile=worker
|
|
|
|
################################
|
|
# Temporary Settings for Ivy #
|
|
################################
|
|
|
|
# Use the legacy AOT compiler strategy. We don't want to compile with Ivy nor with "ngtsc" which
|
|
# does not generate factory files which are needed for AOT.
|
|
build --define=compile=legacy
|