01159056ef
* Add dev command for building wasm backend This aims to reduce the time spent building when testing with the wasm backend. On my machine `yarn release` takes 20s while `yarn dev` takes just 2s. * Separate out building wasm
41 lines
656 B
Makefile
41 lines
656 B
Makefile
.PHONY: all
|
|
all: ci
|
|
|
|
.PHONY: fmt
|
|
fmt:
|
|
cargo fmt --all -- --check
|
|
|
|
.PHONY: clippy
|
|
clippy:
|
|
cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
.PHONY: doc
|
|
doc:
|
|
cargo doc --workspace --all-features
|
|
|
|
.PHONY: build
|
|
build:
|
|
cargo build --all-targets --workspace
|
|
|
|
.PHONY: build-wasm
|
|
build-wasm:
|
|
cd automerge-backend-wasm && yarn dev
|
|
|
|
.PHONY: test
|
|
test: test-rust test-wasm test-js
|
|
cargo test --workspace
|
|
|
|
.PHONY: test-rust
|
|
test-rust:
|
|
cargo test --workspace
|
|
|
|
.PHONY: test-wasm
|
|
test-wasm:
|
|
wasm-pack test automerge-frontend --node
|
|
|
|
.PHONY: test-js
|
|
test-js: build-wasm
|
|
cd automerge-backend-wasm && yarn test:js
|
|
|
|
.PHONY: ci
|
|
ci: fmt clippy doc build test
|