For latest docs please visit -> https://docs.uglabs.io/sdk/js
To build the library, you can use the following commands:
npm run build
: Compiles the TypeScript code to separate JavaScript files in thedist
directory.npm run bundle
: Bundles the library into a single file,dist/ug-js-sdk-bundle.js
.
To serve the demo page, run the following command:
npm run serve:demo
: Starts a local server and openspublic/demo.html
in your browser.
In the project directory, you can run:
npm run build
: Compiles the TypeScript code to JavaScript.npm run bundle
: Bundles the library into a single file.npm run test
: Runs the tests using Jest.npm run format
: Formats the code using Prettier.npm run serve:demo
: Starts a local server and openspublic/demo.html
in your browser.