Last updated:
0 purchases
flutter scripts
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
copied to clipboard
Or locally via:
dart pub global activate --source=path <path to this package>
copied to clipboard
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
copied to clipboard
Add scripts to any Flutter/Dart project in the pubspec.yaml like the following:
scripts:
generate_icons: flutter pub run flutter_launcher_icons:main
generate_files: flutter pub run build_runner build --delete-conflicting-outputs
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.