Pubspec Extract
Extracts Dart pubspec.yaml file and generate pubspec.dart at build time.
Usage as a command line tool
In your pubspec.yaml, add the following:
dev_dependencies:
pubspec_extract:
then if you are using Flutter, run:
flutter pub run pubspec_extract
or
pub run pubspec_extract
Install the command-line tool globally
run:
pub global activate pubspec_extract
the executable will be compiled and available at $HOME/.pub-cache/bin
or %APPDATA%\Pub\Cache\bin
. You can run it using:
pub global run pubspec_extract