Skip to content

govuk-one-login/account-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

account-components

This repo contains the code for Account Components

Installation

Install NVM or FNM and select the correct Node version by running nvm use or fnm use.

Install Homebrew.

Install dependencies with npm ci.

Updating Node version

When updating the Node version you will need to update the following:

  • engines.node field in package.json
  • .nvmrc
  • .node-version
  • Node images in Dockerfiles
  • ensure the base TSConfig installed as a development dependency in package.json and used in tsconfig.json corresponds with the Node version being used e.g. for Node 22 use the base TSConfig @tsconfig/node22
  • ensure the major version of @types/node installed as a development dependency in package.json corresponds with the Node version being used

Useful commands

There are various commands which can be run manually and which are also run by Git hooks and in CI:

  • npm run format to run Prettier formatting
  • npm run eslint to run ESLint
  • npm run knip to run Knip
  • npm run tflint to lint Terraform files
  • npm run cflint to lint CloudFormation templates with the file extension .cf.yaml
  • npm run check-gh-actions to check GitHub Actions with Zizmor
  • npm run detect-secrets to detect secrets which should not be in the repo. False positives can be ignored with comments or added to the baseline by running npm run detect-secrets:update-baseline

If these commands detect issues it may be possible to fix them by running:

  • npm run format:fix
  • npm run eslint:fix
  • npm run knip:fix
  • npm run tflint:fix
  • npm run cflint:fix
  • npm run check-gh-actions:fix

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •