2023-03-01 07:28:33 -05:00
|
|
|
build: fmt rust-build build-wasm js-build
|
2023-02-28 05:58:43 -05:00
|
|
|
|
2023-03-01 07:28:33 -05:00
|
|
|
all: clean fmt rust-test build # build-docs
|
2023-02-28 09:36:36 -05:00
|
|
|
rsync -ha ./web-frontend/build/ build/
|
|
|
|
du -shc build/* | sort -h
|
|
|
|
|
2023-03-01 07:28:33 -05:00
|
|
|
rust-test:
|
2023-02-28 11:53:39 -05:00
|
|
|
cargo test --all
|
|
|
|
cargo fmt --all --check
|
|
|
|
|
2023-03-01 07:28:33 -05:00
|
|
|
rust-build:
|
2023-02-28 05:58:43 -05:00
|
|
|
cargo build --all
|
|
|
|
|
|
|
|
build-wasm:
|
|
|
|
wasm-pack build --target web this_algorithm-wasm
|
|
|
|
|
2023-03-01 07:28:33 -05:00
|
|
|
js-build: build-wasm
|
2023-02-28 05:58:43 -05:00
|
|
|
yarn --cwd ./web-frontend/ build
|
|
|
|
|
2023-02-28 09:36:36 -05:00
|
|
|
clean:
|
2023-02-28 11:57:58 -05:00
|
|
|
rm -vrf build
|
2023-02-28 09:36:36 -05:00
|
|
|
|
|
|
|
build-docs:
|
|
|
|
earthly +docs
|
|
|
|
|
2023-02-28 05:58:43 -05:00
|
|
|
# TODO: Clippy
|
2023-03-01 07:28:33 -05:00
|
|
|
rust-watch:
|
2023-02-28 05:58:43 -05:00
|
|
|
cargo watch -x fmt -x check -x build
|
|
|
|
|
2023-03-01 07:28:33 -05:00
|
|
|
js-dev:
|
2023-02-28 05:58:43 -05:00
|
|
|
yarn --cwd ./web-frontend/ dev
|
|
|
|
|
|
|
|
fmt:
|
2023-02-28 09:36:36 -05:00
|
|
|
# just --fmt --unstable
|
2023-02-28 11:53:39 -05:00
|
|
|
cargo fmt --all
|
2023-02-28 05:58:43 -05:00
|
|
|
yarn --cwd ./web-frontend/ format
|
|
|
|
|
2023-02-28 11:53:39 -05:00
|
|
|
serve:
|
|
|
|
http-server --verbose ./web-frontend/build/
|
|
|
|
|
|
|
|
init-verbose:
|
2023-02-28 05:58:43 -05:00
|
|
|
yarn --cwd ./web-frontend/
|
|
|
|
cargo fetch
|
2023-02-28 06:31:42 -05:00
|
|
|
cargo install wasm-pack
|