41 lines
862 B
YAML
41 lines
862 B
YAML
_subdirectory: template
|
|
_templates_suffix: .jinja
|
|
_answers_file: .copier/part.yml
|
|
_envops:
|
|
keep_trailing_newline: true
|
|
|
|
project_name:
|
|
type: str
|
|
help: Project name
|
|
|
|
project_slug:
|
|
type: str
|
|
help: Project slug, snake_case
|
|
default: "{{ project_name | lower | replace(' ', '_') | replace('-', '_') | replace('.', '_') }}"
|
|
|
|
part:
|
|
type: str
|
|
help: Which part this is
|
|
choices:
|
|
backend: backend
|
|
frontend: frontend
|
|
default: backend
|
|
|
|
layout:
|
|
type: str
|
|
help: Where the part lives
|
|
choices:
|
|
In its own directory next to other parts: part
|
|
At the root of the project: root
|
|
default: part
|
|
|
|
service:
|
|
type: str
|
|
help: Compose service name, also the profile and the caddy alias suffix
|
|
default: "{{ 'api' if part == 'backend' else 'frontend' }}"
|
|
|
|
part_dir:
|
|
type: str
|
|
when: false
|
|
default: "{{ part if layout == 'part' else '.' }}"
|