We prefer using yarn for installing dependencies and running scripts.
The main branch is locked for the push action. For proposing changes, use the standard pull request approach. It's recommended to discuss fixes or new functionality in the Issues, first.
We are using NX for orchestrating our monorepo.
This repository contains packages with the Vue plugin (for versions 2 and 3) that can be found in the packages directory. Every package has associated examples in the examples directory.
To watch library run npx nx run $PROJECT_NAME:watch
, ex:
npx nx run fingerprintjs-pro-vue-v2:watch
To run the example applications use npx nx run $PROJECT_NAME:dev
, e.g.,
npx nx run spa-v2-example:dev
Applications will automatically refresh on package changes.
Run yarn test
to execute the unit tests via Jest in every package.
Alternatively, you can use npx nx test $PROJECT_NAME
to test only the specific package, e.g.,
npx nx test fingerprintjs-pro-vue-v2
We follow Conventional Commits for committing changes. We use git hooks to check that the commit message is correct.
To get more help on the NX use npx nx help
or check out the docs.
Affected packages are automatically released and published to NPM on every push to the main branch. The workflow must be approved by one of the maintainers, first.
We use typedoc to generate docs. To generate docs for library run npx nx run $PROJECT_NAME:docs
, ex:
npx nx run fingerprintjs-pro-vue-v2:docs
The docs will be generated into ./docs directory.
The docs are also automatically deployed to Github Pages on every push to the main branch.