Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.32 KB

CONTRIBUTING.md

File metadata and controls

53 lines (38 loc) · 1.32 KB

Contribution

In order to contribute to the improvement of the project, below you will find the project development flow. Before being able to open a PR with changes to be applied or bug fixes to be solved, it is necessary to open an issue and explain the reason and a possible solution. You can open each PR by forking the project and creating the PR directly from your project to the project of our library.

Main rules:

  • Open issue
  • Create PR from forked project
  • Link your PR to the issue

Development environment

To ease local development you have to install these tools:

Install dependencies

To install dependencies, execute these commands:

yarn install

Test project

To run tests, execute this command:

yarn test

Lint project

To lint the project files, execute this command:

yarn lint

Compile and minify for production

To create a production version, execute this command:

yarn build

ESM - CJS

This library is exported to support both ESM and CJS usage. To ensure a good output on ESM we need to add the extension on exports and imports with '.js'. This is necessary and also recommended by Typescript maintainers to generate code that works in environments where ESM can be used.