I’m trying to test my changes to a component library (
comp_lib) with a consuming application (
app) before I publish the changes to the Github Package Repo.
A bit of background, here is what our architecture looks like:
comp_lib: a React component library that has common components for all our company products. This is published to Github Package Repo.
app: Our main app that consumes some components from
comp_lib. This installs the
comp_libfrom our private Github Private Repo.
app2: Another app that consumes components from
comp_libin the same way
When modifying anything in
comp_lib it’s important that
app2 are tested locally somehow before publishing.
There are two ways I’m thinking of doing this:
comp_libin a local server (ngrok?) and have my
apppoint to that server. I have no experience with this, has anyone done this?
The second way I’m thinking of doing this is simply publishing
comp_libto a second repository that’s meant for developing. I change the
appto consume that package when testing my changes temporarily. This doesn’t seem like a good long term solution once I have a bigger team modifying the same repo.
Would love to hear about best practices around this.