This is a simple migration script for migrating from nyxx 5.x.x to nyxx 6.0.0.
It automates many of the simple renamings and substitution changes as well as a few common complex changes.
- Download the
rewriter.dart
andpubspec.yaml
files into an empty directory. - Run
dart pub get
in the directory. - Run
dart run path/to/rewriter.dart path/to/project/
wherepath/to/project/
is the path of the project you want to migrate.
The script will output into a directory called migrated
in the same directory as the directory containing your project. We recommend using git and having a clean working tree (all changes committed) when you run the migration script so you can review the changes made by the script.