Single part at the root, COMPOSE_FILE in .env
This commit is contained in:
+21
-3
@@ -25,6 +25,14 @@ author_email:
|
||||
type: str
|
||||
default: ""
|
||||
|
||||
layout:
|
||||
type: str
|
||||
help: Where the backend lives
|
||||
choices:
|
||||
In backend/ next to other parts: part
|
||||
At the root of the project: root
|
||||
default: part
|
||||
|
||||
backend_services:
|
||||
type: str
|
||||
multiselect: true
|
||||
@@ -84,7 +92,7 @@ dynamic_config:
|
||||
|
||||
serve_spa:
|
||||
type: bool
|
||||
when: "{{ 'api' in backend_services }}"
|
||||
when: "{{ layout == 'part' and 'api' in backend_services }}"
|
||||
help: Serve the frontend build from the api as a SPA
|
||||
default: false
|
||||
|
||||
@@ -93,6 +101,16 @@ install_deps:
|
||||
help: uv sync after generation
|
||||
default: true
|
||||
|
||||
part_dir:
|
||||
type: str
|
||||
when: false
|
||||
default: "{{ 'backend' if layout == 'part' else '.' }}"
|
||||
|
||||
prefix:
|
||||
type: str
|
||||
when: false
|
||||
default: "{{ 'backend/' if layout == 'part' else '' }}"
|
||||
|
||||
_tasks:
|
||||
- "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd backend && uv sync'{% else %}true{% endif %}"
|
||||
- "{% if install_deps %}sh -c 'cd backend && uv run ruff format -q'{% else %}true{% endif %}"
|
||||
- "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd {{ part_dir }} && uv sync'{% else %}true{% endif %}"
|
||||
- "{% if install_deps %}sh -c 'cd {{ part_dir }} && uv run ruff format -q'{% else %}true{% endif %}"
|
||||
|
||||
Reference in New Issue
Block a user