fire 1.2.1 copy "fire: ^1.2.1" to clipboard
fire: ^1.2.1 copied to clipboard

Hot restart for Dart console application with fast incremental compilation.

Pub Package License

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.

Install #

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

$ dart pub global activate fire

Use #

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.
> compiling 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.

ToDo #

  • Add args package and more options
  • Hot reload with Flutter like reassemble
  • build_runner integration (if possible)
  • AOT compilation, it's impossible for now

Alternatives #

5
likes
0
pub points
41%
popularity

Publisher

unverified uploader

Hot restart for Dart console application with fast incremental compilation.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

frontend_server_client, path, stack_trace, watcher

More

Packages that depend on fire