Question on setup with parent copier template with child submodules that are also copier templates #1191
Unanswered
aorumbayev
asked this question in
Q&A
Replies: 1 comment
-
It all depends on the specific needs and characteristics of the project. Sometimes you can split the questionary between common and unique questions. Then you can include other questionaries in a single one. Since all answers will be in context, you can use symlinks in Or maybe you can share the most common parts of templates and use jinja include to DRY them. Another option is to split |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given a parent repository (for sake of example, lets name it
fullstack
), that contains 2 git submodules which are self sufficient copier templatesbackend
andfrontend
, is there any simple approach to define parent copier.yaml file which will:I am aware of the copier recommendations on 1 template - 1 repo, hence looking for approaches that do not directly break that recommendation but still allow for code reuse without introducing a lot of duplication ( i deffo do not want to have rolled out instances of those child templates duplicated in the parent codebase).
Any help or suggestions are appreciated! The only approach i figured so far is to use tasks, have an empty folder to be copied, overlapping questions from child copier.yamls merged together as a prerequisite task and then invoke scripts in that will in sequence copy the first child template, the second one and finalize the configuration.
Diagram below is roughly the estimate of what im trying to achieve:
Beta Was this translation helpful? Give feedback.
All reactions