Hot restart for Dart console application with fast incremental compilation.

Why do I need this?

If your console application compiles too long before running, and dart run, which is now supports incremental compilation, seems too slow.


Use the dart pub global command to install this into your system.

$ dart pub global activate fire


If you have modified your PATH, you can run this from any local directory.

$ fire

Otherwise you can use the dart pub global command.

$ dart pub global run fire

Here’s an example of running a console application:

$ fire bin/cat.dart example/example.dart
> watching 'lib' folder.
> building done, took 0:00:00.000054
void main() {
  print('hello cat!');

> press r to restart and q to exit.

While running creates bin/cat.dill incremental kernel snapshot.





View Github