2020-09-02 15:46:01 +00:00
|
|
|
# Based on https://raw.githubusercontent.com/saschagrunert/webapp.rs/master/Makefile
|
|
|
|
|
2020-09-16 13:02:15 +00:00
|
|
|
all: build-frontend
|
2020-09-02 15:46:01 +00:00
|
|
|
|
2020-09-16 13:02:15 +00:00
|
|
|
build-frontend:
|
|
|
|
cd frontend-core && \
|
|
|
|
wasm-pack build --dev --target web --out-name wasm --out-dir ./static
|
2020-09-02 15:46:01 +00:00
|
|
|
|
|
|
|
build-doc:
|
|
|
|
cargo doc --all --no-deps
|
|
|
|
|
|
|
|
run:
|
2020-09-16 13:02:15 +00:00
|
|
|
simple-http-server -i ./frontend-core/static/ -p 3000 --nocache --try-file ./frontend-core/static/index.html
|
2020-09-02 15:46:01 +00:00
|
|
|
|
|
|
|
lint: lint-rustfmt lint-clippy
|
|
|
|
|
|
|
|
lint-clippy:
|
|
|
|
cargo clippy --all -- -D warnings
|
|
|
|
|
|
|
|
lint-rustfmt:
|
|
|
|
cargo fmt
|
|
|
|
git diff --exit-code
|