derry
1.5.0, released 4 years ago by frenco.dev
A script manager to define and run shortcut scripts inside your pubspec.yaml file.
What it does
Derry allows Dart and Flutter developers to define shortcut scripts inside pubspec.yaml or a separate yaml file. It saves developers from typing long commands by offering clean shorthand execution, pre and post scripts, and nested script references.
AI-written summary of version 1.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to manage and shorten long build or test command lines in your Dart/Flutter projects
- You need pre and post hook executions around your build or publish steps
Skip it when
- You are looking for a state management or UI widget library
Strengths
- Reduces repetitive typing of long command lines
- Supports nested scripts, pre/post scripts, and script references
Weaknesses
- Relies on FFI and platform-specific shells (cmd on Windows, bash on Linux/Mac)
Setup
- Kind
- FFI (native library)
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 10
Install derry as a global dependency via dart pub global activate derry, and define scripts in your pubspec.yaml.
scripts:
build: dart run build_runner build --delete-conflicting-outputsAlternatives
Packages that do the same job and could replace derry.
- rps
Run and manage scripts defined in pubspec.yaml or rps.yaml from the command line
64Compare - flutter_automation
Provides command line automation scripts to help setup aspects of a Flutter project.
46Compare
Works with
Packages commonly used together with derry: ones it builds on, ones built on it, and its own family.
- yamlderry depends on itA Dart library for parsing YAML documents into Dart data structures.
- ffiderry depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- argsderry depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- equatablederry depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- mockitoderry depends on itA mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.
- tintderry depends on itTerminal string styling as an extension on String.
- consolederry depends on itConsole library for ANSI colors, keyboard input, progress bars, and more
- string_similarityderry depends on itFinds the degree of similarity between strings using Dice's Coefficient.