Files
infra/copier.yml
T
2026-09-08 19:15:15 +02:00

24 lines
665 B
YAML

_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 %}"