Skip to content

Commit

Permalink
Setup to run web build with wasm-server-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Jan 8, 2022
1 parent ae83923 commit 73c41ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
target/
.idea/
.cargo/
.DS_Store

build/web/
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ _Since Bevy is in heavy development, there regularly are unpublished new feature
2. Look for `ToDo` to use your own game name everywhere
3. [Update the icons as described below](#updating-the-icons)
4. Start coding :tada:
* Start the native app: `cargo run --features native`
* Start the web build: `cargo make serve` (requires `cargo-make`; to install run `cargo install cargo-make`)
* Start the native app: `cargo run`
* Start the web build: `cargo run --target wasm32-unknown-unknown`
* requires [`wasm-server-runner`](https://github.com/jakobhellermann/wasm-server-runner): `cargo install wasm-server-runner`
* requires `wasm32-unknown-unknown` target: `rustup target add wasm32-unknown-unknown`

You should keep the `credits` directory up to date. The release workflow automatically includes the directory in every build.

Expand Down

0 comments on commit 73c41ae

Please sign in to comment.