I’ve been experimenting with setting up our code repo to build with CircleCI and I’m finding that the system isn’t particularly well set-up for our monorepo codebase. We have a few projects I’d like to build inside our single, larger repository, but I’m not sure how to handle this kind of project since you can only specify a single build directory. Right now I’m thinking that I’ll need to individually specify all of the test/build commands to run inside each individual application’s subfolders in the test:override: command of the circle.yml file, but that does come with two issues:
- missing out on all of the nice automatic configuration magic
- a slower build which executes every build for every commit
Admittedly the second point isn’t necessarily a problem, and there’s a strong argument to be made that a monorepo should be built in totality. But that aside, configuring a monorepo build isn’t the clearest of processes right now.
Ideally I’d like either a) a nice way to break up my single repository into multiple projects or b) better documentation of how I should approach setup for a multiapp repository. Any guidance would be appreciated!