Add justfile
This commit is contained in:
parent
ae10353b7b
commit
4c41034749
26
justfile
Normal file
26
justfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
build: fmt build-rust build-wasm build-js
|
||||||
|
|
||||||
|
build-rust:
|
||||||
|
cargo build --all
|
||||||
|
|
||||||
|
# wasm-pack build --target bundler this_algorithm-wasm
|
||||||
|
build-wasm:
|
||||||
|
wasm-pack build --target web this_algorithm-wasm
|
||||||
|
|
||||||
|
build-js: build-wasm
|
||||||
|
yarn --cwd ./web-frontend/ build
|
||||||
|
|
||||||
|
# TODO: Clippy
|
||||||
|
watch-rust:
|
||||||
|
cargo watch -x fmt -x check -x build
|
||||||
|
|
||||||
|
watch-js:
|
||||||
|
yarn --cwd ./web-frontend/ dev
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
cargo fmt
|
||||||
|
yarn --cwd ./web-frontend/ format
|
||||||
|
|
||||||
|
init:
|
||||||
|
yarn --cwd ./web-frontend/
|
||||||
|
cargo fetch
|
Loading…
Reference in New Issue
Block a user