I'd like to use a DUB package library written by someone else with some existing d source code of my own. My existing source has been using Git, and has not been using DUB.
I'd like to continue using the same Git repo after incorporating the DUB package.
I've tried various settings in dub.json, but none seem to work with this situation. I'd hate to do a dub init, then manually copy everything over and link back to my Git repo.
What is my best option?
If you only want to use the library, you can clone it and pass it to the compiler when compiling using
-I, read more hereIf you want to add
dubsupport to your project, just create asourcedirectory, copy your project into it and create adub.jsonfile, plus rename your entry point file toapp.d, or change the entry file in thedub.json, you can read more about that here