4 ms·
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 w
by pptr 2y 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.
- abswest 2y agoYou build a package and publish it to a private registry, so builds can reference specific versions of dependencies from other repos.
- dijit 2y agoWe 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.