Files
infra/copier.yml
T

52 lines
1.1 KiB
YAML

_subdirectory: template
_templates_suffix: .jinja
_answers_file: .copier/infra.yml
_envops:
keep_trailing_newline: true
project_name:
type: str
help: Project name
default: Project
project_description:
type: str
help: Short description
default: ""
layout:
type: str
help: Where the code lives
choices:
Parts in their own directories: parts
A single part at the root: single
default: parts
parts:
type: str
multiselect: true
when: "{{ layout == 'parts' }}"
help: Parts that live in their own directory with a docker-compose.yml and a Makefile
choices:
backend: backend
frontend: frontend
default: []
mcp_servers:
type: str
multiselect: true
help: MCP servers in .mcp.json
choices:
Context7 (library docs): context7
Svelte docs: svelte
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 %}"