mirror of
https://github.com/Xevion/Pac-Man.git
synced 2026-01-31 10:25:06 -06:00
37 lines
622 B
Makefile
37 lines
622 B
Makefile
set shell := ["bash", "-c"]
|
|
|
|
# Run the dev server
|
|
dev:
|
|
bun run dev
|
|
|
|
# Build and preview the frontend
|
|
up:
|
|
bun run build
|
|
bun run preview
|
|
|
|
# Build the web version (game + frontend)
|
|
[no-cd]
|
|
build *args:
|
|
bun run pacman/web.build.ts {{args}}
|
|
bun run --cwd web build
|
|
|
|
# Build and serve with caddy
|
|
[no-cd]
|
|
serve *args:
|
|
bun run pacman/web.build.ts {{args}}
|
|
bun run --cwd web build
|
|
caddy file-server --root web/dist/client --listen :8547
|
|
|
|
# Run checks (type-checking and linting)
|
|
check:
|
|
bun run check
|
|
bun run lint
|
|
|
|
# Format code
|
|
format:
|
|
bun run format
|
|
|
|
# Run tests
|
|
test:
|
|
bun run test
|