From 4390d09d58a3f2ffdfba61016547c0bdca523c09 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 10 Apr 2024 14:01:18 +0000 Subject: [PATCH] build(docs-infra): disable caching of adev inside bazel (#55282) Similar to `aio`, disables caching inside Bazel as it would be discarded anyway and is likely a source of slowness then. PR Close #55282 --- adev/angular.json | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/adev/angular.json b/adev/angular.json index 3b4f4c27bd2..8571f5eab3d 100644 --- a/adev/angular.json +++ b/adev/angular.json @@ -19,9 +19,7 @@ "build": { "builder": "@angular-devkit/build-angular:application", "options": { - "externalDependencies": [ - "path" - ], + "externalDependencies": ["path"], "outputPath": "dist/angular-dev", "index": "src/index.html", "browser": "src/main.ts", @@ -29,11 +27,7 @@ "polyfills": ["src/polyfills.ts", "zone.js"], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", - "assets": [ - "src/favicon.ico", - "src/robots.txt", - "src/assets" - ], + "assets": ["src/favicon.ico", "src/robots.txt", "src/assets"], "styles": ["@angular/docs/styles/global-styles.scss"], "scripts": [], "webWorkerTsConfig": "tsconfig.worker.json", @@ -99,6 +93,11 @@ } }, "cli": { - "analytics": "dca119a9-da31-47f7-a6cb-b60541037021" + "analytics": "dca119a9-da31-47f7-a6cb-b60541037021", + "cache": { + // Disable build caching as the cache folder will just be dropped + // when run under Bazel sandboxed execution. + "enabled": false + } } }