Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodydavis/flutter_scripts
https://github.com/rodydavis/flutter_scripts
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rodydavis/flutter_scripts
- Owner: rodydavis
- License: mit
- Created: 2022-07-02T07:59:37.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T07:04:52.000Z (11 months ago)
- Last Synced: 2024-07-09T00:04:37.289Z (2 months ago)
- Language: Dart
- Size: 11.7 KB
- Stars: 19
- Watchers: 3
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## flutter_scripts
![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]Generated by the [Very Good CLI][very_good_cli_link] 🤖
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](https://pub.dev), activate globally via:
```sh
dart pub global activate flutter_scripts
```Or locally via:
```sh
dart pub global activate --source=path
```## Usage
```sh
$ 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:
```yaml
scripts:
generate_icons: flutter pub run flutter_launcher_icons:main
generate_files: flutter pub run build_runner build --delete-conflicting-outputs
```---
[coverage_badge]: coverage_badge.svg
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg
[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis
[very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli