Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
On GitHub, how do you refactor pieces of your code from multiple repos? Do you create a library repo? Would it make sense to instead switch to a monorepo? Merging repost from different apps into a single one and then extract the lib.
4 replies
0 recast
4 reactions

Zinger ↑ pfp
Zinger ↑
@zinger
I would lean towards a monorepo if possible, the tooling around them has gotten quite good with things like Turborepo. What stack are you using?
1 reply
0 recast
0 reaction

‍‍ pfp
‍‍
@git
Monorepo is ok. Depending on the language/runtime. If for example you're using deno then you can import github files directly. If using node then you can install github repositories as if they were npm packages. Go uses github repositories for packages Using git submodules is the worst option ime
1 reply
0 recast
0 reaction

Devin Conley pfp
Devin Conley
@dcon.eth
I tend to avoid the monorepo. Prefer setting up the factored out code as a native package when possible (npm, pip, etc). Otherwise just use a subrepo
0 reply
0 recast
0 reaction

Pierrick pfp
Pierrick
@pierrick
Do you have any example? It depends on what you are trying to achieve.
0 reply
0 recast
0 reaction