husky 0.1.4 copy "husky: ^0.1.4" to clipboard
husky: ^0.1.4 copied to clipboard

Husky make it easy to manage your Dart and Flutter project's git hooks.

husky #

Pub Version popularity likes building style: lints

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

21
likes
0
pub points
86%
popularity

Publisher

unverified uploader

Husky make it easy to manage your Dart and Flutter project's git hooks.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

args, cli_util, path

More

Packages that depend on husky