diff --git a/.copier/infra.yml b/.copier/infra.yml index cd84462..030ae13 100644 --- a/.copier/infra.yml +++ b/.copier/infra.yml @@ -2,7 +2,8 @@ _commit: v0.6.0 _src_path: https://git.kotikot.com/templates/infra.git init_git: true layout: parts -mcp_servers: [] +mcp_servers: +- svelte parts: - backend - frontend diff --git a/README.md b/README.md index ae7dbd4..03238cf 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,7 @@ make recreate # the services in COMPOSE_PROFILES make check ``` -<<<<<<< before updating -`make env` creates `.env` from the examples of every part and copies each `docker-compose.override.yml.example`. `make recreate` starts the selected profiles, `make rebuild` builds the images first, `make logs`, `make restart` and `make down` do what they say. - -To deploy, `git pull && make deploy`. It runs `make pre-deploy` in every part, which builds images only when their inputs changed and applies migrations, then `docker compose up -d`, then `make post-deploy`, which restarts the services whose mounted code changed. A deploy system with its own `up` step calls the two hooks around it. What was built and started is remembered as `refs/deploy/*` in the clone. - -`make fmt`, `make check` and `make build` run in every part. Part-specific targets live in the part's own Makefile: `make -C backend ...`. +Parts: `backend/`, `frontend/`, each with its own Makefile. ## How it works @@ -56,6 +51,3 @@ Where no service manager runs, in a container for example, `lodge install` says The server serves the admin from `frontend/build`. History is drawn as a borehole log: every revision is a bed, newest on top, hatched by the machine that wrote it and labelled with the branch and commit of the main repository. Dragging along the column, or the arrow keys, shows the notes as they were at that revision, and every depth, file and view is a link. A file can be compared with its previous version and put back on the surface; a repository can be deleted with its history, which leaves the files on the machines alone. Machines are listed with their hatch and can be revoked. `make -C frontend dev` runs the admin against a server on `localhost:8080`. -======= -Parts: `backend/`, `frontend/`, each with its own Makefile. ->>>>>>> after updating diff --git a/backend/Makefile b/backend/Makefile index ce86d54..e10a322 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -1,15 +1,7 @@ COMPOSE := cd .. && docker compose -<<<<<<< before updating -IMAGE := lodge/backend LINT := go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2 -changed = ! git diff --quiet $(1) -- $(2) 2>/dev/null -stamp = { git update-ref $(1) HEAD 2>/dev/null || true; } -.PHONY: fmt check test build pre-deploy post-deploy client dev -======= - -.PHONY: fmt check build ->>>>>>> after updating +.PHONY: fmt check test build client dev fmt: go mod tidy @@ -24,20 +16,9 @@ test: build: $(COMPOSE) build api -<<<<<<< before updating - -pre-deploy: - @if $(call changed,refs/deploy/backend,.) || ! docker image inspect $(IMAGE) >/dev/null 2>&1; then \ - $(MAKE) build && $(call stamp,refs/deploy/backend); \ - fi - -post-deploy: - @: client: go build -trimpath -ldflags "-s -w" -o bin/lodge ./cmd/lodge dev: LODGE_DB=storage/lodge.db STATIC_DIR=../frontend/build CLIENTS_DIR=bin ADMIN_TOKEN=dev go run ./cmd/lodge-server -======= ->>>>>>> after updating diff --git a/frontend/.gitignore b/frontend/.gitignore index 7dcbc6e..46a573e 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -16,3 +16,8 @@ node_modules # Vite vite.config.js.timestamp-* vite.config.ts.timestamp-* + +# Impeccable +**/.impeccable/config.local.json +**/.impeccable/hook.cache.json +**/.impeccable/hook.pending.json diff --git a/frontend/biome.jsonc b/frontend/biome.jsonc index f278fd5..c7835bb 100644 --- a/frontend/biome.jsonc +++ b/frontend/biome.jsonc @@ -2,7 +2,13 @@ "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", "extends": ["ultracite/biome/core", "ultracite/biome/svelte"], "files": { - "includes": ["!.claude", "!.svelte-kit", "!build", "!.mcp.json"] + "includes": [ + "!.claude", + "!.svelte-kit", + "!build", + "!.mcp.json", + "!.impeccable" + ] }, "javascript": { "globals": ["Bun"] }, "overrides": [ diff --git a/frontend/package.json b/frontend/package.json index d155ac3..aba21a0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,11 +15,8 @@ }, "devDependencies": { "@biomejs/biome": "2.5.13", -<<<<<<< before updating "@fontsource-variable/archivo": "^5.3.0", "@fontsource-variable/jetbrains-mono": "^5.3.0", -======= ->>>>>>> after updating "@internationalized/date": "^3.12.0", "@lucide/svelte": "^1.23.0", "@sveltejs/adapter-static": "^3.0.10", @@ -42,11 +39,7 @@ "tailwindcss": "^4.3.0", "tw-animate-css": "^1.4.0", "typescript": "^6.0.3", -<<<<<<< before updating "ultracite": "7.12.4", -======= - "ultracite": "7.12.0", ->>>>>>> after updating "vite": "^8.0.16" } }