Add justfile
This commit is contained in:
24
justfile
Normal file
24
justfile
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
build:
|
||||||
|
pnpm tauri build
|
||||||
|
|
||||||
|
dev:
|
||||||
|
pnpm tauri dev
|
||||||
|
|
||||||
|
tauri_path := "src-tauri"
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
pnpm prettier --write "**/*.svelte" "**/*.ts"
|
||||||
|
cd {{tauri_path}} && cargo fmt
|
||||||
|
|
||||||
|
lint:
|
||||||
|
cd {{tauri_path}} && cargo clippy
|
||||||
|
|
||||||
|
test:
|
||||||
|
cd {{tauri_path}} && cargo test --release -- --nocapture
|
||||||
|
|
||||||
|
# profile:
|
||||||
|
# cd {{tauri_path}} && cargo flamegraph
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf node_modules
|
||||||
|
cd {{tauri_path}} && cargo clean
|
||||||
Reference in New Issue
Block a user