Thank you for your interest in contributing to OpenNext.js CLI! This document provides guidelines and instructions for contributing.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/opennextjs-cli.git - Create a branch:
git checkout -b feature/your-feature-name - Install dependencies:
pnpm install - Make your changes
- Test your changes:
pnpm test - Commit your changes:
git commit -m "Add feature: your feature" - Push to your fork:
git push origin feature/your-feature-name - Open a Pull Request
# Install dependencies
pnpm install
# Run linting
pnpm lint
# Run type checking
pnpm type-check
# Build the project
pnpm build- We use Prettier for code formatting
- We use ESLint for linting
- We use TypeScript with strict mode
- All code must have JSDoc comments
- All user inputs must be validated with Zod schemas
We follow Conventional Commits:
feat:New featurefix:Bug fixdocs:Documentation changesstyle:Code style changes (formatting, etc.)refactor:Code refactoringtest:Adding or updating testschore:Maintenance tasks
- Ensure all tests pass
- Update documentation if needed
- Add JSDoc comments for new functions
- Ensure code follows our style guidelines
- Request review from maintainers
Feel free to open an issue or discussion if you have questions!