Thank you for your interest in contributing to CReact! This document provides guidelines for contributing.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/creact.git cd creact - Install dependencies:
npm install
- Build the project:
npm run build
- Run tests:
npm test
-
Create a new branch for your feature or fix:
git checkout -b feature/your-feature-name
-
Make your changes
-
Run tests to ensure everything works:
npm test -
Commit your changes with a clear message:
git commit -m "Add: description of your change" -
Push to your fork:
git push origin feature/your-feature-name
-
Open a Pull Request
Use clear, descriptive commit messages:
Add:for new featuresFix:for bug fixesDocs:for documentation changesRefactor:for code refactoringTest:for adding or updating tests
- Use TypeScript for all source files
- Follow existing code patterns
- Add tests for new functionality
- Keep functions small and focused
- Keep PRs focused on a single change
- Update documentation if needed
- Add tests for new features
- Ensure all tests pass
- Reference any related issues
When reporting issues, please include:
- A clear description of the problem
- Steps to reproduce
- Expected vs actual behavior
- Node.js version
- Operating system
Feel free to open an issue for questions or reach out to the maintainers.
By contributing, you agree that your contributions will be licensed under the Apache License 2.0.