Hello! We're thrilled that you're interested in contributing to the Referral Link Inserter Chrome extension. Your contributions will help make the extension more efficient and user-friendly.
Before you begin, please ensure you have a GitHub account and have familiarized yourself with the GitHub flow. Detailed instructions can be found at https://guides.github.com/introduction/flow/.
- Fork the repository on GitHub.
- Clone your fork to your local machine.
- Create a new branch for your changes.
To build the project, run the following command in your terminal:
npm run build
This script compiles TypeScript files and copies HTML, JSON, and PNG files from the src
directory to the dist
directory.
We use AVA for testing. To run tests, execute:
npm test
This will run all test files located in ./src/tests/
with TypeScript support.
To ensure code quality and consistency, run the linter:
npm run lint
This uses XO to enforce a consistent code style.
To automatically format your code, you can run:
npm run format
This command will fix linting errors and format the code according to the defined rules in XO configuration.
- Write code in ES6 where possible.
- Use comments to explain the "why" not the "what".
- Follow the existing code style, enforced by Prettier and ESLint.
- Separate logic into functions or classes for better maintainability.
Bugs are tracked as GitHub issues. When you are creating a bug report, please include as much detail as possible:
- Use a clear and descriptive title.
- Describe the exact steps which reproduce the problem.
- Provide specific examples to demonstrate the steps.
- Describe the behavior you observed after following the steps and why it's a problem.
- Explain which behavior you expected to see instead and why.
Feature requests are also tracked as GitHub issues. Before you submit a request, please search the repository for existing tickets to avoid duplicates. Use a clear and descriptive title. Provide a step-by-step description of the suggested enhancement in as many details as possible.
If you have any questions, please post them as GitHub issues.
Thank you for contributing to the Referral Link Inserter!