# sdk-sales

![statements coverage](./badges/badge-statements.svg)
![lines coverage](./badges/badge-lines.svg)
![functions coverage](./badges/badge-functions.svg)

## Quick start

- `yarn`

Then, to run unit tests: 

- `yarn test`

to run development page locally
- `yarn start`

That's it!

## Docs

API Docs https://redirector.arcpublishing.com/alc/docs/api/arc-sdks/index.html

## Commands

- `yarn start` - starts a server at http://localhost.arcpublishing.com/ using the umd bundle. The SDK will be located in `window.Sales`.
- `yarn run build` - build, esm, commonjs, and umd versions of the library.
- `yarn test` - run jest tests.
- `yarn test:ci` - run jest tests and save report artifact (ci-mode)
- `yarn test:watch` - run `jest --watch`
- `yarn test:coverage` - show coverage report after running tests and generates badges.
