Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
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
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
- checkout
- restore_cache:
key: tsickle-{{ checksum "yarn.lock" }}
- run: yarn install # don't bazel's yarn, since yarn install calls bazel, and bazel can't reenter
# Don't lock the bazel server, so that yarn can call bazel again
- run: bazel run @yarn//:yarn --script_path=yarn_install.sh && ./yarn_install.sh
- run: bazel build ...
- save_cache:
key: tsickle-{{ checksum "yarn.lock" }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@

# Bazel working directories
/bazel-*

# See reference to this file in the README.md
yarn_install.sh
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ builds that are seen outside of Google.
We would like to make tsickle usable for everyone but right now if you'd like
to try it you should expect to spend some time debugging and reporting bugs.

## Installation

- Execute `npm i` to install the dependencies.

## Usage

### Project Setup
Expand Down Expand Up @@ -102,6 +98,16 @@ Example:

## Development

### One-time setup

Run `bazel run @yarn//:yarn --script_path=yarn_install.sh && ./yarn_install.sh`
to install the dependencies.

> This avoids occupying the `bazel` server, so that `yarn` can call `bazel`
> again.
> Ideally we should just use `bazel-run.sh @yarn//:yarn`, see
> https://stackoverflow.com/questions/47082298/how-can-users-get-bazel-run-sh

### Test commands

- `ibazel test test:unit_test` executes the unit tests in watch mode (use `bazel test test:unit_test` for a
Expand Down