/
makefile
33 lines (24 loc) · 677 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.DEFAULT_GOAL := help
help:
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'
install:
cargo build
npm install
test-rust:
cargo check
cargo test -- --color always
build-rust:
cargo build
make build-wasm
build-rust-dev:
cargo watch -s "make build-rust"
build-wasm:
- cargo install wasm-pack
wasm-pack init --mode no-install
npm install ./pkg
build-js-dev:
npx webpack-serve src/js/webpack.config.js --port 3000
build-js-prod:
npx webpack-cli --config src/js/webpack.config.js --mode production
deploy-compiled-files:
bash bin/deploy-compiled-files.sh