Thank you for your interest in contributing to phenopackets-js! This guide will help you get started.
Development Setup
-
Fork and clone the repository:
git clone https://github.com/yourusername/phenopackets-js.git cd phenopackets-js
-
Install dependencies:
npm install
-
Set up the development environment:
npm run setup
Development Workflow
-
Create a new branch for your feature:
git checkout -b feature/your-feature-name
-
Make your changes and ensure they follow our coding standards:
npm run lint npm run format
-
Run tests to ensure everything works:
npm test
-
Update documentation if needed:
npm run docs:generate-api
Pull Request Process
- Ensure your code follows our coding standards
- Update the documentation if you’re adding new features
- Add tests for any new functionality
- Use conventional commits for your commit messages
- Submit your PR with a clear description of the changes
Code Style
- Use ESLint and Prettier for code formatting
- Follow the existing code style
- Add JSDoc comments for new functions and classes
- Keep code modular and maintainable
Documentation
When adding new features, please:
- Add JSDoc comments to your code
- Update relevant guide documentation
- Include examples in the documentation
- Update the README if necessary
Need Help?
If you need help or have questions:
- Check existing issues and documentation
- Open a new issue for discussion
- Tag maintainers for clarification
Thank you for contributing to phenopackets-js!