Widgetbook Quick Contribution Guide
Ways to Contribute
- Develop new features.
- Fix bugs.
- Improve test coverage.
- Enhance documentation.
- Provide examples.
Getting Started
-
Fork the Widgetbook repository.
-
Clone your fork:
git clone https://github.com/<YOUR_USERNAME>/widgetbook.git
-
Install Melos:
dart pub global activate melos
-
Bootstrap the repository:
cd widgetbook flutter pub get melos bootstrap melos generate
Contribution Workflow
- Synchronize your fork with the main repo.
- Create a new branch:
git checkout -b your-branch-name
- Implement and test your changes.
- Format code:
dart fmt -w .
- Analyze code:
dart analyzer --fatal-infos --fatal-warnings .
- Commit your changes with a meaningful message.
- Update or add documentation as needed.
- Ensure all tests pass:
flutter test
- Sign the CLA.
- Submit a PR to the main repository.
PR Title Conventions
-
Follow conventional commits.
-
Use types like
feat
,fix
, anddocs
. -
Include scopes such as
cli
orannotation
.Example:
feat(cli): add new CLI command
Code Reviews & Community
- Be patient during the PR review phase.
- For examples, place in the
examples
directory and add necessary CI checks. - Join the Widgetbook community on Discord.
Licensing
- All contributions will be under Widgetbook's MIT license.
Remember, while this guide provides a quick overview, always refer to the detailed contribution guidelines when in doubt. Happy coding! 🌟