2017-11-02 15:15:47 -04:00
|
|
|
###############################
|
|
|
|
# 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
|
|
|
|
|
2017-12-06 09:56:49 -05:00
|
|
|
# Enable debugging tests with --config=debug
|
|
|
|
test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results
|
|
|
|
|
2017-11-02 15:15:47 -04:00
|
|
|
###############################
|
|
|
|
# Filesystem interactions #
|
|
|
|
###############################
|
|
|
|
|
2018-02-22 12:47:09 -05:00
|
|
|
# Don't create symlinks like bazel-out in the project.
|
|
|
|
# These cause VSCode to traverse a massive tree, opening file handles and
|
|
|
|
# eventually a surprising failure with auto-discovery of the C++ toolchain in
|
|
|
|
# MacOS High Sierra.
|
|
|
|
# See https://github.com/bazelbuild/bazel/issues/4603
|
|
|
|
build --symlink_prefix=/
|
2017-11-02 15:15:47 -04:00
|
|
|
|
|
|
|
# Performance: avoid stat'ing input files
|
|
|
|
build --watchfs
|
|
|
|
|
2018-02-13 11:20:35 -05:00
|
|
|
###############################
|
|
|
|
# Release support #
|
|
|
|
###############################
|
|
|
|
|
|
|
|
build --workspace_status_command=./tools/bazel_stamp_vars.sh
|
|
|
|
|
2017-11-02 15:15:47 -04:00
|
|
|
###############################
|
|
|
|
# Output #
|
|
|
|
###############################
|
|
|
|
|
|
|
|
# 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
|
2017-12-06 09:56:49 -05:00
|
|
|
|
2018-01-25 12:55:27 -05:00
|
|
|
################################
|
|
|
|
# Settings for CircleCI #
|
|
|
|
################################
|
2017-12-13 12:18:16 -05:00
|
|
|
|
2018-01-25 12:55:27 -05:00
|
|
|
# Bazel flags for CircleCI are in /.circleci/bazel.rc
|