0.1.24 • Published 2 years ago
koiverse_lib_base_wasm v0.1.24
koiverse_lib_base for wasm
1 about koiverse_lib_base
from https://www.npmjs.com/package/koiverse_lib_base to https://www.npmjs.com/package/koiverse_lib_base_wasm
2 use koiverse_lib_base_wasm
nodejs:
npm i koiverse_lib_base_wasm@nodejs
webpack(bundler):
npm i koiverse_lib_base_wasm@bundler
npm i koiverse_lib_base_wasm@web
npm i koiverse_lib_base_wasm@no-modules
3🚴 build & publish
2.1 build with wasm-pack build
deploying-rust-and-webassembly
# default: --target bundler
wasm-pack build
# or: --target bundler
wasm-pack build --target nodejs
# or: --target web
wasm-pack build --target web
# or: --target no-modules
wasm-pack build --target no-modules
2.2 🔬 test in headless browsers with wasm-pack test
wasm-pack test --headless --firefox
2.3 🎁 publish to npm with wasm-pack publish
npm select source from nrm:https://github.com/Pana/nrm
#
nrm ls
nrm use npm
npm adduser
# or --tag xxx
wasm-pack publish
nrm ls
#nrm use tencent
# "keywords": ["wasm","koiverse","3d","simulation engine","physics engine"],
wasm-pack publish
3 build & publish by:
1 https://github.com/rustwasm/wasm-pack
2 https://developer.mozilla.org/zh-CN/docs/WebAssembly/Rust_to_wasm