You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Monorepo - we keep it in cloak. This may mean we need to move its package.json to the root of the repo (not sure though, this is a requirement when specifying a dep on it using git+ssh, but maybe its not needed if we move to use npm publish)
Own-repo - we move it to something like dagger/cloak-nodejs-sdk
I'm a monorepo guy, but i also feel that having every sdk in their own repo would make more sense as there are projects in their own right.
However does it mean that we'll need to "keep an eye" on every repo if users contribute (open issues or PR) ?
How about users who want also to contribute by creating a new sdk ?
I like option no. 1. After reconsidering and looking at a few repos, I can see that it's really straightforward to have different npm packages in a same repo.
Here is Next.js with each package in a different folder.
You can see that they have different packages for different languages (Rust, JS) and they are scoped to that directory.
The package.json in create-next-app packages seems straightforward:
Seems like everyone likes monorepos (me too), so I ended up finding a way to make that work while still being able to keep the nodejs sdk in it's own dir. The commit with that change is here: dagger/cloak@6aaa827
Gonna close this issue for now as it seems like this should be the approach going forward until proven otherwise.
Activity
slumbering commentedon Aug 25, 2022
I'm a monorepo guy, but i also feel that having every sdk in their own repo would make more sense as there are projects in their own right.
However does it mean that we'll need to "keep an eye" on every repo if users contribute (open issues or PR) ?
How about users who want also to contribute by creating a new sdk ?
crjm commentedon Aug 25, 2022
I like option no. 1. After reconsidering and looking at a few repos, I can see that it's really straightforward to have different npm packages in a same repo.
Here is Next.js with each package in a different folder.
You can see that they have different packages for different languages (Rust, JS) and they are scoped to that directory.
The
package.jsonincreate-next-apppackages seems straightforward:slumbering commentedon Aug 29, 2022
We've get an interesting user feedback during a Cloak community call today. It was about how a big German car company is handling its repo with josh project which basically combine the advantages of a monorepo with those of multirepo setups. More to read here: https://github.com/josh-project/josh
cc @sipsma @aluzzardi
sipsma commentedon Sep 2, 2022
Seems like everyone likes monorepos (me too), so I ended up finding a way to make that work while still being able to keep the nodejs sdk in it's own dir. The commit with that change is here: dagger/cloak@6aaa827
Gonna close this issue for now as it seems like this should be the approach going forward until proven otherwise.