Thank you for your interest in contributing to DialectMorph! This document provides guidelines and instructions for contributing to the project.
- Clone the repository:
git clone https://github.com/Kannav02/DialectMorph.git
cd DialectMorph
- Install dependencies:
- Make sure you have bun installed (follow the installation guide)
- Run
bun install
The project uses Jest for testing. Here are the available test commands:
Note, this project utilises NPM for testing with Jest, make sure you have it installed on your machine locally
# Run all tests
npm test
# Watch mode (runs tests related to changed files)
npm test:watch
# Watch all files
npm test:watchAll
# Run a specific test file
npm test path/to/your/test.test.ts
# Run tests matching a specific name
npm test -t "test name"
Before submitting any Pull Requests or pushing to the main branch, ensure you run the following linting scripts to pass the CI pipeline:
bun run format # Format all files according to prettier standards
bun run format:check # Verify all files are properly formatted
To lint and check the code use the following commands:
bun run lint
The project uses:
Automatic Editor Configuration We provide automated editor configuration to ensure consistent development experience. The repository includes:
.vscode/settings.json - VS Code workspace settings .vscode/extensions.json - Recommended VS Code extensions .prettierrc - Prettier configuration .eslintrc - ESLint configuration
If you're using VS Code:
The editor will automatically prompt you to install recommended extensions Workspace settings will be automatically applied Format-on-save is enabled by default
- Prettier for maintaining consistent code formatting
- ESlint for linting purposes
- CI pipeline for automated testing and quality checks
- Create a new branch for your changes
- Make your changes following the project's code style
- Run the formatting scripts mentioned above
- Test your changes thoroughly
- Submit a Pull Request
- Ensure your code passes all tests and formatting checks
- Update the README.md if you've added any new features or changed existing functionality
- Your PR will be reviewed by maintainers
Feel free to open an issue if you have questions or need clarification about contributing to the project.