Defining folder structures templates

Hello,

I am looking toward automating some project initialization with julia. There are different kind of projects and each project has a slightly different folder structure.

I know I can just use a previously existing folder and walkdir it to copy all folders. But I find it awkward: I can’t really use an existing projects since there is no guarantee that it will stay fixed in time as we have to get back to it depending on request, and many projects diverge from the basic folder structure to meet certain requirements. I can define a “clean” folder structure to copy, but that would mean bringing it along and distributing it with the script.

There’s also the need for it to be modular, since some projects will require some extra folders, while others wont. For example:
Project of type 1:

src/
    base_folder1/
        subfolder_for_type1/
    base_folder2/
        subfolder_for_type1/

Project of type 2:

src/
    base_folder1/
    base_folder2/
        subfolder_for_type1/
        subfolder_for_type2/

I am a bit stumped on how to proceed as I am not really sure what would be the best way to define this kind of stuff.

I gave a look at PkgTemplates.jl hoping to find something useful and its plugin system is very interesting and I might want to use something similar to “insert” folders based on a selection of types of projects.

I am turning to the awesome julia community hoping to gather some ideas. Or for someone that has some experience with similar programs that can point me in the right direction!