flutter_scripts 0.0.1 flutter_scripts: ^0.0.1 copied to clipboard
Run dart/flutter scripts defined in a pubspec.yaml
flutter_scripts #
Generated by the Very Good CLI 🤖
Run scripts defined in a pubspec.yaml just like in node.js with the run
command.
Getting Started 🚀 #
If the CLI application is available on pub, activate globally via:
dart pub global activate flutter_scripts
Or locally via:
dart pub global activate --source=path <path to this package>
Usage #
$ flutter_scripts run
# Set command to run
$ flutter_scripts run --c update_db
# Show CLI version
$ flutter_scripts --version
# Show usage help
$ flutter_scripts --help
Add scripts to any Flutter/Dart project like the following:
scripts:
generate_icons: flutter pub run flutter_launcher_icons:main
generate_files: flutter pub run build_runner build --delete-conflicting-outputs