@@ -37,6 +37,18 @@ Open the developer console to find out your client's ID. To connect to another p
...
@@ -37,6 +37,18 @@ Open the developer console to find out your client's ID. To connect to another p
>> window.connectToPeer("peer-id")
>> window.connectToPeer("peer-id")
```
```
## Development
### Precommit Checks
The project is supplied with a `.pre-commit-config.yml`. This file defines the checks that [pre-commit](https://pre-commit.com/) must execute on every `git commit`.
To use pre-commit (RECOMMENDED):
1. Install it, following the instructions available at the link provided;
2. Hook it to the project, by running `pre-commit install` from the project's root directory.
Whenever a pre-commit check fails, it fixes the code in place for you and aborts the commit.
You therefore have to `git add .` and reissue the `git commit` command.