From a5f5c7d8a83641c450d7cd20c1ec44a0e0687150 Mon Sep 17 00:00:00 2001 From: tegwick Date: Tue, 26 May 2026 15:17:33 +0200 Subject: [PATCH] Add Makefile with preview target `make preview` runs `pnpm build && pnpm preview` so the demo can be served from the production bundle at http://localhost:4173/. Plus convenience targets for dev, build, test, typecheck, lint. Co-Authored-By: Claude Opus 4.7 --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2c79ce7 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.PHONY: preview dev build test typecheck lint + +# Build the production bundle then serve it locally with vite preview. +# Prints the URL (default http://localhost:4173/) once the server is ready. +preview: + pnpm build + pnpm preview + +# Dev server with HMR (http://localhost:5173/). +dev: + pnpm dev + +build: + pnpm build + +test: + pnpm test + +typecheck: + pnpm typecheck + +lint: + pnpm lint