_bazel_codegen 0.3.1+2

  • CHANGELOG.md
  • Installing
  • Versions
  • 65

0.3.1+2

  • Fixed runtime errors when running in Dart 2 mode via --preview-dart-2.

0.3.1+1

  • Expand constraint on package:build to allow version 0.12.x

0.3.1

  • Correct expected outputs when running builders taking disjoint input extensions.

0.3.0

Breaking Changes

  • Drop BuilderFactory in favor of the typedef from package:build. The factories now take a BuilderOptions argument rather than List<String>.

0.2.1

  • Update to build 0.11.0, update interface for findAssets.

0.2.0

  • Breaking: CLI argument change: Replace in-extension and out-extensions with build-extensions.

0.1.7

  • Upgrade to package:build v0.10

0.1.6

  • Allow 'side' outputs from a builder. When multiple builders are chained the inputs to builders are no longer limited to only the outputs from the previous builder.

0.1.5

  • Support for build 0.9.0

0.1.4

  • Add a toString() on AssetSource.
  • Run analysis in Strong mode when using summaries

0.1.3

  • Upgrade to build 0.8.0, implement findAssets api

0.1.2

  • Give priority to reading inputs directly rather than resolving through a summary if they are duplicated.

0.1.1

  • Throw an exception when attempting to do resolution on an input file that is also included in a dependency when using summaries.

0.1.0

  • Wrap generation in Chain.capture and print full asynchronous stack traces
  • BREAKING bazelGenerate and noArgs have been dropped. These are unused from the template file in rules_dart which is the supported approach.

0.0.3

  • Only read '.dart' files as sources for the Resolver. This avoids a problem trying to read binary assets as if they were strings. Poorly encoded .dart files can still cause an error - but this case we'd expect to fail.
  • Fix a bug where failure to read an asset during the Resolvers.get call would cause the entire process to hang.
  • Rely on the print capturing from package:build

0.0.2

  • Bug fix: Correct the import after library was renamed with a leading underscore.

1. Depend on it

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


dependencies:
  _bazel_codegen: "^0.3.1+2"

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 packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:_bazel_codegen/_bazel_codegen.dart';
        
Version Uploaded Documentation Archive
0.3.1+2 Apr 17, 2018 Go to the documentation of _bazel_codegen 0.3.1+2 Download _bazel_codegen 0.3.1+2 archive
0.3.1+1 Jan 31, 2018 Go to the documentation of _bazel_codegen 0.3.1+1 Download _bazel_codegen 0.3.1+1 archive
0.3.1 Dec 11, 2017 Go to the documentation of _bazel_codegen 0.3.1 Download _bazel_codegen 0.3.1 archive
0.3.0 Nov 29, 2017 Go to the documentation of _bazel_codegen 0.3.0 Download _bazel_codegen 0.3.0 archive
0.2.1 Nov 3, 2017 Go to the documentation of _bazel_codegen 0.2.1 Download _bazel_codegen 0.2.1 archive
0.1.7 Aug 14, 2017 Go to the documentation of _bazel_codegen 0.1.7 Download _bazel_codegen 0.1.7 archive
0.1.6 Apr 26, 2017 Go to the documentation of _bazel_codegen 0.1.6 Download _bazel_codegen 0.1.6 archive
0.1.5 Apr 25, 2017 Go to the documentation of _bazel_codegen 0.1.5 Download _bazel_codegen 0.1.5 archive
0.1.4 Apr 17, 2017 Go to the documentation of _bazel_codegen 0.1.4 Download _bazel_codegen 0.1.4 archive
0.1.3 Apr 13, 2017 Go to the documentation of _bazel_codegen 0.1.3 Download _bazel_codegen 0.1.3 archive

All 16 versions...

Analysis

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

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
32 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
95 / 100
Overall score:
Weighted score of the above. [more]
65
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

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

Suggestions

  • Maintain README.md.

    Readme should inform others about your project, what it does, and how they can use it.

  • The description is too short.

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

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    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 _bazel_codegen.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.32 <2.0.0
analyzer >=0.31.2-alpha.1 <0.32.0 0.31.2-alpha.1
args ^1.4.1 1.4.2
bazel_worker ^0.1.2 0.1.9
build >=0.11.1 <0.13.0 0.12.2
build_barback >=0.4.0 <0.6.0 0.5.0+3
glob ^1.1.0 1.1.5
logging ^0.11.3 0.11.3+1
path ^1.4.1 1.5.1
stack_trace ^1.7.0 1.9.2
Transitive dependencies
async 2.0.6
barback 0.15.2+15
charcode 1.1.1
cli_util 0.1.2+1
code_transformers 0.5.1+4
collection 1.14.9
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
fixnum 0.10.7
front_end 0.1.0-alpha.11
graphs 0.1.1
html 0.13.3
isolate 1.1.0 2.0.0
kernel 0.3.0-alpha.11
meta 1.1.2
package_config 1.0.3
plugin 0.2.0+2
pool 1.3.4
protobuf 0.7.2
source_maps 0.10.4
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+7
yaml 2.1.13
Dev dependencies
build_test ^0.10.0
test ^0.12.15
test_descriptor ^1.0.0