sara4dev / monorepo_example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

monorepo_example

This repo is to setup a monrepo & yse bazel as build tool.

Bazel Cheat Sheets

  • bazel info repository_cache - shows the bazel cache location
  • bazel info output_base - list the output base location
  • bazel clean --explunge - removes all the bazel-*/ directories created by bazel
  • bazel run $(bazel query "kind(buildifier, //...)") - runs all the buildifier targets in the workspace

CI setup

  • scrips/ci.sh is a POC to builds only the chaged packages. Inspired from bazel's CI.

References

Good blog on how to write custom rules

About


Languages

Language:Shell 58.4%Language:Starlark 31.4%Language:Smarty 5.4%Language:Dockerfile 4.1%Language:Rust 0.4%Language:Go 0.2%Language:Python 0.1%