IntelliJ plugin to run scripts on pubspec.yaml for Dart projects
Press Ctrl+Alt+S to open the IDE settings and select Plugins.
Search Dart Scripts Runner in the Marketplace and click Install.
Write your custom script in the scripts property of the pubspec.yaml file.
Dart Scripts Runner will add a run button on each script line. Click that button to run the script.
scripts:
# Without options:
# directory: <project directory>
# terminal: false
pub_get: flutter pub get
# With options
pod_install:
script: pod install # Script text (required)
directory: ./ios # Working directory (default: <project directory>)
terminal: true # Should execute script in terminal? (default: false)

