From 22d73fabfdb8f901d45777ec17d32d8d1347e688 Mon Sep 17 00:00:00 2001 From: Ryan Walters Date: Fri, 24 Oct 2025 00:17:04 -0500 Subject: [PATCH] chore: add justfile for development workflow --- Justfile | 37 +++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 38 insertions(+) create mode 100644 Justfile diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..d11520f --- /dev/null +++ b/Justfile @@ -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 diff --git a/package.json b/package.json index a7f31e1..1336c85 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "dev": "vite", "build": "pnpm generate-types && tsc && vite build", "preview": "vite preview", + "test": "vitest run", "tauri": "tauri", "generate-types": "cargo test --manifest-path src-tauri/Cargo.toml -- --test export_bindings" },