1.3.0 • Published 2 years ago

@sendgft/shared.js v1.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

shared.js

Shared JS library that all GFT cards link to. This library does a few things:

  • Orchestrate injection of GFT data from a parent IFRAME
  • Display GFT watermark on the card page
  • Analytics integration

Latest version: https://ipfs.gft.xyz/ipns/libjs.gft.xyz

Usage

Every card design HTML must contain the following tag:

<script type="text/javascript" src="https://ipfs.gft.xyz/ipns/sharedjs.gft.xyz"></script>

Development

Run the typescript compiler in watch mode:

yarn build-watch

Now run the HTTP server for testing out the lib:

yarn serve

Deployment

  1. Setup PINATA_API_KEY and PINATA_SECRET shell environment vars
  2. Publish: yarn release

NOTE: use yarn publish:local to publish to a local IPFS server

License

MIT