Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .bazelrc.user.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Local development settings for macOS
# Copy this file to .bazelrc.user to enable these settings.
#
# macOS sandbox blocks network access during prerendering (Algolia API calls).
# Use local spawn strategy to allow network access.
build --spawn_strategy=local
2 changes: 1 addition & 1 deletion .github/workflows/adev-preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
common --color=yes
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@01c8c16f830d02110c28640aea16f145a7937080
- uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@0512a5b9381ccff00c278d7b4b6ee38e5c09654d
with:
workflow-artifact-name: 'adev-preview'
pull-number: '${{ github.event.pull_request.number }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/adev-preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: angular/dev-infra/github-actions/previews/upload-artifacts-to-firebase@01c8c16f830d02110c28640aea16f145a7937080
- uses: angular/dev-infra/github-actions/previews/upload-artifacts-to-firebase@0512a5b9381ccff00c278d7b4b6ee38e5c09654d
with:
github-token: '${{secrets.GITHUB_TOKEN}}'
workflow-artifact-name: 'adev-preview'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.tmp
.env
.textlintcache
.bazelrc.user
build
node_modules
8 changes: 7 additions & 1 deletion tools/lib/setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { consola } from 'consola';
import { $ } from 'execa';
import { mkdir } from 'node:fs/promises';
import { appendFile, mkdir, readFile } from 'node:fs/promises';
import { resolve } from 'node:path';
import { cpRf, exists, rmrf } from './fsutils';
import { applyPatches, copyLocalizedFiles } from './localize';
Expand Down Expand Up @@ -31,4 +31,10 @@ async function initBuildDir() {
await mkdir(buildDir, { recursive: true });
await cpRf(resolve(rootDir, 'origin'), buildDir);
await cpRf(resolve(rootDir, '.bazelrc'), resolve(buildDir, '.bazelrc.user'));
// Append user's local bazelrc settings if exists
const userBazelrc = resolve(rootDir, '.bazelrc.user');
if (await exists(userBazelrc)) {
const content = await readFile(userBazelrc, 'utf-8');
await appendFile(resolve(buildDir, '.bazelrc.user'), '\n' + content);
}
}