Replies: 2 comments 1 reply
-
Could you post snippets of your file layout? This would help tremendously understanding how you're using Copier. It's very hard to do that from text alone 🙂 |
Beta Was this translation helpful? Give feedback.
-
It seems to me you're mixing the template and the subproject. In the template, you only need Then you use this to generate your subproject:
Then you use that template to render it into a subproject. The subproject will indeed need a |
Beta Was this translation helpful? Give feedback.
-
First of all, thanks for creating this awesome project! I'm currently using it to offer (yet another) FastAPI boilerplate template. In general that works perfectly fine, my question is around local development.
A few important files are templated, e.g.
pyproject.toml
,main.py
and so on, so they're instead calledpyproject.toml.jinja
andmain.py.jinja
respectively. To run, develop and extend the template locally, I need to have those files available though. So far, I'm just having a copy of those files and have the actual file names in.gitignore
to prevent accidental commits.This however would result in a problem after using the template, as the
gitignore
file would still contain the files which have been created from the template, effectively meaning that the user would need to manually change the.gitignore
file. I assume this would result in problems with updates.What would be the recommended workflow to support such scenarios?
Beta Was this translation helpful? Give feedback.
All reactions