@tonclient/lib-web
TypeScript icon, indicating that this package has built-in type declarations

1.30.0 • Public • Published

Building ton-client-js WASM inside docker

To build WASM you need clang v8. Use this workaround if you encounter a problem when building wasm binaries on your platform (MacOSX or Windows).

Pulling build image

docker pull tonlabs/build-tonclient-wasm

Change your current location to ton-client-js project. It is important because the next command will use this location to mount the volume with source code inside the docker container with build environment.

cd ton-client-js

Run build container in background. First attempt will take a long time.

docker run -v $(pwd):/tonlabs/TON-SDK --name build-tonclient-wasm -dt build-tonclient-wasm tail -f /dev/null

Build WASM

docker exec -ti build-tonclient-wasm "build-tonclient-wasm.sh"

Location of binaries

After successful build process, binaries will be located here

ton-client-js/packages/lib-web/index.js
ton-client-js/packages/lib-web/tonclient.wasm
Compressed
ton-client-js/packages/lib-web/publish/tonclient_1_20_wasm.gz
ton-client-js/packages/lib-web/publish/tonclient_1_20_wasm_js.gz

Package Sidebar

Install

npm i @tonclient/lib-web

Weekly Downloads

36

Version

1.30.0

License

Apache-2.0

Unpacked Size

65.7 kB

Total Files

26

Last publish

Collaborators

  • tonlabs