Skip to content

UKHomeOffice/asl-constants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

132 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asl-constants

Provides a home for any commonly used values shared across the ASL project.

Usage

Authenticate with GitHub packages

Install the package:

npm install @ukhomeoffice/asl-constants --save-prod

Import as necessary:

const { establishmentCountries, establishmentStatuses } = require('@ukhomeoffice/asl-constants');
console.log(establishmentCountries);

result:

[
  'england',
  'scotland',
  'wales',
  'ni'
]

Publishing

This is automatically published to the GitHub packages npm repository using GitHub Actions.

When opening a pull request add a label major, minor or patch (or skip-release) and the version field in package.json will be updated by the pipeline using npm version.

It is published once the pull request is merged if there is no skip-release label on the pull request, the SHA is also tagged with the SemVer value at that point.

About

Module containing commonly used values shared across the ASL project. Centralized storage for constants and configuration variables, ensuring consistent usage of fixed values like statuses, roles, and error codes across the project.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors