husky 0.1.0 husky: ^0.1.0 copied to clipboard
Husky make it easy to manage you Dart and Flutter project's git hooks.
husky #
Dart version husky (known in JavaScript comunity)
Husky make it easy to manage you Dart and Flutter project's git hooks.
Install #
Add husky to your dev_dependencies
in pubspec.yaml
dev_dependencies:
husky: latest
Usage #
dart pub get
dart pub run husky install
Add a hook:
dart pub 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