Initial template
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
_subdirectory: template
|
||||
_templates_suffix: .jinja
|
||||
_answers_file: .copier-answers.frontend.yml
|
||||
_envops:
|
||||
keep_trailing_newline: true
|
||||
|
||||
project_name:
|
||||
type: str
|
||||
help: Project name
|
||||
|
||||
project_slug:
|
||||
type: str
|
||||
help: Package name, snake_case
|
||||
default: "{{ project_name | lower | replace(' ', '_') | replace('-', '_') | replace('.', '_') }}"
|
||||
|
||||
serve:
|
||||
type: str
|
||||
help: How the frontend is served
|
||||
choices:
|
||||
Bun server with SSR (svelte-adapter-bun): bun
|
||||
Static SPA behind serve.ts (adapter-static): static
|
||||
Static SPA served by the backend api: api
|
||||
default: bun
|
||||
|
||||
ui_library:
|
||||
type: str
|
||||
choices:
|
||||
none (Tailwind v4): none
|
||||
shadcn-svelte: shadcn
|
||||
default: none
|
||||
|
||||
include_impeccable:
|
||||
type: bool
|
||||
help: .impeccable/ scaffolding for the impeccable skill
|
||||
default: true
|
||||
|
||||
install_deps:
|
||||
type: bool
|
||||
help: bun install after generation
|
||||
default: true
|
||||
|
||||
frontend_adapter:
|
||||
type: str
|
||||
when: false
|
||||
default: "{{ 'bun' if serve == 'bun' else 'static' }}"
|
||||
|
||||
_tasks:
|
||||
- "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd frontend && bun install'{% else %}true{% endif %}"
|
||||
Reference in New Issue
Block a user