You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.6 KiB
2.6 KiB
Contributing to Daily Notification Plugin
Thank you for your interest in contributing to the Daily Notification Plugin for Capacitor! This document provides guidelines and instructions for contributing.
Development Setup
- Fork the repository
- Clone your fork:
git clone https://github.com/yourusername/capacitor-daily-notification.git cd capacitor-daily-notification
- Install dependencies:
npm install
- Build the project:
npm run build
Development Guidelines
Code Style
- Follow TypeScript best practices
- Use meaningful variable and function names
- Add JSDoc comments for public APIs
- Keep functions focused and single-purpose
- Maintain consistent indentation (2 spaces)
- Follow PEP 8 style guide for Python code
- Keep lines under 80 characters
Testing
- Write unit tests for new features
- Update existing tests when modifying code
- Ensure all tests pass before submitting PR
- Add integration tests for complex features
- Test on both iOS and Android platforms
Documentation
- Update README.md for significant changes
- Document new APIs in the code
- Update CHANGELOG.md for version changes
- Add examples for new features
- Keep documentation up to date
Git Workflow
- Create a feature branch:
git checkout -b feature/your-feature-name
- Make your changes
- Commit your changes:
git commit -m "feat: add your feature"
- Push to your fork:
git push origin feature/your-feature-name
- Create a Pull Request
Commit Messages
Follow conventional commits format:
feat:
for new featuresfix:
for bug fixesdocs:
for documentation changesstyle:
for code style changesrefactor:
for code refactoringtest:
for adding testschore:
for maintenance tasks
Example:
feat: add timezone support for notifications
Pull Request Process
- Update the README.md with details of changes if needed
- Update the CHANGELOG.md with a note describing your changes
- Ensure all tests pass
- Request review from maintainers
Code Review Guidelines
- Review code for:
- Functionality
- Test coverage
- Documentation
- Code style
- Performance
- Security
Release Process
- Update version in package.json
- Update CHANGELOG.md
- Create a release tag
- Build and test release
- Publish to npm
Support
- Open issues for bugs
- Use discussions for feature requests
- Join the community chat for questions
License
By contributing, you agree that your contributions will be licensed under the project's MIT License.