Contributing
Contributing to my-opencode-config
Section titled “Contributing to my-opencode-config”Thank you for your interest in contributing to my-opencode-config! We welcome all developers to help make this project even better.
Development Setup
Section titled “Development Setup”To get started, follow these steps:
-
Clone the repository:
Terminal window git clone https://github.com/your-repo/my-opencode-config.gitcd my-opencode-config -
Install dependencies:
Terminal window npm install -
Build the project:
Terminal window npm run build -
Run the project (using
npxor by linking it):Terminal window node dist/index.js
Submitting Pull Requests
Section titled “Submitting Pull Requests”We follow a standard PR process:
- Create a branch:
git checkout -b feature/your-feature-name - Make your changes: Write clean, TypeScript-based code.
- Run tests: Ensure your changes pass existing tests (see below).
- Commit and push:
git commit -m "Your commit message"andgit push origin feature/your-feature-name - Open a Pull Request: Describe your changes in detail.
Testing Your Changes
Section titled “Testing Your Changes”We use Docker-based E2E tests for my-opencode-config to ensure isolation and consistency.
To run the E2E tests locally:
npm run test:e2eThe tests will:
- Build your project with
npm run build. - Create a Docker image using an Alpine-based Node.js environment.
- Execute a series of tests to verify configuration merging, model fetching, and plugin configuration.
Code Style
Section titled “Code Style”- Use TypeScript with strict mode enabled.
- Follow existing patterns in the
src/directory. - Use CommonJS modules.
- Maintain clean, descriptive comments when necessary.
Getting Help
Section titled “Getting Help”If you have questions or need assistance, feel free to open an issue or reach out to the project maintainers.