mono_repo
6.9.0, released 5 weeks ago by google.dev
CLI tools to manage multiple Dart packages within a single source repository.
What it does
mono_repo helps you manage a multi-package repository by generating CI configuration files for child packages, running commands across all packages simultaneously, and checking repository state.
AI-written summary of version 6.9.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are maintaining a monorepo containing multiple Dart or Flutter packages
- You need to automatically generate and synchronize CI workflows (such as GitHub Actions) for all packages
Skip it when
- You are working with a single standalone Dart or Flutter package
- You do not use CI platforms supported by the tool
Strengths
- Automates CI configuration generation for multi-package repositories
- Allows running arbitrary pub and dart commands across all packages at once
- Supports integration with Dependabot for workflow files
Weaknesses
- Requires specific configuration files (mono_repo.yaml and mono_pkg.yaml) at the repository and package levels
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 12
Install globally via `dart pub global activate mono_repo`, then place a `mono_repo.yaml` file at the root of your repository.
dart pub global activate mono_repo
mono_repo generateAlternatives
Packages that do the same job and could replace mono_repo.
Works with
Packages commonly used together with mono_repo: ones it builds on, ones built on it, and its own family.
- yamlmono_repo depends on itA Dart library for parsing YAML documents into Dart data structures.
- pub_semvermono_repo depends on itVersions and version constraints implementing pub's versioning policy.
- iomono_repo depends on itUtilities for the Dart VM Runtime including ANSI colors, file copying, and exit code values.
- pubspec_parsemono_repo depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- json_annotationmono_repo depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- argsmono_repo depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- checked_yamlmono_repo depends on itProvides checkedYamlDecode to give detailed errors when decoding YAML with json_serializable.
- cli_utilmono_repo depends on itUtilities to help build Dart command-line apps, find the SDK, and display progress.