co-js 0.1.0

COKIT primitives for the browser using WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# co-js

COKIT primitives for the browser using WebAssembly.

## Run tests

`wasm-pack test --node`

## Build

`npm run build` builds the wasm and bundles an npm package under `./pkg`. It uses wasm-pack plugin to call `wasm-pack build`.
The command uses the crate information from the `Cargo.toml` to generate the npm package.
Cargo package names are more restrictive and do not allow @ signs, so the scope has to be specified via command line arg `--scope` which can be defined in the webpack config wasm pack plugin.

## Publish

Call `wasm-pack publish` to directly publish the package in the `./pkg` folder to an npm registry.
You can also generate a tarball with `wasm-pack pack`.