Forked from /~https://github.com/cityjson/cjval_wasm and published on npm as cjval_wasm_web
and cjval_wasm_nodejs
- install wasm-pack
wasm-pack build -t web --out-dir ./www/pkg/
cd ./www/
python -m http.server 8080
(or any local webserver will do)- with your browser go to http://localhost:8080/
(can be improved a lot, most probably...)
wasm-pack build -t web --out-dir ./www/pkg/
rename name in package.json to cjval_wasm_web
wasm-pack pack ./www/pkg/
wasm-pack publish ./www/pkg/
wasm-pack build -t web --out-dir ./nodejs/pkg/
rename name in package.json to cjval_wasm_nodejs
wasm-pack pack ./nodejs/pkg/
wasm-pack publish ./nodejs/pkg/