build_vm_compilers 0.1.1+4

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 59

build_vm_compilers

Vm compilers for users of package:build.
Build Status Issues related to build_vm_compilers Pub Package Version Latest Dartdocs Join the chat on Gitter

Installation

This package is intended to be used as a development dependency for users of package:build who want to run code in the Dart vm with precompiled kernel files. This allows you to share compilation of dependencies between multiple entrypoints, instead of doing a monolithic compile of each entrypoint like the Dart VM would normally do on each run.

Note: If you want to use this package for running tests with pub run build_runner test you will also need a build_test dev dependency.

Usage

This package creates a .vm.app.dill file corresponding to each .dart file that contains a main function.

These files can be passed directly to the vm, instead of the dart script, and the vm will skip its initial parse and compile step.

You can find the output either by using the -o <dir> option for build_runner, or by finding it in the generated cache directory, which is located at .dart_tool/build/generated/<your-package>.

Configuration

There are no configuration options available at this time.

Custom Build Script Integration

If you are using a custom build script, you will need to add the following builder applications to what you already have, sometime after the build_modules builder applications:

    apply('build_vm_compilers|entrypoint',
        [vmKernelEntrypointBuilder], toRoot(),
        hideOutput: true,
        // These globs should match your entrypoints only.
        defaultGenerateFor: const InputSet(
            include: const ['bin/**', 'tool/**', 'test/**.vm_test.dart'])),
]

0.1.1+4

  • Increased the upper bound for package:analyzer to <0.35.0.

0.1.1+3

  • Increased the upper bound for package:analyzer to '<0.34.0'.

0.1.1+2

Support package:build_modules version 1.x.x.

0.1.1+1

Support package:build version 1.x.x.

0.1.1

Support the latest build_modules.

0.1.0

Initial release, adds the modular kernel compiler for the vm platform, and the entrypoint builder which concatenates all the modules into a single kernel file.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  build_vm_compilers: ^0.1.1+4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:build_vm_compilers/build_vm_compilers.dart';
  
Version Uploaded Documentation Archive
0.1.1+4 Dec 5, 2018 Go to the documentation of build_vm_compilers 0.1.1+4 Download build_vm_compilers 0.1.1+4 archive
0.1.1+3 Oct 8, 2018 Go to the documentation of build_vm_compilers 0.1.1+3 Download build_vm_compilers 0.1.1+3 archive
0.1.1+2 Sep 26, 2018 Go to the documentation of build_vm_compilers 0.1.1+2 Download build_vm_compilers 0.1.1+2 archive
0.1.1+1 Sep 26, 2018 Go to the documentation of build_vm_compilers 0.1.1+1 Download build_vm_compilers 0.1.1+1 archive
0.1.1 Aug 30, 2018 Go to the documentation of build_vm_compilers 0.1.1 Download build_vm_compilers 0.1.1 archive
0.1.0 Jul 19, 2018 Go to the documentation of build_vm_compilers 0.1.0 Download build_vm_compilers 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
31
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
59
Learn more about scoring.

We analyzed this package on Dec 6, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: Flutter, other

Primary library: package:build_vm_compilers/build_vm_compilers.dart with components: io, isolate, build.

Health suggestions

Fix lib/src/vm_entrypoint_builder.dart. (-0.50 points)

Analysis of lib/src/vm_entrypoint_builder.dart reported 1 hint:

line 8 col 1: 'analyzer' is deprecated and shouldn't be used.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use build_vm_compilers.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
analyzer >=0.30.0 <0.35.0 0.34.0
build >=0.12.0 <2.0.0 1.0.2
build_modules >=0.4.0 <2.0.0 1.0.3
path ^1.6.0 1.6.2
pool ^1.3.0 1.3.6
Transitive dependencies
args 1.5.1
async 2.0.8
bazel_worker 0.1.15
build_config 0.3.1+4
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.6
fixnum 0.10.9
front_end 0.1.7
glob 1.1.7
graphs 0.1.3+1
html 0.13.3+3
json_annotation 2.0.0
kernel 0.3.7
logging 0.11.3+2
meta 1.1.6
package_config 1.0.5
pedantic 1.3.0
plugin 0.2.0+3
protobuf 0.10.5
pub_semver 1.4.2
pubspec_parse 0.1.2+3
scratch_space 0.0.3+2
source_span 1.4.1
stack_trace 1.9.3
string_scanner 1.0.4
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
_test_common
build_runner ^1.0.0
test ^1.0.0
test_descriptor ^1.1.0