Contributing
February 21, 2025 ยท View on GitHub
First off, thank you for considering contributing to Codegasm! It's people like you that make this project such a great theme.
Table of Contents
Code of Conduct
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to support@infernodesign.com.
Getting Started
- Make sure you have a GitHub account
- Fork the repository on GitHub
- Clone your fork locally
- Set up the development environment as described in the Development Setup section
How Can I Contribute?
Reporting Bugs
- Ensure the bug was not already reported by searching on GitHub under Issues
- If you're unable to find an open issue addressing the problem, open a new one
Suggesting Enhancements
- Open a new issue with a clear title and detailed description
- Provide any relevant examples or screenshots
Pull Requests
- Fork the repo and create your branch from
main - Make sure your code lints
- Create a pull request
Style Guidelines
TypeScript Style Guide
We use ESLint to enforce a consistent coding style. Please make sure your code adheres to these guidelines:
- Use 2 spaces for indentation
- Use single quotes for strings
- No unused variables
- No semicolons
- Use commas for multiline arrays and objects
- Use arrow functions instead of function declarations
- Use template literals instead of string concatenation
- Use
nullinstead ofundefinedfor empty values - Use
constinstead ofletfor variables that are not reassigned
Commit Messages
- Use the Conventional Commits v1.0.0 specification
- Limit the first line to 100 characters or less
- Reference issues and pull requests in the footer of the commit message
Pull Requests
- Pull requests are automatically linted and tested.
- Pull requests must be reviewed by one code owner.
- You may merge the Pull Request in once you have the sign-off of one code owner, or if you do not have permission to do that, you may request the code owner to merge it for you.
Development Setup
- Install Node.js (version 20 or later)
- Install PNPM for faster package management and builds
- Clone your fork of the repository
- Navigate to the project directory
- Run
pnpm installto install dependencies - Run
pnpm run devto start the development server
Useful Commands
pnpm run dev: Start the development serverpnpm run build: Build the project for productionpnpm run lint: Run ESLint to check for code style issues
Thank you for your contributions!