flutter_scripts

Run dart/flutter scripts defined in a pubspec.yaml

MIT License

Stars
20
Committers
2

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 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

Package Rankings
Top 21.9% on Pub.dev
Badges
Extracted from project README
style: very good analysis License: MIT
Related Projects