Skip to content

Latest commit

 

History

History
69 lines (54 loc) · 3.71 KB

CONTRIBUTING.md

File metadata and controls

69 lines (54 loc) · 3.71 KB

How to contribute

Common mistakes

  • Opening a pull request without a description or a proper name is not fun for the reviewer, so try to explain your change as much as possible either by text or a code snippet.
  • Adding new dependencies or modifying the package.json will most likely be not accepted or will be accepted in a long time since adding a new dependency to the codebase can be tricky.
  • This project uses npm, so please try to respect the choice and try to use it.

📝 Useful scripts

These are the useful scripts that you can use while developing. You can find them in the package.json file. You can run them by using npm run <script_name>.

Script Description
dev Start the development environment
build Test and build the app and the live-demo
build:live-demo Only build the live-demo
build:lib Only build the library
coverage:web Serve the test coverage report to localhost
generate:types Generate all the types for the project
changeset Adds a changelog to the project after a change
test Run the tests once
test:watch Watch the tests
test:coverage Create a coverage report for the tests
clean Remove ./dist and ./live-demo directories

When pushing your changes, always include a changeset file. You can do this by running the changeset script. It will ask you a few questions and then create a file for you. You can read more about it here.

🐛 Did you find a bug?

Ensure the bug was not already reported by searching on GitHub under Issues. If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible demonstrating the expected behavior that is not occurring.

💡 Do you want to add a new feature or change an existing one?

Open a GitHub issue stating your feature request clearly. We can discuss it on the issue thread, then you can implement it! 🎉

Did you write a change that fixes a bug?

Open a new GitHub pull request with the patch.

  1. Fork the repository
  2. Modify the code and make your amazing change
  3. Create your feature branch
    git checkout -b feature/<your_feature>
  4. IMPORTANT! If your code contains minor or a major change that needs to be stated on the changelog, please run the command below and write down what you have changed in a brief manner.
    npm run changeset
  5. Add your changes
    git add .
  6. Commit your changes (please respect the commit message standards)
    git commit -m "feat: added amazing things!"
  7. Push your changes
    git push -u origin feature/<your_feature>
  8. Open a pull request from your branch
    • State your change in the title according to the conventional commit guidelines.
    • Please respect the pull request template while writing your PR description.

Open source software is beautiful, all of your contributions are much appreciated

Thanks!