Created
June 14, 2020 00:50
-
-
Save afifalfiano/dff8f1fe740e34204bf5be4e08ea6cd8 to your computer and use it in GitHub Desktop.
file .bazelrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make TypeScript and Angular compilation fast, by keeping a few copies of the | |
# compiler running as daemons, and cache SourceFile AST's to reduce parse time. | |
build --strategy=TypeScriptCompile=worker | |
build --strategy=AngularTemplateCompile=worker | |
# Don't create bazel-* symlinks in the WORKSPACE directory, except `bazel-out`, | |
# which is mandatory. | |
# 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, the output will appear in `dist/bin`. You'll need to ignore the | |
# `bazel-out` directory that is created in the workspace root. | |
build --symlink_prefix=dist-bazel/ | |
# Turn on --incompatible_strict_action_env which was on by default | |
# in Bazel 0.21.0 but turned off again in 0.22.0. Follow | |
# https://github.com/bazelbuild/bazel/issues/7026 for more details. | |
# This flag is needed to so that the bazel cache is not invalidated | |
# when running bazel via `yarn bazel`. | |
# See https://github.com/angular/angular/issues/27514. | |
build --incompatible_strict_action_env | |
run --incompatible_strict_action_env | |
test --incompatible_strict_action_env | |
# build --incompatible_bzl_disallow_load_after_statement=false | |
test --test_output=errors | |
# Use the Angular Ivy compiler | |
# See https://github.com/angular/angular/blob/master/docs/BAZEL.md#various-flags-used-for-tests | |
build --define=angular_ivy_enabled=True | |
# Temporary define while angular depends on the legacy rollup_bundle rule. | |
# TODO: remove this setting after https://github.com/angular/angular/pull/33201 lands. | |
build --define=enable_legacy_rollup_rule=1 | |
# Turn on managed directories feature in Bazel | |
# This allows us to avoid installing a second copy of node_modules | |
common --experimental_allow_incremental_repository_updates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment