JavaScript bindings to picky
using wasm-bindgen.
This should be run in the CI.
-
Install
wasm-pack
. -
Build the package:
$ npm run build
-
Publish to npm:
$ npm publish
Some tests can be in Firefox in headless mode:
$ wasm-pack test --headless --firefox
Other tests are run using nodejs
and the ava
testing framework.
For these, you need to build the npm package targeting nodejs
:
$ wasm-pack build --target nodejs --scope @devolutions --out-name picky
Rename @devolutions/picky-wasm
to @devolutions/picky
in pkg/package.json
.
Run the ava
tests
cd ava_tests
npm install
npm test