npm i
npm run asbuild
- For browser demo:
npm run serve
- Go to http://localhost:1234
- For NodeJS demo:
npm start
- Everything works!(?)
src/wasm/assembly/index.ts
: the actual AssemblyScript filesrc/wasm/build/optimized.wasm
/src/wasm/build/untouched.wasm
: the binary files (optimized and non-optimized) built from the AssemblyScript that need to be initialised somewhere in your code.src/wasm/exports.d.ts
: util file that makes sure the TypeScript definitions of exports from your WASM module work wellsrc/index-browser.ts
: the script that is run from the browsersrc/index.ts
: the script that is run from NodeJS