set dotenv-load

# Run the server (reads .env)
run:
    cargo run -p server

# Run the full test suite
test:
    cargo test --workspace

# Format with the nightly toolchain
fmt:
    cargo +nightly fmt

# Lint, treating warnings as errors
lint:
    cargo clippy --workspace --all-targets -- -D warnings

# Run Storybook (web component explorer) on http://localhost:6006
storybook:
    cd web && pnpm storybook

# Format, lint, and test
check: fmt lint test
