After cloning the repository a minimum setup recommended is to enable the pre-commits from pre-commit and husky:
Setup a venv environment
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install pre-commit
Setup pre-commits
$ pre-commit install
$ npx husky-init
Configure the rest of the environment
$ npm install
The role of the pre-commits here is:
- Standardize coding styles
- Guarantee that
/dist
folder is compiled withncc
, bundling all dependencies
These rules are also enforced in the GitHub Action with automatic commit pushes on PRs.