Skip to content

Commit

Permalink
Update README and Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcristo committed Dec 16, 2022
1 parent da5a86f commit 6935c0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run EXAMPLE_NAME:
build EXAMPLE_NAME:
cargo build --release --example {{EXAMPLE_NAME}}

serve EXAMPLE_NAME: (build-web EXAMPLE_NAME)
serve-web EXAMPLE_NAME: (build-web EXAMPLE_NAME)
miniserve --index index.html examples/wasm

build-web EXAMPLE_NAME:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ This example is based off [`minimal-winit`](https://github.com/parasyte/pixels/t
cargo run --release --example example_name
```

### Running examples in browser
### Running examples in web browser

Install dependencies.

Expand All @@ -97,10 +97,10 @@ cargo install wasm-bindgen-cli just miniserve
Build and serve example with [just](https://github.com/casey/just). See [`Justfile`](Justfile) for more details.

```sh
just serve example_name
just serve-web example_name
```

Open http://localhost:8080/ in your browser to run the example.
Open http://localhost:8080/ in your web browser to run the example.

## License

Expand Down

0 comments on commit 6935c0e

Please sign in to comment.