ms-uk-local-authorities

2.2.3 • Public • Published

Modern Slavery UK Local Authorities

Exports a list of UK Local Authorities to be used in the modern slavery app.

Can be used with the Typeahead Aria, which is exported with HOF Frontend Assets.

Example Usage

The following is an example of Modern Slavery UK Local Authorities in a HOF field with Typeahead Aria:

'country-select'-step: {
  mixin: 'select',
  className: ['typeahead', 'js-hidden'],
  options: [''].concat(require('ms-uk-local-authorities')),
  legend: {
    className: 'visuallyhidden'
  },
  validate: ['required']
},

Version Control

We follow the version format of Major.Minor.Patch i.e. (v1.2.3) where Major = breaking change, Minor non-breaking change but more than a patch, like a new feature and a Patch = non breaking usually a bugfix.

Creating a Release

  1. Update the version number in the package.json file. E.g.
"version": "1.2.3",

Once this PR has been approved and merged to master we follow the next steps in order to Create a release tag.

  1. Tag the new module version

Once the PR has been approved and merged, let the module build and update the master branch on your local machine:

Then tag the module with the git tag command, for example:

git tag v5.1.1

Once tagged, push the new tags to the remote git server:

git push origin --tags
  1. The following steps will publish to npm, please consult the following page for most up to date information.

https://collaboration.homeoffice.gov.uk/display/CTO/Updating+a+HOF+dependency+and+consuming+it+in+your+application

Package Sidebar

Install

npm i ms-uk-local-authorities

Weekly Downloads

42

Version

2.2.3

License

MIT

Unpacked Size

37.3 kB

Total Files

5

Last publish

Collaborators

  • easternbloc
  • zuzak
  • sulthan-ahmed
  • sarahjaneluff
  • mohameduwais