Best Practice to manage large projects with dub?
max haughton
maxhaton at gmail.com
Fri May 13 18:10:38 UTC 2022
On Friday, 13 May 2022 at 17:51:55 UTC, Ozan Süel wrote:
> Hi
> My situation: I'm working on and with many projects based on
> many libraries. I know how to handle these in Git, GitHub and
> Dub. But what would be the Best Practice in current dub?
>
> Let's say, we have many apps (1 app = 1 package), which use
> several libs (Every app has his own set of used libs, some are
> overlapping with other apps), every lib requires new libs to
> work (some are overlapping),and so on.
>
> Let's say we want to have 10 apps and need in sum 100 packages
> with every possible combinations.
>
> One way would be, to pump the dub package manager with 100 new
> packages for building only 10 apps. I would like to avoid fill
> the dub database with small packages it. An deprecated way is
> to combine dub with github, which still works fine to me.
>
> What would be good way to manage many small libs to build few
> big apps? Maybe the solution is around the corner, but better
> to ask the experts.
>
> Thanks in advance
>
> Greetings, Ozan
I would highly recommend keeping these small libs in a common
repository (a monorepo if you will) but in a manner that only
what is needed is required.
Lots of projects/repositories/dub.jsons == pain
More information about the Digitalmars-d-learn
mailing list