Thank you for considering to contribute to this project. These guidelines will help you get going with development and outline the most important rules to follow when submitting pull requests for this project.
- Clone the (forked) repository
- Run
yarn install
in the project directory
yarn build
This will run the TypeScript compiler and write the JavaScript output to dist
.
yarn lint
This will run tslint to check for code style errors.
yarn test
This will run automated tests with jest. There are also some end-to-end tests which can be run with yarn test:e2e
.
Note: The E2E tests expect a built version of the package to be present in
dist/
so it's best to runyarn build
first.
To get changes merged, create a pull request. Here are a few things to pay attention to when doing so:
The summary of a commit should be concise and worded in an imperative mood.
...a what mood? This should clear things up: How to Write a Git Commit Message
It is required that you follow the existing code style. Use yarn lint
to check.
If it makes sense, writing tests for your PRs is always appreciated and will help get them merged.