First off, thank you for considering contributing to taskmark! It's people like you that make this project better.
By participating in this project, you are expected to uphold a respectful and inclusive environment.
Before creating bug reports, please check existing issues to avoid duplicates. When you create a bug report, include as many details as possible:
- A clear and descriptive title
- Steps to reproduce the problem
- Expected behavior
- Actual behavior
- Your environment (OS, Node version, etc.)
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion:
- Use a clear and descriptive title
- Provide a detailed description of the suggested enhancement
- Explain why this enhancement would be useful
- Fork the repo and create your branch from
main - If you've added code that should be tested, add tests
- If you've changed APIs, update the documentation
- Ensure the test suite passes
- Make sure your code lints
- Issue that pull request!
# Clone your fork
git clone https://github.com/your-username/taskmark.git
cd taskmark
# Install dependencies
npm install# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage
# Lint code
npm run lint
# Fix linting issues
npm run lint:fix
# Format code
npm run format
# Type check
npm run typecheck
# Build
npm run build
# Serve documentation locally
npm run docs:serve- Write tests for all new features
- Maintain or improve code coverage
- Run the full test suite before submitting PRs
This project uses Biome for linting and formatting. The configuration is in biome.json.
Key conventions:
- Use TypeScript for all source code
- Add JSDoc comments for public APIs
- Follow the existing code structure
- Use meaningful variable and function names
- Keep functions small and focused
We follow Conventional Commits:
type(scope): subject
body
footer
Types:
feat: A new featurefix: A bug fixdocs: Documentation changesstyle: Code style changes (formatting, etc.)refactor: Code refactoringtest: Adding or updating testschore: Maintenance tasks
Examples:
feat: add new utility function
fix: resolve issue with type inference
docs: update API documentation
test: add tests for greet function
- Update README.md for significant changes
- Update docs/ for API changes
- Add JSDoc comments for public APIs
- Include code examples where appropriate
taskmark/
├── .github/ # GitHub Actions workflows
├── docs/ # Documentation (Docsify)
├── src/ # Source code
│ ├── index.ts # Main entry point
│ └── *.test.ts # Test files
├── dist/ # Build output (generated)
├── package.json # Package configuration
├── tsconfig.json # TypeScript configuration
├── vitest.config.ts # Vitest configuration
└── biome.json # Biome configuration
Releases are automated via GitHub Actions:
- Create a new version:
npm version [patch|minor|major] - Push changes:
git push && git push --tags - The CI/CD pipeline will automatically publish to npm
Feel free to open an issue for any questions or concerns!
By contributing, you agree that your contributions will be licensed under the MIT License.