Development ongoing
You need to install npm, yarn, and webpack.
Then run the following commands from project's root directory:
yarn install
To build the dist directory and lib directory from the src director run the following:
npm run build
npm install loopring.js --save
loopring.js ships as both a UMD module and a CommonJS package.
Include the following script tags in your HTML:
<script src="../node_modules/loopring/dist/loopring.min.js"></script>
To use the library in your JavaSrcipt code, get each component like so:
window.loopring.common
window.loopring.ethereum
window.loopring.relay
import loopring from 'loopring.js';
or
import {relay} from 'loopring.js';
or
const loopring = require('loopring.js');
babel-polyfill is also required
Before commit your changes or submit a pull request, please lint your code by running:
npm run lint
npm run build