v4/justfile
2025-04-07 00:00:52 -07:00

39 lines
No EOL
623 B
Makefile

watch:
air
run:
go run .
run-nix:
nix run .
run-container:
nix build .#container
docker load -i result
docker run -it --rm -p 8169:8169 localhost/roleypoly/roleypoly
preprocess:
lightningcss --minify --bundle --targets '>= 0.25%' static/main.css
precommit: fmt prettier tidy update-vendor-hash test
fmt:
go fmt ./...
prettier:
prettier -w -c "**/*.{css,json,md}"
tidy:
go mod tidy
update-vendor-hash:
scripts/update-vendor-hash.sh
test:
go test ./...
clean-repo:
rm -rf tmp result
open-chromium path="/testing/t/picker":
nix-shell -p chromium --command "chromium http://localhost:8170{{path}}"