kristianfreeman / lerna-wrangler-monorepo-example

Manage multiple Cloudflare Workers + Wrangler projects with Lerna 👼
12 stars 1 forks source link

bundling few repos into one worker script #1

Open toinbis opened 4 years ago

toinbis commented 4 years ago

Is there any workflow(using lerna or otherwise) which would provide a structured approach how to bundle multiple pieces of logic, defined in different repositories, into single worker script? If two teams are developing their logic separately, but at the deploy time those two needs to be combined...

Thanks!

JakubKoralewski commented 4 years ago

This is interesting use case @toinbis, could you explain why not just use a monorepo?

toinbis commented 4 years ago

Czesz Jakub,

my use case is that I write some code that I want my clients to include in their worker. So I simply ended up writing npm package and publishing it in github package manager and giving clients access to it. I guess that is the right approach and therefore hardly a scope of lerna, now that I think of it :)

JakubKoralewski commented 4 years ago

Ahoj Tomas 🇨🇿

Thanks for answering. I thought, you have situation like: a public API and a private API and you'd want separate teams responsible for each to be able to use the same worker, but only work on their respective parts of the worker; but npm makes sense too :D