Skip to content

Commit 0dd1089

Browse files
committed
Add into on building js
1 parent 3c9ae5c commit 0dd1089

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing
2+
3+
## Building the WASM/JS package
4+
5+
The code for the wasm + js wrapper package is stored in the `js` directory. To build it:
6+
7+
```sh
8+
cd js
9+
npm i
10+
npm run build
11+
```
12+
13+
The npm package will be output to `js/pkg`.
14+
15+
To run a quick sanity check of the JS package:
16+
17+
```sh
18+
npm test
19+
```
20+
21+
To publish the package to npm, run:
22+
23+
```sh
24+
cd js/pkg
25+
npm publish
26+
```

0 commit comments

Comments
 (0)