I wanted to see if the fine experts on the forum had any advice on where to put Git submodules into a project’s folder structure. It’s probably going to be a case of “it depends”, though I wanted to see if anyone had any hard earned lessons to share. I currently have a set of code I want to break out into a separate repository for use in other apps (including the one I am taking it out of). It is currently under src/app/… I was planning on creating the new repo, push it to remote, remove the code from the primary project and add it back in as a submodule (and of course add it to other apps in the future).
My question is more of a best practice one, I guess. Where would you place the submodule within your project and why? What are some of the considerations for a scenario like this?