1.0.1 • Published 5 months ago

@rocketspark/domain-checker v1.0.1

Weekly downloads
-
License
no license
Repository
github
Last release
5 months ago

📦 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 6000.

If you are getting issues with pushing, try run this command to set your origin urls up correctly.

git config --local include.path ../.gitconfig

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: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.css
1.0.1

5 months ago

0.0.25

1 year ago

0.0.30

12 months ago

0.0.31

12 months ago

0.0.32

12 months ago

0.0.33

12 months ago

0.0.34

11 months ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

12 months ago

0.0.29

12 months ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.16

1 year ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago