- Add Makefile (admin, build, test) and a node stage in the Dockerfile - Add .dockerignore so host node_modules and builds stay out of the image - Document the admin UI in the README - Cover mutation survivors: token cleanup on non-401 failures, cache dropped on 401 and sign out, member filter by name, archive invalidated after approval, page offset
18 lines
321 B
Makefile
18 lines
321 B
Makefile
.PHONY: all admin test build clean
|
|
|
|
all: admin build
|
|
|
|
# Build the admin UI into internal/adminui/dist, which the Go binary embeds.
|
|
admin:
|
|
cd admin && npm ci && npm run build
|
|
|
|
build:
|
|
go build -o parsimony ./cmd/parsimony
|
|
|
|
test:
|
|
go test ./...
|
|
cd admin && npm test
|
|
|
|
clean:
|
|
rm -f parsimony
|
|
node admin/scripts/clean.mjs
|