diff --git a/.copier/frontend.yml b/.copier/frontend.yml index 741e72d..9c778c3 100644 --- a/.copier/frontend.yml +++ b/.copier/frontend.yml @@ -1,7 +1,8 @@ -_commit: v0.4.2 +_commit: v0.6.0 _src_path: https://git.kotikot.com/templates/frontend-svelte.git install_deps: false layout: part +linter: biome project_name: beavergram project_slug: beavergram serve: api diff --git a/frontend/.dockerignore b/frontend/.dockerignore index 1048241..ed46f37 100644 --- a/frontend/.dockerignore +++ b/frontend/.dockerignore @@ -1,5 +1,7 @@ node_modules .svelte-kit build -.env +# .env goes into the build: $env/static/public (and static/private) are +# inlined at build time from it. It stays in the builder stage, the runtime +# image gets build/ only. Local overrides (.env.local and the like) stay out. .env.* diff --git a/frontend/Makefile b/frontend/Makefile index 0cef562..484b133 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -1,8 +1,6 @@ COMPOSE := cd .. && docker compose -changed = ! git diff --quiet $(1) -- $(2) 2>/dev/null -stamp = { git update-ref $(1) HEAD 2>/dev/null || true; } -.PHONY: fmt check build pre-deploy post-deploy dev +.PHONY: fmt check build dev fmt: bun run fix @@ -14,13 +12,5 @@ check: build: $(COMPOSE) run --rm frontend-dev sh -c "bun install && bun run build" -pre-deploy: - @if $(call changed,refs/deploy/frontend,.) || ! test -d build; then \ - $(MAKE) build && $(call stamp,refs/deploy/frontend); \ - fi - -post-deploy: - @: - dev: bun run dev