dart_package_template
GitHub template repository for Dart packages, ready for pub.dev publication.
✨ Features
- Ready for immediate package publication to pub.dev.
- Pre-configured
pubspec.yamlwith recommended fields. - Multiple example projects in the
example/directory. - Linting setup with
lintspackage for code quality, following the Effective Dart style guide. - (Recommended) MPL-2.0 License for open source projects.
- Unit tests setup with
testpackage. - GitHub Actions workflows for automated testing/QA jobs on push events and PRs.
This repository is also published as a package on pub.dev to make sure it's always kept up to date on the most recent best practices 🫶
🔮 Getting Started
- Create a new repository
- Click the "Use this template" button on the GitHub page for this repository.
- Fill in the details for your new repository and create it.
- 🛑✋ IMPORTANT! Make sure to name your new repository and package with underscore separators,
just_like_thisas required by Dart.
- 🛑✋ IMPORTANT! Make sure to name your new repository and package with underscore separators,
- Clone your new repository
git clone <your-repo-url> cd <your-repo-name> - Update
pubspec.yaml- Change the
name,description,homepage,repository, andissue_trackerfields to match your package. - Update the
environmentSDK constraints if necessary. - Update the same fields in
example/pubspec.yaml.
- Change the