Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
- Node.js:
>=14.15.0
To install all dependencies and build all packages run the following commands from the root of the project.
npm
npm run build
Good pull requests, such as patches, improvements, and new features, are a fantastic help. They should remain focused in scope and avoid containing unrelated commits.
Please ask first if somebody else is already working on this or the Contentful developers think your feature is in-scope. If one does not already exist then please create a related issue for the changes you plan to make.
Source code and associated unit tests can be found in the src/
directory.
Integration tests can be found in the test/
directory.
All commit messages should meet the conventional commit format.
You don't need to worry about formatting your code. It is automatically reformatted using prettier
on every commit using Git hooks.
We use ESLint and Typescript ESLint for linting and checking code for errors.
All modern editors should automatically pick up configuration and show errors and warnings while you type.
We use Mocha for writing tests.
Before running tests please run the preTest
command. It will generate a keypair to enable testing of the related functionality.
npm run pretest
npm run test:unit
⚠️ Please NoteIn order to run integration tests all the environment variables present in
.env.tpl
must be provided.
npm run test:integration