Initial template

This commit is contained in:
hh
2026-09-08 19:15:15 +02:00
commit 5bb12b0a4f
10 changed files with 117 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
_subdirectory: template
_templates_suffix: .jinja
_answers_file: .copier-answers.infra.yml
_envops:
keep_trailing_newline: true
parts:
type: str
multiselect: true
help: Parts that live in their own directory with a docker-compose.yml and a Makefile
choices:
backend: backend
frontend: frontend
default: []
init_git:
type: bool
help: git init and install pre-commit hooks
default: true
_tasks:
- "{% if _copier_operation == 'copy' and init_git %}git init -q{% else %}true{% endif %}"
- "{% if _copier_operation == 'copy' and init_git %}sh -c 'command -v pre-commit >/dev/null && pre-commit install || true'{% else %}true{% endif %}"