Contributing
Contributing to Strata
Section titled “Contributing to Strata”Thank you for your interest in contributing to Strata!
Getting Started
Section titled “Getting Started”1. Fork and Clone
Section titled “1. Fork and Clone”# Fork via GitHub UI, then:git clone https://github.com/YOUR_USERNAME/core.gitcd corepnpm install2. Create a Branch
Section titled “2. Create a Branch”git checkout -b feature/my-feature# orgit checkout -b fix/my-fix3. Make Changes
Section titled “3. Make Changes”Follow the coding standards in STANDARDS.md.
4. Test
Section titled “4. Test”pnpm testpnpm lint5. Submit PR
Section titled “5. Submit PR”Push your branch and create a pull request.
Repository Structure
Section titled “Repository Structure”| Repository | Purpose |
|---|---|
core | Main library |
shaders | GLSL shaders |
presets | Preset configurations |
examples | Example applications |
react-native-plugin | React Native plugin |
capacitor-plugin | Capacitor plugin |
strata-game-library.github.io | Documentation (this site) |
Development Setup
Section titled “Development Setup”Core Library
Section titled “Core Library”cd corepnpm installpnpm dev # Watch modepnpm test # Run testsDocumentation
Section titled “Documentation”cd strata-game-library.github.iopnpm installpnpm dev # Dev server at localhost:4321Code Style
Section titled “Code Style”- Use TypeScript strict mode
- Follow existing patterns
- Add JSDoc comments for public APIs
- Write tests for new features
Commit Messages
Section titled “Commit Messages”Use conventional commits:
feat: add new water caustics effectfix: correct terrain LOD calculationdocs: update water API documentationtest: add vegetation wind testsQuestions?
Section titled “Questions?”- Open an issue on GitHub
- Check existing issues and discussions