2.5 KiB
2.5 KiB
Contributing to React Scan
First off, thanks for taking the time to contribute! ❤️
Table of Contents
Project Structure
This is a monorepo containing several packages:
packages/scan- Core React Scan packagepackages/vite-plugin-react-scan- Vite plugin for React Scanpackages/extension- VS Code extension
Development Setup
-
Clone and Install
git clone https://github.com/aidenybai/react-scan.git cd react-scan pnpm install -
Build all packages
pnpm build -
Testing React Scan
cd packages/scan pnpm build:copy- This will build the package and then copy it to your clipboard as an IIFE (immedietely invoked function expression). This will allow you to paste it into the browser console to test it on any website
https://github.com/user-attachments/assets/f279e664-479f-4e39-bff4-1bbfee30af22
Contributing Guidelines
Commits
We use conventional commits to ensure consistent commit messages:
feat:New featuresfix:Bug fixesdocs:Documentation changeschore:Maintenance taskstest:Adding or updating testsrefactor:Code changes that neither fix bugs nor add features
Example: fix(scan): fix a typo
Pull Request Process
- Fork the repository
- Create your feature branch (
git checkout -b feat/amazing-feature) - Commit your changes using conventional commits
- Push to your branch
- Open a Pull Request
- Ask for reviews (@pivanov, @RobPruzan are your friends in this journey)
Development Workflow
-
TypeScript
- All code must be written in TypeScript
- Ensure strict type checking passes
- No
anytypes unless absolutely necessary
-
Code Style
- We use Biome for formatting and linting
- Run
pnpm formatto format code - Run
pnpm lintto check for issues
-
Documentation
- Update relevant documentation
- Add JSDoc comments for public APIs
- Update README if needed
Getting Help
- Check existing issues
- Create a new issue
⚛️ Happy coding! 🚀