Independent review Not signed off — 0 high, 1 medium (#4)
Fixes review finding F1: nothing copied web/dist into internal/frontend/dist, so the server always embedded the placeholder. make build now builds the web app, replaces internal/frontend/dist with web/dist, and builds bin/mealquest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
392 B
Makefile
17 lines
392 B
Makefile
# Build entry point: build the PWA, embed it, then build the server binary.
|
|
|
|
FRONTEND_DIST := internal/frontend/dist
|
|
|
|
.PHONY: build web embed
|
|
|
|
build: embed
|
|
go build -o bin/mealquest ./cmd/server
|
|
|
|
web:
|
|
cd web && npm ci && npm run build
|
|
|
|
# Replace the committed placeholder with the built PWA so go:embed picks it up.
|
|
embed: web
|
|
rm -rf $(FRONTEND_DIST)/*
|
|
cp -R web/dist/. $(FRONTEND_DIST)/
|