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