Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 1.08 KB

CONTRIBUTING.md

File metadata and controls

76 lines (56 loc) · 1.08 KB

Contributing

Prerequisites

You need NodeJS installed in order to contribute to this project.

Instead of installing NodeJS, you can use docker and put these scripts in your $PATH :

npm

#!/bin/bash
# npm
docker run \
    --rm \
    -it \
    -u $(id -u):$(id -g) \
    -v "$(pwd)":/app \
    --workdir /app \
    node \
    npm $@

node

#!/bin/bash
# node
docker run \
    --rm \
    -u $(id -u):$(id -g) \
    -v "$(pwd)":/app \
    --workdir /app \
    node \
    node $@

Useful commands

Installation

npm i;

Tests

npm run test;

Code coverage

npm run cover;

Lint

npm run lint;

Commits

Before committing any piece of code, make sure you added/modified the corresponding tests.

Some pre-commit hooks are here to make sure that :

  • Every test passes (Tests)
  • Every piece of code is tested (Coverage)
  • The code is written in a consistent way (Lint)