Skip to content
Public template

About

Personal project/experiment monorepo

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Monorepo

Monorepo for my personal projects. Also serves as a demo for doing things the "right way". This always means using the most correct, most modern, most powerful tool for the job. There is no such thing as overkill.

Initialize

On the host:

git clone https://github.com/rdong8/monorepo.git
cd monorepo/

WARNING: currently devcontainer.json is set up to expect the repository to be cloned to ~/projects on the host.

Bootstrap the host:

just initialize-host

Then run id on the host to determine your user's UID and GID. Use that to fill in the build.dockerfile.args.HOST_UID and build.dockerfile.args.HOST_GID values in the devcontainer.json file.

Then set the dotfiles.repository setting in VS Code to your dotfiles repository. Note that your install script MUST add Linuxbrew to the fish PATH.

Then build the devcontainer. Wait until the terminal titled Configuring... completes (rebuilds should be quick).

All commands after this point are to be run in the devcontainer, not on the host.

Development Workflow

See the justfile.

Register pre-commit hooks to run automatically:

just pre-commit-install
just pre-commit # Or manually run it

Install Bazel shell completions:

just bazel-completions

Install agent skills:

just skills

Build compile commands:

just compile_commands

Build and serve the doxygen documentation:

just docs

Tail last Bazel invocation:

just tail

Clean the Bazel build directories (you shouldn't actually ever have to do this):

just clean

Rust

To develop non-monorepo Rust projects, run scripts/setup_rust.fish.

About

Personal project/experiment monorepo

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages