Skip to content

Latest commit

 

History

History
88 lines (57 loc) · 1.41 KB

README.md

File metadata and controls

88 lines (57 loc) · 1.41 KB

Setup

FontAwesome

go to https://fontawesome.com/docs/web/setup/packages log in set up

Rust

The setup is based on this tutorial, but an excerp follows below.

Install rust and then wasm-pack:

curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

Nvm

install nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

follow any extra instructions from the script and restart your terminal. Then run:

nvm install 16
nvm use

you don't need to specify 16 since it's set by the .nvmrc file

install npm and then run:

npm install

Then run:

npm run dev

To start a webserver that auto-reloads on changes.

Test Release version

run

npm run-script build
cd dist
python3.8 -m http.server 8000

Note that you need quite a new server (python 3.8 for example) or the mime type won't be correct for the wasm content

Release version

We release by pushing to the github pages branch with the help of a npm package: https://www.npmjs.com/package/gh-pages

To publish/deploy run:

npm run deploy

Test

Easy way

Run all tests

WASM_BINDGEN_TEST_TIMEOUT=60 wasm-pack test --node

Run a specific test file:

WASM_BINDGEN_TEST_TIMEOUT=60 wasm-pack test --node --test tier_0