47 lines
832 B
Makefile
47 lines
832 B
Makefile
# by default list all just commands
|
|
default:
|
|
just --list
|
|
|
|
# run all tests
|
|
test:
|
|
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
|
|
# would love test: fmt to make sure formatting happens but in WSL formatting is slow...
|
|
# poor filesystem access performance
|
|
|
|
echo "testing..."
|
|
nix flake check
|
|
# uv run ruff check src tests
|
|
|
|
#
|
|
|
|
# format code
|
|
fmt:
|
|
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
nix fmt
|
|
|
|
# frontend development commands
|
|
dev-frontend:
|
|
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
cd frontend
|
|
pnpm install
|
|
pnpm run dev
|
|
|
|
# build frontend
|
|
build-frontend:
|
|
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
cd frontend
|
|
pnpm install
|
|
pnpm run build
|
|
|
|
# install frontend dependencies
|
|
install-frontend:
|
|
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
cd frontend
|
|
pnpm install
|