dart_husky 1.0.1
dart_husky: ^1.0.1 copied to clipboard
A pure-Dart CLI tool to manage Git hooks (pre-commit, commit-msg, pre-push) in any Dart or Flutter project. Similar to husky and lefthook.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 - 2026-05-30 #
Added #
- Example Usage: Introduced a package usage example (example/example.dart) illustrating the declarative
dart_husky.yamlsetup. - New lint prefix support:
bumpprefix is added to commit message validator.
Documented #
- API Documentation: Added comprehensive, high-quality Dartdoc comments to all public models, config configurations, validators, and classes to elevate package API clarity and maximize the pub.dev score.
1.0.0 - 2026-05-30 #
Added #
- Pure-Dart CLI Tooling: Lightweight, zero-dependency Git hooks manager designed specifically for Dart and Flutter projects.
- Robust Hook Installer: Installs custom lightweight shell scripts into
.git/hooks/that automatically detect and support both globaldartandfvm dartenvironments. - Declarative YAML Configuration: Set up all your project's hook commands inside a single
dart_husky.yamlfile. - Sequential & Parallel Command Execution: Speed up your development workflow by executing hook commands in parallel (
parallel: true) or sequentially (default). - Built-in Conventional Commits Preset: Out-of-the-box support for validating commit messages against the Conventional Commits specification (supports types:
feat,fix,chore,docs,style,refactor,test,build,ci,perf,revert). - Comprehensive CLI Interface:
dart run dart_husky install— Installs or syncs all hooks configured indart_husky.yaml.dart run dart_husky uninstall— Safely removes alldart_huskymanaged Git hooks.dart run dart_husky run <hook-name>— Manually run/test hook commands.dart run dart_husky list— Display all configured hooks and their installation status.
- Supported Hooks: Native support for
pre-commit,commit-msg,pre-push,post-checkout, andpre-merge-commit. - Platform Support: Verified compatibility with macOS environments.