Skip to content

Commit

Permalink
Install wasm-pack manually
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Apr 17, 2024
1 parent 6fef90d commit 97acff8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 249 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/wasm-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Install wasm target
run: rustup target add wasm32-unknown-unknown
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Install npm dependencies
run: npm install
- name: Check Prettier
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ These are deliberately not published to [https://crates.io](crates.io), because
they're demo applications and not complete end-user tools.

## WebAssembly demo
The `wasm-demo` subfolder embeds Fidget into a web application.
The `wasm-demo` subfolder embeds Fidget into a web application. Building this
demo requires [`wasm-pack`](https://rustwasm.github.io/wasm-pack/)
to be installed on the host system.

In that folder, run it with
```
Expand Down
247 changes: 0 additions & 247 deletions wasm-demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion wasm-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"@wasm-tool/wasm-pack-plugin": "1.5.0",
"html-webpack-plugin": "^5.3.2",
"prettier": "3.2.5",
"wasm-pack": "^0.12.1",
"webpack": "^5.49.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^4.15.1"
Expand Down

0 comments on commit 97acff8

Please sign in to comment.