Jon is a self-taught programmer, started in video games but now does web development. He follows principles, argues for scientific software development, and does not like writing in the 3rd person.
Thanks, I enjoy reading monorepo setups, there are many valid approaches, and little details and pitfalls.
In this case, how would you use local libraries? If your app requires several local libraries out of many.
Also, a small note, I believe docker-compose has been folded into docker compose. It doesn’t really matter to your article, but sometimes it’s nice to install one less tool :)
Hey,
The simplest way I can think of to a local library to the app is to add the library as dependency in the app's package.json and make sure the library is compiled before you start the app.
I've added this step in the repo
If you see the package.json scripts section, I'm just adding a build step for lib before starting/building the apps.
Thanks, I enjoy reading monorepo setups, there are many valid approaches, and little details and pitfalls.
In this case, how would you use local libraries? If your app requires several local libraries out of many.
Also, a small note, I believe
docker-compose
has been folded intodocker compose
. It doesn’t really matter to your article, but sometimes it’s nice to install one less tool :)Hey,
The simplest way I can think of to a local library to the app is to add the library as dependency in the app's package.json and make sure the library is compiled before you start the app.
I've added this step in the repo
If you see the package.json scripts section, I'm just adding a build step for lib before starting/building the apps.
I believe we can extend this approach for multiple libraries.
Not sure if this is the best approach, but it works :)