43 lines
990 B
YAML
43 lines
990 B
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: []
|
|
|
|
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 %}"
|