husky 0.1.4 husky: ^0.1.4 copied to clipboard
Husky make it easy to manage your Dart and Flutter project's git hooks.
husky #
Dart version husky (known in JavaScript comunity)
Husky make it easy to manage your Dart and Flutter project's git hooks.
Usage #
Add husky to your dev_dependencies
in pubspec.yaml
dev_dependencies:
husky: latest
Get dependencies and run husky insall.
dart pub get
dart run husky install
This will generate .husky
directory under your project's root path, make sure to commit .husky
to git.
Add a hook:
dart run husky add .husky/pre-commit "dart test"
git add .husky/pre-commit
Make a commit:
git commit -m "Keep calm and commit"
# `dart test` will run
Documentation #
See documentation