Initial template
This commit is contained in:
commit
9f2788e4cf
9 files changed
+138
No files matched your search
+40
@@ -0,0 +1,40 @@
|
||||
_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 '.' }}"
|
||||
Reference in new issue
Block a user