rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

The line to add to package.json after npm init may be unclear #195

Closed petosorus closed 5 years ago

petosorus commented 5 years ago

Where in the docs did you come across this? https://rustwasm.github.io/docs/book/game-of-life/hello-world.html#using-our-local-wasm-game-of-life-package-in-www

Describe what about it does not make sense I don't know when they changed it, but npm init wasm-app will not have a dependencies field out of the box. Things are put in the devDependencies which seems normal.

Why does it not make sense? People unfamiliar with npm might be confused and not know what to do when they find no dependencies field.

How could we improve it? I made a PR for this. Writing documentation is not always my forte, I welcome suggestions.