We're excited you're interested in contributing to the PWA Generator project! We welcome contributions of all kinds, including bug fixes, feature enhancements, documentation improvements, and code reviews. This guide outlines the process for contributing effectively.
-
Fork the Repository:
- Visit the PWA Generator repository on GitHub.
- Click the "Fork" button to create your copy of the codebase.
-
Clone Your Fork:
- Open your terminal and use
git clone
to clone your forked repository to your local machine. Replace<username>
with your GitHub username:
git clone [https://github.com/](https://github.com/)<username>/pwagenerator.git
- Open your terminal and use
-
Install Dependencies (using PNPM):
- Navigate to your local project directory.
- Install the necessary dependencies using PNPM:
pnpm install
-
Create a Branch:
- Use
git checkout -b <branch_name>
to create a new branch for your changes. - Use a descriptive branch name (e.g.,
fix-typo-in-readme
,add-icon-generation
).
git checkout -b fix-typo-in-readme
- Use
-
Work on Your Changes:
- Make your modifications to the codebase.
- Follow the project's coding style guidelines (if any).
-
Linting and Formatting:
- Before committing, ensure your code passes linting and formatting checks. Run the following command:
pnpm run lint -- fix
This command will automatically fix most linting and formatting issues. If there are any remaining errors, please address them manually.
-
Testing Your Changes:
- Thoroughly test your changes to ensure they work as expected and don't introduce regressions.
- Consider adding unit tests if applicable.
-
Committing Your Changes:
- Stage your changes using
git add <filename>
orgit add .
to stage all changes. - Commit your changes with a clear and concise message using
git commit -m "<message>"
. Follow conventional commits if possible.
git add . git commit -m "fix: Corrected typo in README"
- Stage your changes using
-
Pushing Your Changes:
- Push your changes to your forked repository:
git push origin <branch_name>
-
Open a Pull Request:
- Visit your forked repository on GitHub and go to the "Pull requests" tab.
- Click "New pull request."
- Select your branch from the "compare" dropdown.
- Provide a clear title and description for your PR, explaining the changes you've made and the problem they solve.
-
Review and Discussion:
- We'll review your PR and may provide feedback or request changes.
- Be responsive to feedback and willing to make adjustments as needed.
- Code Style: Adhere to the project's coding style guidelines to maintain consistency.
- Documentation: If your contribution changes functionality or the user interface, update the relevant documentation.
- Communication: Actively participate in discussions and address questions or feedback promptly.
- Conventional Commits: We encourage the use of conventional commits for more organized commit history.
We appreciate your contribution to the PWA Generator project. Your participation helps make this tool better for everyone!