From 3b643b8f3cb33de9623c5211f316ce7edaa4d35a Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Fri, 11 Oct 2019 12:03:59 -0700 Subject: [PATCH] docs: update DEVELOPER.md to include information about RBE and remote caching (#33109) PR Close #33109 --- docs/DEVELOPER.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md index b6c649add1..2d3be7cb07 100644 --- a/docs/DEVELOPER.md +++ b/docs/DEVELOPER.md @@ -154,12 +154,27 @@ The script will publish the build snapshot to a branch with the same name as you and create it if it doesn't exist. ## Bazel support -### VS Code +### IDEs +#### VS Code 1. Install [Bazel](https://marketplace.visualstudio.com/items?itemName=DevonDCarew.bazel-code) extension for VS Code. -### WebStorm / IntelliJ +#### WebStorm / IntelliJ 1. Install the [Bazel](https://plugins.jetbrains.com/plugin/8609-bazel) plugin 1. You can find the settings under `Preferences->Other Settings->Bazel Settings` It will automatically recognize `*.bazel` and `*.bzl` files. + + +### Remote Build Execution and Remote Caching +Bazel builds in the Angular repository use a shared http cache. When a build occurs a hash of the inputs is computed +and checked against available outputs in the shared http cache. If an output is found, it is used as the output for the +build action rather than performing the build locally. + +### --config=remote-http-caching flag +The `--config=remote-http-caching` flag can be added to enable uploading of build results to the shared http cache. This flag +can be added to the `.bazelrc.user` file using the script at `scripts/local-dev/setup-rbe.sh`. + +### --config=remote flag +The `--config=remote-http-caching` flag can be added to enable remote execution of builds. This flag can be added to +the `.bazelrc.user` file using the script at `scripts/local-dev/setup-rbe.sh`. \ No newline at end of file