this_algorithm/justfile

38 lines
645 B
Makefile
Raw Normal View History

2023-02-28 05:58:43 -05:00
build: fmt build-rust build-wasm build-js
2023-02-28 09:36:36 -05:00
all: clean build # build-docs
rsync -ha ./web-frontend/build/ build/
du -shc build/* | sort -h
2023-02-28 05:58:43 -05:00
build-rust:
cargo build --all
build-wasm:
wasm-pack build --target web this_algorithm-wasm
build-js: build-wasm
yarn --cwd ./web-frontend/ build
2023-02-28 09:36:36 -05:00
clean:
rm -rf build
build-docs:
earthly +docs
2023-02-28 05:58:43 -05:00
# TODO: Clippy
watch-rust:
cargo watch -x fmt -x check -x build
watch-js:
yarn --cwd ./web-frontend/ dev
fmt:
2023-02-28 09:36:36 -05:00
# just --fmt --unstable
2023-02-28 05:58:43 -05:00
cargo fmt
yarn --cwd ./web-frontend/ format
init:
yarn --cwd ./web-frontend/
cargo fetch
2023-02-28 06:31:42 -05:00
cargo install wasm-pack