Hi, and welcome to the contribution guideline page. Thanks for taking the effort to get here. Consider taking a look at the project architecture if you haven't already. Below are the steps that needs to be followed in order to contribute to this project.
You can follow this guideline to fork the project.
Add the feature you'd like to contribute to the project Please keep commits cohesive, and simple enough to describe the changes being added.
Please add a test for the newly added feature.
For instance if you add a feature A in src/dom.ts
file, then you should add a test in tests/dom.test.ts
file. That is, the test(s) should be added to the source file corresponding to the file that the feature was added.
Also, run the tests using npm test
to ensure that the test passes, and older tests are not broken. Testing is done using the Jest testing framework.
Create a pull request for the change added. This guideline details how to do so. Ensure to add a title that states the specific purpose of the pull request. For bug fixes, in the description, ensure to add a break down of the problem, reproducibility, and how your pull request fixes the problem. For feature additions, ensure to add a break down of the feature, including its purpose/motivation/reason.
Please embrace simplicity over tricky, complicated approach of solving a problem. Adding comments to sections that wouldn't be immediately understood is highly recommended, and encouraged. Simply running npm test
after your changes informs you if your code conforms to the style expected.
If Prettier complains about the code format, try reformatting using npm run format
.