melos
8.10.1, released 14 days ago by invertase.io
A tool for managing Dart and Flutter monorepos with script execution, versioning, and publishing.
What it does
Melos optimizes workflows for managing multi-package repositories and single packages using git and Pub. It runs scripts, tests, and analysis across packages, and handles automated versioning and changelogs via Conventional Commits.
AI-written summary of version 8.10.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are managing a multi-package Dart or Flutter monorepo
- You need automated versioning and changelog generation using Conventional Commits
- You want to run custom scripts and commands across multiple packages concurrently
Skip it when
- You prefer manual versioning and publishing workflows
- You do not use Dart or Flutter projects
Strengths
- Integrates seamlessly with pub workspaces and Conventional Commits
- Provides advanced package filtering options for targeted command execution
- Supports both monorepos and single-package projects
Weaknesses
- Requires updating configuration and workspace structure when migrating between major versions
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 25
Add melos as a dev dependency in your root pubspec.yaml and configure the workspace and melos options.
name: my_workspace
publish_to: none
workspace:
- packages/helper
dev_dependencies:
melos: ^8.0.0
melos:
command:
version:
versionPrivatePackages: trueAlternatives
Packages that do the same job and could replace melos.
Works with
Packages commonly used together with melos: ones it builds on, ones built on it, and its own family.
- yamlmelos depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptomelos depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- pub_semvermelos depends on itVersions and version constraints implementing pub's versioning policy.
- xmlmelos depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- globmelos depends on itA file and directory globbing library that supports Bash-style path matching and listing.
- poolmelos depends on itManage a finite pool of resources to control concurrent operations.
- platformmelos depends on itCross‑platform abstraction for querying runtime platform info in Dart.
- pubspec_parsemelos depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.