Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 1.33 KB

CONTRIBUTING.md

File metadata and controls

77 lines (54 loc) · 1.33 KB

@seriouslag/httpclient

The monorepo for the @seriouslag/httpclient package.

Contributing

Requirements

Node: Check that node is installed with version 14.x or greater. Node's version can be checked with

# Check node version
node -v

Setup

# Installs all dependencies
npm install

Build

npm run build

Testing

# Runs all unit tests
npm run test
# Runs all unit tests and builds a coverage report. Results are found in ./coverage folder.
npm run test:coverage

Linting

# Lints all JS/TS files
npm run lint
# Lints and attempts to fix common linting errors in JS/TS files
npm run lint:fix

Commiting code

Always work from a new branch off of main or fork this repo.

Rebase often! This will help avoid merge large merge conflicts later.

git fetch origin main
git checkout origin main
git pull
git switch -
git rebase origin/main

Pull requests (PR) must go through the build pipeline and peer reviewed before merging into main.
Keep PRs small so they are easier to get through review.

Debugging code

This repository comes with a .vscode/launch.json file.
This can be used to run debugging sesions using vscode.


README