added start of some docs

This commit is contained in:
Sebastian Moser
2024-05-25 22:55:14 +02:00
parent 7944fd3f7f
commit db23b61638

22
docs/usage/wasm.md Normal file
View File

@@ -0,0 +1,22 @@
# Use mize in a js project
## On the Web
```bash
npm init wasm-app project_dir
cd project_dir
npm install @c2vi/mize
```
## Build npm package yourself
### with nix
```bash
nix build github:c2vi/mize#npmPackage
```
### without nix
```bash
wasm-pack build -- --features wasm-target
```