Single part at the root, COMPOSE_FILE in .env
This commit is contained in:
+19
-1
@@ -13,6 +13,14 @@ project_slug:
|
||||
help: Package name, snake_case
|
||||
default: "{{ project_name | lower | replace(' ', '_') | replace('-', '_') | replace('.', '_') }}"
|
||||
|
||||
layout:
|
||||
type: str
|
||||
help: Where the frontend lives
|
||||
choices:
|
||||
In frontend/ next to other parts: part
|
||||
At the root of the project: root
|
||||
default: part
|
||||
|
||||
serve:
|
||||
type: str
|
||||
help: How the frontend is served
|
||||
@@ -44,5 +52,15 @@ frontend_adapter:
|
||||
when: false
|
||||
default: "{{ 'bun' if serve == 'bun' else 'static' }}"
|
||||
|
||||
part_dir:
|
||||
type: str
|
||||
when: false
|
||||
default: "{{ 'frontend' if layout == 'part' else '.' }}"
|
||||
|
||||
prefix:
|
||||
type: str
|
||||
when: false
|
||||
default: "{{ 'frontend/' if layout == 'part' else '' }}"
|
||||
|
||||
_tasks:
|
||||
- "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd frontend && bun install'{% else %}true{% endif %}"
|
||||
- "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd {{ part_dir }} && bun install'{% else %}true{% endif %}"
|
||||
|
||||
Reference in New Issue
Block a user