Currently, the template is split into multiple directories in templates so parts can be selected when generating or updating packages, which is the design of PkgSkeleton.generate which we are calling out to. Instead, I think it would be better to merge them into a single template, and allow specifying a list of folders or files of that template to include or ignore when generating or updating packages.
An issue is that it may require invasive changes to PkgSkeleton.generate or rewriting a lot of that package here, which isn't ideal. However, we could still use PkgSkeleton.generate by creating temporary directories out of the selected folders and files so it still matches the folder structure expected by PkgSkeleton.generate.
Currently, the template is split into multiple directories in
templatesso parts can be selected when generating or updating packages, which is the design ofPkgSkeleton.generatewhich we are calling out to. Instead, I think it would be better to merge them into a single template, and allow specifying a list of folders or files of that template to include or ignore when generating or updating packages.An issue is that it may require invasive changes to
PkgSkeleton.generateor rewriting a lot of that package here, which isn't ideal. However, we could still usePkgSkeleton.generateby creating temporary directories out of the selected folders and files so it still matches the folder structure expected byPkgSkeleton.generate.