@rocketspark/domain-checker v1.0.1
📦 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
mprocsThis will open a hot dev server on port 6000.
If you are getting issues with pushing, try run this command to set your origin urls up correctly.
git config --local include.path ../.gitconfigUsing 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:8501/index.js"></script>
<link rel="stylesheet" href="http://localhost:8501/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 1. Make a PR and merge it to main 2. Actions will make a draft release 3. Review the draft release, remove the (Draft) label and publish the release 4. The package will be published to npm 5. Clear jsDelivr cache (see below) 6. Check it out on the testing page 7. 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.css5 months ago
1 year ago
12 months ago
12 months ago
12 months ago
12 months ago
11 months ago
1 year ago
1 year ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago