Thank you for your interest in contributing to remove-comments-cli! This document provides guidelines and instructions for contributing.
-
Fork and clone the repository:
git clone https://github.com/siddhantbg/remove-comments-cli.git cd remove-comments-cli -
Install dependencies:
npm install
-
Build the project:
npm run build
-
Run tests:
npm test
-
Create a new branch for your feature/fix:
git checkout -b feature/your-feature-name
-
Make your changes and ensure:
- All tests pass:
npm test - Code is linted:
npm run lint - Code is formatted:
npm run format - TypeScript compiles:
npm run build
- All tests pass:
-
Write or update tests for your changes
-
Update documentation if needed:
- README.md for user-facing changes
- Code comments for technical details
- Docusaurus docs for detailed guides
- Use TypeScript for all new code
- Follow the existing code style (enforced by ESLint and Prettier)
- Write descriptive commit messages
- Add JSDoc comments for public APIs
- Keep functions focused and small
- Use meaningful variable names
- Update the README.md with details of major changes
- Update the version number following SemVer
- Include tests for new functionality
- Ensure the test suite passes
- Update documentation
- feat: New feature
- fix: Bug fix
- docs: Documentation changes
- test: Test updates
- chore: Routine tasks, maintenance
## Description
[Describe your changes]
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update
## How Has This Been Tested?
[Describe test cases]
## Checklist
- [ ] My code follows the project's style guidelines
- [ ] I have performed a self-review
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes- Use the bug report template
- Include Node.js version and OS
- Provide minimal reproduction steps
- Include error messages and stack traces
- Use the feature request template
- Explain the use case
- Describe expected behavior
- Provide example usage
- Keep README.md user-focused
- Update Docusaurus docs for detailed guides
- Include code examples
- Document edge cases and limitations
- Write unit tests for new features
- Include edge cases in tests
- Maintain or improve code coverage
- Test cross-platform compatibility
- Check existing issues and documentation
- Open a new issue if needed
- Join our discussions
By contributing, you agree that your contributions will be licensed under the MIT License.