@sendgft/shared.js
v1.3.0
Published
Shared JS library for all cards, hosted on IPFS.
Downloads
2
Readme
shared.js
Shared JS library that all [GFT][https://gft.xyz] 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
- Setup
PINATA_API_KEY
andPINATA_SECRET
shell environment vars - Publish:
yarn release
NOTE: use yarn publish:local
to publish to a local IPFS server
License
MIT