@bitrefill/airfill-widget

Airfill Embeddable Refill Widget

Usage no npm install needed!

<script type="module">
  import bitrefillAirfillWidget from 'https://cdn.skypack.dev/@bitrefill/airfill-widget';
</script>

README

Airfill/Bitrefill Widget

circleci npm npm

Get started

Runs on localhost:8000

$ git clone git@github.com:bitrefill/airfill-widget.git && cd airfill-widget
$ yarn
$ yarn start

Run tests

yarn test:watch

Build the production bundle

# build production bundles (standalone with dependencies bundled and npm bundle with no deps)
$ yarn build

# build standalone bundle with stats.json
$ yarn build standalone

# build npm bundle with no dps
$ yarn build dist

Run locally in production mode

$ yarn serve:dist

Usage in React

Widget

import Widget from '@bitrefill/airfill-widget';

render() {
  return <Widget />;
}