Thank you for considering contributing to the postwright project! This guide outlines how to get involved and contribute effectively.
- Code of Conduct
- How Can I Contribute?
- Setting up the Development Environment
- Pull Request Guidelines
- Style Guide
- License
Please read our Code of Conduct to understand how we expect contributors to conduct themselves while participating in this project.
If you encounter a bug or have a question about the project, please:
- Search for existing issues to ensure it's not a duplicate.
- Create a new issue if one doesn't exist. Use a clear and descriptive title and provide as much information as possible, such as:
- Steps to reproduce the issue
- The expected result
- The actual result
- Version of
postwright
being used - Any other relevant information, such as system configurations
We welcome ideas to improve the package! When suggesting an enhancement:
- Explain the current state of the problem and why your enhancement would help.
- Provide details about how the enhancement would work.
- Add potential use cases and examples, if possible.
- Fork the repository.
- Create a new branch (from
main
ordevelop
) for your changes:git checkout -b feature/my-feature
- Make your changes, following the Style Guide.
- Commit your changes:
git commit -m "Add a concise description of the changes"
- Push to your fork:
git push origin feature/my-feature
- Submit a pull request (PR) to the main repository and describe your changes in detail.
Please keep the scope of each PR focused and atomic. If you plan on making significant changes, it's best to open an issue or start a discussion first.
To contribute to postwright
, follow these steps to set up your local environment:
- Clone the repository:
git clone https://github.com/your-username/postwright.git
- Navigate to the project directory:
cd postwright
- Install dependencies:
npm install
- Run tests to ensure everything works as expected:
npm test
- Keep your PR focused; avoid including unrelated changes.
- Provide a detailed description of the changes in your PR.
- Update relevant documentation, if applicable.
Follow these guidelines to maintain code quality:
- Code Style: Follow the coding style used in the project. Use a linter to maintain consistency (
npm run lint
). - Commit Messages: Use concise and clear commit messages, following Conventional Commits, e.g.,
feat: add feature x
. - Testing: Ensure all features have corresponding tests and that all tests pass before submitting a PR.
By contributing, you agree that your contributions will be licensed under the MIT License.