@rocketspark/domain-checker
v0.0.34
Published
Embeddable Domain Checker for Rocketspark
Downloads
157
Maintainers
Readme
📦 Getting Started
Add the following tags to your page
<script src="https://cdn.jsdelivr.net/npm/@rocketspark/domain-checker@latest/build/index.js" type="e626c4c4a135bb897f07d239-text/javascript"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@rocketspark/domain-checker@latest/build/css/index.css" type="text/css" media="all" /></div>
Then add a div to the page with as follow, setting the locale to be one of UK/NZ/AU/US
<div class="rs-domain-check" data-locale="nz"></div>
🧑💻 Development
To develop locally, run the following commands:
npm install
mprocs
This will open a hot dev server on port 9000.
Using in CMS
To use the package in a CMS, start mprocs and put the following into a HTML block:
<div class="rs-domain-check" data-locale="nz"></div>
<script src="http://localhost:9001/index.js"></script>
<link rel="stylesheet" href="http://localhost:9001/css/index.css" type="text/css" media="all">
You should see the domain checker in the CMS.
🚀 Releasing
Follow the following steps to release a new version of the package
- Make a PR and merge it to main
- Actions will make a draft release
- Review the draft release, remove the (Draft) label and publish the release
- The package will be published to npm
- Clear jsDelivr cache (see below)
- Check it out on the testing page
- Update the html blocks on rocketspark.com to use the new version
Clearing jsDelivr cache
To clear the jsDelivr cache, go to https://www.jsdelivr.com/tools/purge and enter the following URLs:
https://cdn.jsdelivr.net/npm/@rocketspark/domain-checker@latest/build/index.js
https://cdn.jsdelivr.net/npm/@rocketspark/domain-checker@latest/build/css/index.css