Contributing 🙌
You are awesome for looking into contribute to CH-UI! Your contributions are essential for us. Whether you are fixing a bug, creating a new feature, or improving documentation, we appreciate your effort. This guide will help you get started.
How to Contribute
Reporting Bugs
- If you find a bug, please create an issue in our GitHub repository
- Make sure you include:
- A clear title describing the bug.
- Steps to reproduce the issue.
- Expected vs. actual behavior.
- Any relevant error messages or logs.
- Make sure you include:
Requesting Features
- Have an idea for a new feature? Great! Create a new feature request with the following details:
- Make sure you include:
- A clear description of the feature.
- Why it’s needed or how it improves CH-UI.
- Any additional context or mockups if available.
- Make sure you include:
Improving Documentation
Who in the world doesn’t want a good documentation!? If you find typos, missing information, or want to expand a section, feel free to submit a pull request.
Code Contributions
To contribute code, follow these steps:
-
Fork the repository to your GitHub account.
Alternatively, you can clone the repository directly:
git clone https://github.com/caioricciuti/ch-ui.git cd ch-ui
-
Create a new branch for your contribution:
git checkout -b feature/my-new-feature
-
Write your code and commit your changes:
git commit -m "Add new feature"
-
Push to your fork and open a Pull Request:
git push origin feature/my-new-feature
-
Open a pull request from your fork’s branch to
main
on the CH-UI repository.
Setting Up the Development Environment
Before you start contributing, set up the local environment:
-
Clone the repository:
git clone https://github.com/your-org/ch-ui.git cd ch-ui
-
Install dependencies and start the development server:
npm install npm run dev
-
Access the app locally at http://localhost:5173.
Code Style Guidelines
To maintain consistency:
- Follow the existing code patterns.
- Ensure your code is well-documented with comments where necessary.
- Run
npm run lint
to check for linting errors.
Testing
Before submitting a pull request:
-
Run all tests to ensure no existing functionality is broken:
npm test
-
Write tests for any new features.
Community and Support
If you need help or want to discuss a contribution idea, feel free to join our Slack channel. We also welcome discussions through GitHub Issues or Discussions.
License
By contributing to CH-UI, you agree that your contributions will be licensed under the same license as CH-UI. Check the LICENSE file for more information.
Thank You!
Thank you for being part of the CH-UI community. Together, we can build something incredible! ❤️