Contributing
- Fork the repository.
- Create a topic branch.
- Implement your feature or bug fix.
- Don’t forget to add tests and make sure they pass (
npm test) - Run linter
npm run lint:fix. - If necessary, add documentation for your feature or bug fix.
- Commit and push your changes.
- Submit a pull request.
Building
- Run
npm run-script build - Browse
dist/folder
Running tests
This library is tested with Node 20+. To test it locally:
- Copypaste
.env.examplefile as.env. Put your API token inside. The.envfile is excluded from version control so your token is safe. All in all, we use pre-recorded cassettes, so the actual API requests won’t be sent. However, providing at least some token is required. - Run
npm test. Observe test results and coverage.
Previewing the docs locally
- Clone the repo.
cd docsbundle exec jekyll serve --baseurl='' --config _config.dev.yml.- Navigate to
http://localhost:4000and observe the docs.