.git
folder and call git init
/ Use Use this template
GitHub buttonartifactName
and other build properties in rollup.config.js
.d.ts
typings, set correct path in package.json
for test:dts
command or remove it src
folder to organize your code and put tests in __test__
folderCheck FingerprintJS naming conventions
Described in Integrations and repositories best practices
For unit tests, we use jest, because of the good infrastructure, flexible instruments for mocks and big community.
This repository contains example of how to configure code coverage reporting without SaaS solutions like codecov (such solutions require token with full access to the repository). In PR#13 you can find what you need to configure:
For API reference we use typedoc
package and publish documentation in GitHub Pages.
Publishing to NPM is automated thanks to semantic-release.
On every push to main
branch it will analyze commits and release new version accordingly to changes.
To set it up:
NPM_AUTH_TOKEN
to the repository secrets areaGH_RELEASE_TOKEN
to the repository secrets area, it should have following permissions: public_repo
, or repo
if your repository is private.
Thanks to that, you will get automatic releases on GitHub, comments on issues and more!Just follow checklist for publishing new integration