Thank you for your interest in contributing to Tail-Aid! This document provides guidelines and instructions for contributing.
- Fork the repository
- Create a new branch for your feature/fix
- Make your changes
- Submit a pull request
We follow the Conventional Commits specification for our commit messages. This helps us maintain a clean and meaningful commit history.
Format:
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types:
feat: A new featurefix: A bug fixdocs: Documentation changesstyle: Changes that don't affect code meaningrefactor: Code changes that neither fix bugs nor add featuresperf: Performance improvementstest: Adding or fixing testschore: Changes to build process or auxiliary tools
Example:
feat(sorting): add keyboard shortcut for class sorting
- Add Ctrl/Cmd + Shift + T shortcut
- Update documentation
- Add keyboard binding to package.json
Closes #123
We use Semantic Versioning for versioning. The version number is in the format MAJOR.MINOR.PATCH:
MAJOR: Breaking changesMINOR: New features (backwards compatible)PATCH: Bug fixes (backwards compatible)
-
Create a changeset for your changes:
npm run changeset
This will prompt you to describe your changes and their impact.
-
When ready to release:
- Push your changes to main
- The GitHub Action will:
- Create a version PR
- Update the CHANGELOG.md
- Create a GitHub release
- Publish to VS Code Marketplace
-
Install dependencies:
npm install
-
Build the extension:
npm run compile
-
Run in development mode:
- Press F5 in VS Code
- Select "Run Extension"
-
Run tests:
npm test -
Manual testing:
- Install the extension locally
- Test in different file types (HTML, JSX, TSX)
- Verify all features work as expected
- Update the README.md and CHANGELOG.md if needed
- Add tests for new features
- Ensure all tests pass
- Update documentation
- Create a changeset for your changes
- Submit the PR
- Follow the existing code style
- Use TypeScript for all new code
- Add comments for complex logic
- Keep functions small and focused
- Write meaningful commit messages
Feel free to open an issue for any questions about the contribution process.