make it possible to set release profile for rkgk in justfile
This commit is contained in:
parent
b2e43838d5
commit
c6870cb22d
10
Justfile
10
Justfile
|
@ -1,10 +1,12 @@
|
||||||
port := "8080"
|
port := "8080"
|
||||||
|
profile := "dev"
|
||||||
|
wasm_profile := "wasm-" + profile
|
||||||
|
|
||||||
serve wasm_profile="wasm-dev": (wasm wasm_profile)
|
serve: wasm
|
||||||
RKGK_PORT={{port}} RKGK_WASM_PATH=target/wasm32-unknown-unknown/{{wasm_profile}} cargo run -p rkgk
|
RKGK_PORT={{port}} RKGK_WASM_PATH=target/wasm32-unknown-unknown/{{wasm_profile}} cargo run -p rkgk --profile {{profile}}
|
||||||
|
|
||||||
wasm profile="wasm-dev":
|
wasm:
|
||||||
cargo build -p haku-wasm --target wasm32-unknown-unknown --profile {{profile}}
|
cargo build -p haku-wasm --target wasm32-unknown-unknown --profile {{wasm_profile}}
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
bash admin/deploy.bash
|
bash admin/deploy.bash
|
||||||
|
|
Loading…
Reference in a new issue