flutterw 0.5.0 flutterw: ^0.5.0 copied to clipboard
Flutterw wraps flutter tool to support hooks system. Hooks can be both scripts and dart package. Adding global or project hook by using flutterw hook command.
Intruction #
flutterw
wraps flutter tool with more advanced usage.
Features #
- Basiclly supports all flutter commands.
- Command hooks
Getting Started #
Install the latest flutterw
version as a global package via Pub.
dart pub global activate flutterw
# Or
# flutter pub global activate flutterw
Usage #
Just use flutterw
as flutter
tool.
i.e:
flutterw clean
flutterw pub get
...
Hooks #
Adding command hooks in flutterw.yaml
can automatically do extra works.
hooks:
pre_clean:
- echo 'task 1'
- echo 'task 2'
post_clean:
- echo 'task 3'
- echo 'task 4'
Add Package Hook
You can add a package hook to global or project.
First, activate a package globally
dart pub global activate flutterw_clean
Then, add it to flutterw global hook.
flutterw hook add clean flutterw_clean -g
Finallym, run flutterw clean
to see output message.