feat(admin): build tooling, Docker stage and docs; close test gaps
- 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
This commit is contained in:
parent
b3a85a55ea
commit
a0a083273c
1 changed files with 103 additions and 2 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
.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
|
||||
Loading…
Reference in a new issue