From 4c41034749ec064c46d916b0031a343b84a8e3a0 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 28 Feb 2023 05:58:43 -0500 Subject: [PATCH] Add justfile --- justfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..d9b97cc --- /dev/null +++ b/justfile @@ -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