dart_hooks 1.0.2 copy "dart_hooks: ^1.0.2" to clipboard
dart_hooks: ^1.0.2 copied to clipboard

Automating the integration and management of Git Hooks in Dart projects

Dart Hooks #

Supported SDK: Dart only

Supported hooks:

  • pre-commit
  • pre-push

Installation #

dart pub add dart_hooks --dev --git-url="https://github.com/errorempire/DartHooks.git"
dart pub get

Usage #

Initialize the hook config file

dart run dart_hooks:init

Modify the dart_hooks.yaml file then run the following command to apply the hook(s)

dart run dart_hooks:apply

Destroy #

The following command will delete the hook(s) and the config file

dart run dart_hooks:destroy

Uninstall the package

dart pub remove dart_hooks

Example Config File #

pre-commit:
  commands:
    - dart analyze
pre-push:
  commands:
    - dart analyze
1
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Automating the integration and management of Git Hooks in Dart projects

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

json2yaml, yaml

More

Packages that depend on dart_hooks