Reputation: 3064
I can't figure out how to run the build.dart (or any other dart) file in WebStorm.
The only option to run dart files seems to be DartUnit, but I think that is only for running tests.
I need to run the build.dart to create the WebUI Template output files.
It would also be great to be able to automatically run build.dart whenever a file changes (like the Dart Editor does).
Thank you
Upvotes: 3
Views: 770
Reputation: 3064
OK, thanks to LazyOne's hint I was able to dig a bit deeper.
The solution to this is to create a File Watcher in WebStorm with the following options:
Scope: Project Files
Program: [your path to]\dart-sdk\bin\dart.exe
Arguments: build.dart
Working Directory: $ProjectFileDir$
This will run the build.dart
every time a file in your project changes, pretty much exactly like the Dart Editor.
Upvotes: 2