Thank you for your interest in contributing to MERN Project Generator CLI! We're excited to welcome contributors who want to help improve this tool for the developer community. This document provides guidelines and instructions for contributing.
- Code of Conduct
- Getting Started
- Development Process
- Pull Request Process
- Reporting Bugs
- Feature Requests
- Style Guidelines
- Community
By participating in this project, you agree to maintain a respectful and inclusive environment for all contributors. Please:
- Use welcoming and inclusive language
- Be respectful of differing viewpoints and experiences
- Accept constructive criticism gracefully
- Focus on what is best for the community
- Show empathy towards other community members
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/mern-project-cli.git
cd mern-project-cli
- Install dependencies:
npm install
- Create a new branch for your feature/fix:
git checkout -b feature/your-feature-name
-
Set up your development environment
- Ensure you have Node.js (v14 or higher) installed
- Install all dependencies using
npm install
- Link the package locally using
npm link
-
Make your changes
- Write clear, concise commit messages
- Add tests for new features
- Update documentation as needed
-
Test your changes
npm test # Run tests npm run lint # Check code npm run lint:fix # Fix The style
-
Test the CLI locally [Your Commands]
devcli --version # Check if CLI is working
-
Update your fork
git remote add upstream https://github.com/manishraj27/mern-project-cli.git git fetch upstream git merge upstream/main
-
Create your PR
- Ensure your PR description clearly describes the problem and solution
- Include the relevant issue number if applicable
- Update the README.md if any changes affect user-facing functionality
-
PR Checklist
- Tests pass
- Code follows style guidelines
- Documentation updated
- Commit messages are clear
- Changes are in a single commit (if possible)
- Branch is up to date with main
When reporting bugs, please include:
- Your operating system name and version
- Node.js version
- Relevant dependencies and their versions
- Step by step description of how to reproduce the issue
- What you expected would happen
- What actually happens
Use the GitHub Issues template for bug reports.
We welcome feature requests! Please provide:
- Clear and detailed description of the feature
- Use cases for the feature
- Any potential implementation ideas you have
- Whether you'd be interested in implementing it yourself
Use the GitHub Issues template for feature requests.
- Use ES6+ features where appropriate
- Follow existing code formatting
- Use meaningful variable and function names
- Add comments for complex logic
- Keep functions focused and modular
Format: type(scope): description
Types:
- feat: New feature
- fix: Bug fix
- docs: Documentation changes
- style: Code style changes
- refactor: Code refactoring
- test: Adding tests
- chore: Maintenance tasks
Example:
feat(cli): add support for custom MongoDB port configuration
- Join our discussions in GitHub Issues
- Star the repository if you find it helpful
If you have any questions about contributing, please:
- Check existing GitHub Issues
- Create a new Issue if your question hasn't been addressed
- Reach out to the maintainers
Thank you for contributing to MERN Project Generator CLI! 🚀
By contributing to MERN Project Generator CLI, you agree that your contributions will be licensed under the MIT License.