You should make your changes in the develop
branch. We don't actually use the master
branch here.
The main tracking script is in hockeystack.js
. This script can call other integration specific scripts within it.
The script is generated through an NPM package and is hosted through the JSDelivr CDN like this: https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack.min.js
When you've made a change and want to deploy it to the CDN, follow these steps:
-
git push
your changes todevelop
branch -
npm version patch
to save your changes to the NPM package. This will output the new version of the script in your terminal (Make sure you have authenticated) -
npm publish
to publish them to NPM -
git push
again because NPM creates one extra commit - Purge the script in CDN to get the latest version.
- Hard reload the jsdelivr link and make sure you see the new version.
We have an NPM account that you might need to publish the change. Ask Arda for the username and password.