~starkingdoms/starkingdoms

ref: 5eaa81cc1ccc43e7b1e086071a3e9b32c6dd8568 starkingdoms/justfile -rw-r--r-- 384 bytes
5eaa81cc — c0repwn3r recv position and planet data on the client 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
run_server:
    cargo run --bin starkingdoms-server

run_http: build_client_bundle
    cd web && python3 -m http.server

build_client_bundle:
    rm -rf web/dist
    RUST_BACKTRACE=1 wasm-pack build --target web client
    cp -r client/pkg web/dist

install_tooling:
    cargo install wasm-pack --no-default-features

clean:
    rm -rf target
    rm -rf client/pkg
    rm -rf web/dist