Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez committed May 22, 2023
1 parent fe7aa97 commit 73e4667
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Monorepo

This is a bazel monorepo that I'm hoping eventually will contain most of my side-projects.
This is a bazel monorepo containing most of my side-projects and websites etc. Using a monorepo in this way makes it much easier to ensure linting and deployment are consistent across many projects, and prevents a lot of version rot.

Via the github actions workflows in [.github/workflows/ci.yml], changes in any dependencies are automatically tested and merged.
## Usage

Then, a secondary action runs which increments any version numbers necessary and commits to the [versioned branch]. This branch tracks and increments versions for export to third-party package managers like NPM.
The repo is going through a bit of an identity crisis at the moment. I have just completed migration to rules_js, which uses PNPM -- and the PNPM binary is controlled by bazel itself.

[.github/workflows/ci.yml]: .github/workflows/ci.yml
[versioned branch]: https://github.com/Zemnmez/monorepo/tree/versioned
I recommend having a local 'bazel' installation. However, if you just have NPM installed, you can:

The deploy scripts in [deploy/BUILD] run only on the versioned branch.
```
npx @bazel/bazelisk test //...
```


[deploy/build]: deploy/BUILD
This will recursively run all tests in parallel.

0 comments on commit 73e4667

Please sign in to comment.