flutter_makefile 0.0.1 copy "flutter_makefile: ^0.0.1" to clipboard
flutter_makefile: ^0.0.1 copied to clipboard

A CLI tool for Flutter projects that provides Makefile-style commands for common development tasks like building, testing, and running Flutter applications.

flutter_makefile #

coverage style: very good analysis License: MIT

A CLI tool to generate Makefile and package.json for Flutter projects with support for builds, testing, asset generation, and automated releases.


Requirements #

  • Dart SDK
  • make (the CLI will check and provide installation instructions if not found)

Getting Started πŸš€ #

If the CLI application is available on pub, activate globally via:

dart pub global activate flutter_makefile

Or locally via:

dart pub global activate --source=path <path to this package>

Usage #

# Initialize a new Makefile and package.json in your Flutter project
$ flutter_makefile init

# Initialize with custom app name
$ flutter_makefile init --app-name my_awesome_app

# Initialize with custom output directory
$ flutter_makefile init --output /path/to/project

# Force overwrite existing files
$ flutter_makefile init --force

# Show CLI version
$ flutter_makefile --version

# Show usage help
$ flutter_makefile --help

Init Command #

The init command generates a comprehensive Makefile and package.json for your Flutter project. It also checks if make is installed on your system and provides installation instructions if needed.

Generated Makefile includes:

  • βœ… Configurable build flavors and targets
  • βœ… Support for Android (APK/AAB) and iOS (IPA) builds
  • βœ… Firebase App Distribution integration
  • βœ… TestFlight distribution support
  • βœ… Asset generation (icons, splash screens)
  • βœ… Testing and code generation utilities
  • βœ… Compatible with or without FVM

Generated package.json includes:

  • βœ… Semantic-release configuration
  • βœ… Conventional commit support
  • βœ… Automated version management
  • βœ… Changelog generation
  • βœ… GitHub release automation

Options:

  • --output, -o - Specify output directory (default: current directory)
  • --app-name, -n - App name for package.json (default: "app")
  • --force, -f - Overwrite existing files

Example:

cd my_flutter_project
flutter_makefile init --app-name my_awesome_app
make npm_install
make run

Running Tests with coverage πŸ§ͺ #

To run all unit tests use the following command:

$ dart pub global activate coverage 1.15.0
$ dart test --coverage=coverage
$ dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info

To view the generated coverage report you can use lcov .

# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
$ open coverage/index.html

0
likes
140
points
128
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool for Flutter projects that provides Makefile-style commands for common development tasks like building, testing, and running Flutter applications.

Repository (GitHub)
View/report issues

Topics

#cli #flutter #makefile #development-tools

Documentation

API reference

License

MIT (license)

Dependencies

args, cli_completion, mason_logger, path, pub_updater

More

Packages that depend on flutter_makefile