Skip to content

joutvhu/dart-scripts

Repository files navigation

Dart Scripts Runner

Downloads Version License

IntelliJ plugin to run scripts on pubspec.yaml for Dart projects

Installation

Press Ctrl+Alt+S to open the IDE settings and select Plugins.

Search Dart Scripts Runner in the Marketplace and click Install.

Install plugin

Using

Write your custom script in the scripts property of the pubspec.yaml file.

Run script on pubspec.yaml

Dart Scripts Runner will add a run button on each script line. Click that button to run the script.

Edit run configuration

Example

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)