Add justfile and update package.json scripts

This commit is contained in:
Jared Miller 2026-02-23 17:59:10 -05:00
parent 820bb6e395
commit 29a4a380ca
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C
3 changed files with 18 additions and 2 deletions

View file

@ -9,7 +9,7 @@ see `docs/plans/2026-02-23-single-combat-plan.md` for implementation plan.
## tech ## tech
- bun (serve + test), biome (lint/format, 4 spaces) - bun (serve + test), biome (lint/format, 2 spaces)
- vanilla js, es modules, no framework, no build step - vanilla js, es modules, no framework, no build step
- html/css rendering (no canvas) - html/css rendering (no canvas)
- client-only for now, multiplayer later - client-only for now, multiplayer later

13
justfile Normal file
View file

@ -0,0 +1,13 @@
default:
@just --list
lint:
bun run lint
typecheck:
bun run typecheck
test:
bun run test
check: lint typecheck test

View file

@ -2,7 +2,10 @@
"name": "slaywithfriends", "name": "slaywithfriends",
"private": true, "private": true,
"scripts": { "scripts": {
"check": "bunx biome check --write && bun test", "lint": "bunx biome check --write .",
"typecheck": "bunx tsc --noEmit",
"test": "bun test",
"check": "bun run lint && bun run typecheck && bun run test",
"dev": "bun run src/serve.js" "dev": "bun run src/serve.js"
}, },
"devDependencies": { "devDependencies": {