mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-05 23:14:31 -06:00
chore: add justfile for development workflow
This commit is contained in:
37
Justfile
Normal file
37
Justfile
Normal 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
|
||||||
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user