rustwasm / book

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

Replace npm example with cargo. Npm command does not work. #186

Open lizlam opened 5 years ago

lizlam commented 5 years ago

✋ A similar PR may already be submitted! Please search 🔎 among the open pull requests before creating one.

Updating the Game of Life tutorial's code? Also send a PR to rustwasm/wasm_game_of_life!

Now that you've checked, it's time to create your PR. 📝 Thanks for submitting! 🙏

For more information, see the contributing guide. 👫

Summary

Explain the motivation for making this change. What existing problem does the pull request solve? 🤔 npm init wasm-app www command in tutorial doesn't work. I spent quite a bit of time trying to figure it out and finally found a solution in one of the open issues. It's a small thing but is a blocker for new people trying to follow the tutorial. It partially fixes #169.

Fixes #___