fix(frontend): .env reaches the build for $env/static, the runtime image stays without it; eslint + prettier as an alternative to biome; image named with dashes
This commit is contained in:
1 parent
180f16defd
commit
c93a8fc68d
16 files changed
+136
-15
No files matched your search
+11
-1
@@ -37,6 +37,14 @@ ui_library:
|
||||
shadcn-svelte: shadcn
|
||||
default: none
|
||||
|
||||
linter:
|
||||
type: str
|
||||
help: Linter and formatter
|
||||
choices:
|
||||
Biome with the ultracite preset: biome
|
||||
ESLint + Prettier (the sv create setup): eslint
|
||||
default: biome
|
||||
|
||||
install_deps:
|
||||
type: bool
|
||||
help: bun install after generation
|
||||
@@ -58,4 +66,6 @@ prefix:
|
||||
default: "{{ 'frontend/' if layout == 'part' else '' }}"
|
||||
|
||||
_tasks:
|
||||
- "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd {{ part_dir }} && bun install'{% else %}true{% endif %}"
|
||||
# prettier-plugin-tailwindcss and biome sort classes differently, the
|
||||
# sources follow biome: an eslint project is formatted once, right away.
|
||||
- "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd {{ part_dir }} && bun install{% if linter == 'eslint' %} && bun run fix{% endif %}'{% else %}true{% endif %}"
|
||||
Reference in new issue
Block a user