CasinoCoin JavaScript assets have been organized into a monorepo leveraging Lerna. This affords partners and contributors a single location to build software solutions on the world's leading open source, blockchain-backed digital currency designed specifically for the regulated gaming industry.
package | description | dependencies |
---|---|---|
@casinocoin/libjs |
A JavaScript API for interacting with the casinocoind server using a Node or browser client. | none |
# install root dependencies
$ npm i
# install dependencies for all packages
$ lerna bootstrap
# clean all package dependencies
$ lerna clean
The following package-specific commands can be executed from the root directory, eliminating the need to cd
into package sub-directories and run commands.
# starts Webpack development console and watches packages/libjs/src directory
$ npm run libjs:dev
# builds package in root dist/@casinocoin/libjs directory
$ npm run libjs:build
# generates tarball in root tgz directory (strictly for testing)
$ npm run libjs:pack
# mocha-based test suite
$ npm run libjs:test