build_shell 1.0.0 copy "build_shell: ^1.0.0" to clipboard
build_shell: ^1.0.0 copied to clipboard

Builds shell scripts that execute Dart snapshots (from build_vm_compilers).

build_shell #

Pub

Builds shell scripts that execute Dart snapshots (from build_vm_compilers).

Rationale #

This package alleviates an inconvenience - at this point in time, even though you can build .dill files via package:build_vm_compilers, those files are placed in the cache, rather than in your actual project. So, actually running them becomes a little more complex.

This tool just creates shell scripts to let you run them. This way, your script only has to be compiled once, leading to faster startup times.

Installation #

In your pubspec.yaml:

dependencies:
  build_shell: ^1.0.0
dev_dependencies:
  build_runner: ^1.0.0

Usage #

Simply run:

pub run build_runner build.

You'll then see a .sh and .bat file generated for every Dart script with a main method.

0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Builds shell scripts that execute Dart snapshots (from build_vm_compilers).

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

build, build_config, build_vm_compilers, path, scratch_space

More

Packages that depend on build_shell