# Disable NG CLI TTY mode test --action_env=NG_FORCE_TTY=false # 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 ############################### # 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=dist/ # Turn off legacy external runfiles build --nolegacy_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 test ################################# # Release configuration. # # Run with "--config=release" # ################################# # Releases should always be stamped with version control info # This command assumes node on the path and is a workaround for # https://github.com/bazelbuild/bazel/issues/4802 build:release --workspace_status_command="yarn -s ng-dev release build-env-stamp --mode=release" build:release --stamp ############################### # 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 # ################################ build --define=angular_ivy_enabled=True ############################### # NodeJS rules settings # These settings are required for rules_nodejs ############################### # 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