jugger_generator 1.0.0-alpha

  • Readme
  • Changelog
  • Installing
  • new46

jugger_generator #

Generates dependency injection code using the jugger package.

Run generation command:

flutter packages pub run build_runner build

1.0.0-alpha #

  • First release

Use this package as a library

1. Depend on it

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

  jugger_generator: ^1.0.0-alpha

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:jugger_generator/jugger_generator.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Nov 7, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21


Detected platforms: Flutter, other

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

Health issues and suggestions

Document public APIs. (-1 points)

2 out of 2 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/component_builder.dart. (-1.99 points)

Analysis of lib/src/component_builder.dart reported 4 hints:

line 15 col 10: The value of the field '_inputLibraryPath' isn't used.

line 26 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 98 col 54: 'type' is deprecated and shouldn't be used.

line 258 col 33: 'type' is deprecated and shouldn't be used.

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

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

line 156 col 20: 'type' is deprecated and shouldn't be used.

Format lib/jugger_generator.dart.

Run dartfmt to format lib/jugger_generator.dart.

Format lib/src/utils.dart.

Run dartfmt to format lib/src/utils.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and jugger_generator.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-release. (-5 points)

Pre-release versions should be used with caution; their API can change in breaking ways.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
analyzer ^0.39.1 0.39.1
build ^1.2.1 1.2.1
code_builder ^3.2.0 3.2.0
dart_style ^1.3.3 1.3.3
jugger ^1.0.0-alpha 1.0.0-alpha
meta ^1.1.7 1.1.8
quiver ^2.0.5 2.1.2+1
Transitive dependencies
_fe_analyzer_shared 1.0.0
args 1.5.2
async 2.4.0
built_collection 4.2.2
built_value 6.7.1 7.0.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
fixnum 0.10.11
front_end 0.1.29
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
kernel 0.3.29
logging 0.11.3+2
matcher 0.12.6
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pedantic 1.8.0+1
pub_semver 1.4.2
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
yaml 2.2.0