Hacker News new | ask | show | jobs
by pptr 785 days ago
How do you share config files, protobuf schema, etc. between frontend and backend if you have different repos for each?

I have only worked in large codebases with monorepo, so I'm curious.

2 comments

You build a package and publish it to a private registry, so builds can reference specific versions of dependencies from other repos.
We use a jenkins job that watches the “source of truth” repo, which in our case is the backend.

Jenkins creates all the protobuf definitions and pushes them to their dependent repos.

A better way would be with a package repository for them, and having it versioned; and running multiple versions of the backend.