chore: add justfile for development workflow

This commit is contained in:
Ryan Walters
2025-10-24 00:17:04 -05:00
parent cd8feeabd2
commit 22d73fabfd
2 changed files with 38 additions and 0 deletions

37
Justfile Normal file
View File

@@ -0,0 +1,37 @@
# Default recipe - show available commands
default:
@just --list
dev:
cargo tauri dev
dev-build:
cargo tauri build --debug
generate-types:
cargo test --manifest-path src-tauri/Cargo.toml -- --test export_bindings
check-frontend:
pnpm exec tsc --noEmit
check-backend:
cargo clippy --manifest-path src-tauri/Cargo.toml
check: check-frontend check-backend
build-frontend: generate-types
pnpm exec tsc
pnpm exec vite build
build-backend:
cargo build --manifest-path src-tauri/Cargo.toml
build: build-frontend build-backend
test-frontend:
pnpm exec vitest run
test-backend:
cargo nextest run --manifest-path src-tauri/Cargo.toml
test: test-frontend test-backend

View File

@@ -7,6 +7,7 @@
"dev": "vite", "dev": "vite",
"build": "pnpm generate-types && tsc && vite build", "build": "pnpm generate-types && tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"test": "vitest run",
"tauri": "tauri", "tauri": "tauri",
"generate-types": "cargo test --manifest-path src-tauri/Cargo.toml -- --test export_bindings" "generate-types": "cargo test --manifest-path src-tauri/Cargo.toml -- --test export_bindings"
}, },