wasm_game_of_life/README.md

832 B

About

Tweak of the great Wasm tutorial here : [tutorials]: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html

Note for myself

Crée l'arborescence www

$ wasm-pack build
$ npm init wasm-app www
$ cd www/
$ npm install

Puis :

$ vim www/package.json
--
  "dependencies": {
    "wasm-game-of-life": "file:../pkg", // Add this line!
--

Puis :

$ vim www/index.js
--
import * as wasm from "wasm-game-of-life";
(…)
--