@@ -4,3 +4,108 @@ index: 2
44---
55
66# Contributing
7+
8+ Thank you for your interest in contributing to Learningmap! This guide will help you get started.
9+
10+ ## Code of Conduct
11+
12+ By participating in this project, you agree to abide by our [ Code of Conduct] ( https://github.com/openpatch/learningmap/blob/main/CODE_OF_CONDUCT.md ) .
13+
14+ ## How Can I Contribute?
15+
16+ ### Reporting Bugs
17+
18+ Before creating bug reports, please check the [ existing issues] ( https://github.com/openpatch/learningmap/issues ) to avoid duplicates.
19+
20+ When creating a bug report, include:
21+ - A clear and descriptive title
22+ - Steps to reproduce the behavior
23+ - Expected behavior
24+ - Actual behavior
25+ - Screenshots (if applicable)
26+ - Your environment (browser, OS, Node.js version)
27+
28+ ### Suggesting Enhancements
29+
30+ Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, include:
31+ - A clear and descriptive title
32+ - A detailed description of the proposed feature
33+ - Explain why this enhancement would be useful
34+ - If possible, provide examples of how it would work
35+
36+ ### Pull Requests
37+
38+ 1 . ** Fork the repository** and create your branch from ` main `
39+ 2 . ** Set up your development environment** (see [ Development] ( /development ) )
40+ 3 . ** Make your changes** following our coding standards
41+ 4 . ** Add tests** if you're adding functionality
42+ 5 . ** Run linting and tests** :
43+ ``` bash
44+ pnpm lint
45+ pnpm test
46+ pnpm build
47+ ```
48+ 6 . ** Create a changeset** :
49+ ``` bash
50+ pnpm exec changeset
51+ ```
52+ Follow the prompts to describe your changes
53+ 7 . ** Commit your changes** with a clear commit message
54+ 8 . ** Push to your fork** and submit a pull request
55+
56+ ## Development Guidelines
57+
58+ ### Code Style
59+
60+ - Follow the existing code style in the repository
61+ - Use TypeScript with proper type definitions
62+ - Run Prettier before committing (automatic with Husky)
63+ - Keep components focused and modular
64+
65+ ### Commit Messages
66+
67+ - Use clear and descriptive commit messages
68+ - Start with a verb in present tense (e.g., "Add", "Fix", "Update")
69+ - Reference issues and PRs when relevant
70+
71+ ### Testing
72+
73+ - Write tests for new features
74+ - Ensure existing tests pass
75+ - Follow existing test patterns
76+ - Run ` pnpm test ` before submitting
77+
78+ ### Documentation
79+
80+ - Update documentation when adding features
81+ - Add JSDoc comments for public APIs
82+ - Update the changelog via changesets
83+
84+ ## Project Structure
85+
86+ ```
87+ learningmap/
88+ ├── packages/
89+ │ ├── learningmap/ # Core React component library
90+ │ └── web-component/ # Web component wrapper
91+ ├── platforms/
92+ │ └── web/ # Web application
93+ ├── docs/ # Documentation
94+ └── scripts/ # Build scripts
95+ ```
96+
97+ ## Making Your First Contribution
98+
99+ Not sure where to start? Look for issues labeled:
100+ - ` good first issue ` - Good for newcomers
101+ - ` help wanted ` - Extra attention is needed
102+
103+ ## Getting Help
104+
105+ - ** GitHub Issues** : For bugs and feature requests
106+ - ** Matrix Community** : Join us at https://matrix.to/#/#openpatch:matrix.org
107+ - ** Email** : contact@openpatch.org
108+
109+ ## License
110+
111+ By contributing, you agree that your contributions will be licensed under the MIT License.
0 commit comments