file_migration_tool 1.0.0 copy "file_migration_tool: ^1.0.0" to clipboard
file_migration_tool: ^1.0.0 copied to clipboard

A CLI tool to migrate Flutter projects (dependencies, lib, assets).

file_migration_tool #

A Dart CLI tool to help migrate Flutter projects easily by handling dependencies, copying lib/ and assets/ folders, and updating pubspec.yaml.

✨ Features #

  • πŸ“¦ Dependency Migration
    • Merge dependencies from an old Flutter project (--merge)
    • Rewrite dependencies with the old project’s ones (--rewrite)
  • πŸ“‚ Code Migration
    • Copy the entire lib/ folder (--copy-lib)
  • 🎨 Assets Migration
    • Copy the entire assets/ folder (--copy-assets)

πŸ“₯ Installation #

Activate globally from pub.dev:

dart pub global activate file_migration_tool

πŸš€ Usage #

Run the tool inside your new Flutter project directory.

file_migration_tool --path <OLD_PROJECT_PATH> [options]

Options #

flags functionality
--path, -p Path to the old Flutter project (required)
--merge Merge dependencies from the old project into the new one
- --rewrite Rewrite dependencies with the old project’s dependencies
--copy-lib Replace the lib/ folder with the one from the old project
--copy-assets Copy the assets/ folder from the old project
--help, -h Show usage information

Example Usage #

Merge dependencies and copy lib folder #

file_migration_tool --path ../old_project --merge --copy-lib

Rewrite dependencies and copy assets #

file_migration_tool --path ../old_project --rewrite --copy-assets

Full migration #

file_migration_tool --path ../old_project --merge --copy-lib --copy-assets

πŸ“ Changelog #

See CHANGELOG.md for details.

πŸ‘¨β€πŸ’» Credits

Developed by Santosh Varma Addala

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

1
likes
130
points
61
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool to migrate Flutter projects (dependencies, lib, assets).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, path, yaml, yaml_edit

More

Packages that depend on file_migration_tool