The Adrenalin Media Utility Library is a collection of useful code functions and snippets. Code here should be dependency free (e.g. no React components) with the goal of re-use of code in an easy to use manner.
Code committed to Bitbucket will then need to be published to NPM.
To include code in your project, simply use npm install @adrenalin/util
to add it to your project. You can also specify version numbers if you need to.
After making changes, a commit should be created and, if required, merged back into the develop
branch. The version number should then be incremented using one of the npm version
commands outlined below. This will ensure that a new commit is created and tagged with the new version number.
npm version patch
- Minor bug fixes/changes
npm version minor
- For new backwards compatible features
npm version major
- For any backwards incompatible changes
Finally, publish your changes to NPM using npm publish
. This will also push all changes and tags to the develop
branch on origin
.