Thank you for considering contributing to Clinton CAT! We appreciate your time and effort to improve this project. Please follow the guidelines below to ensure a smooth collaboration.
- Fork the repository on GitHub.
- Clone your forked repository to your local machine:
git clone git@github.com:YourUsername/ClintonCAT.git cd ClintonCAT
Ensure you have Node.js and npm installed. Then, run:
npm install
- Use a feature branch for your changes:
git checkout -b feature/your-feature-name
- Make your changes and commit them with clear commit messages.
- Run tests before submitting a PR:
npm test
- Format your code before committing:
npm run format
- Push the branch to your fork and submit a Pull Request (PR).
To start the development server and watch for changes, run:
npm run dev:chromium
For Firefox (Gecko-based browsers), use:
npm run dev:gecko
This will start Webpack and watch for changes automatically. (Manually reloading the page is still required to reflect changes.)
- Follow the existing coding style.
- Run Prettier for formatting:
npm run format
- Ensure ESLint passes without errors:
npm run lint
We use Jest for unit and integration testing.
- Run all tests:
npm test
- For manual browser testing:
npx http-server tests/www
- Ensure your branch is up to date with
main
:git pull origin main
- Open a PR on GitHub and follow the provided PR template.
- Include a clear description of your changes.
If you find a bug or have a feature request:
- Check existing issues before creating a new one.
- Provide a clear description, steps to reproduce, and expected behavior.
- Add relevant screenshots or logs, if applicable.
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for contributing! 🚀