@hirosystems/clarinet-sdk-wasm-browser v3.1.0
Clarity SDK WASM
This component exposes Clarinet features to a JS interface through wasm-bindgen.
It's built with wasm-pack.
It powers @hirosystems/clarinet-sdk and
@hirosystems/clarinet-sdk-browser.
Contributing
Build package
Install wasm-pack.
In the root directory of Clarinet, run the following command to build the packages for Node.js and the browser.
Under the hood, it will run wasm-pack build twice, once for each target.
npm run build:sdk-wasmAlternatively, it's also possible to build the packages separately. It should only be done for development purpose.
Build for node
wasm-pack build --release --scope hirosystems --out-dir pkg-node --target nodejsBuild for the browser
wasm-pack build --release --scope hirosystems --out-dir pkg-browser --target webRelease
The package is built twice with wasm-pack as it can't target node and web at the same time.
The following script will build for both target, it will also rename the package name for the
browser build.
npm run build:sdk-wasmOnce built, the packages can be released by running the following command. Note that by default we release with the beta tag.
npm run publish:sdk-wasm8 months ago
8 months ago
8 months ago
8 months ago
6 months ago
8 months ago
8 months ago
11 months ago
11 months ago
11 months ago
5 months ago
6 months ago
7 months ago
8 months ago
6 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
5 months ago
6 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago