jaguar_reflect_bootstrap 0.4.0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 43

jaguar_reflect_bootstrap

Bootstrapper for jaguar_reflect to automatically add Api from imported libraries

Usage

A simple usage example:

  Jaguar server = new Jaguar();
  bootstrap(server);

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.0.1

  • Initial version, created by Stagehand

example/jaguar_reflect_bootstrap_example.dart

// Copyright (c) 2017, teja. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:jaguar_reflect_bootstrap/jaguar_reflect_bootstrap.dart';
import 'package:jaguar/jaguar.dart';

@Api()
class ExampleApi {}

@Api()
class ExampleApi1 {}

main() {
  Jaguar server = new Jaguar();
  bootstrap(server);
}

Use this package as a library

1. Depend on it

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


dependencies:
  jaguar_reflect_bootstrap: "^0.4.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


      import 'package:jaguar_reflect_bootstrap/jaguar_reflect_bootstrap.dart';
  
Version Uploaded Documentation Archive
0.4.0 Feb 19, 2017 Go to the documentation of jaguar_reflect_bootstrap 0.4.0 Download jaguar_reflect_bootstrap 0.4.0 archive

Analysis

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

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: web, other

Primary library: package:jaguar_reflect_bootstrap/jaguar_reflect_bootstrap.dart with components: mirrors.

Suggestions

  • Package is getting outdated.

    The package was released 68 weeks ago.

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

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 hints.

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

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
jaguar >=0.4.0 <0.5.0 0.4.3 2.1.7
jaguar_reflect >=0.4.3 <0.5.0 0.4.6 2.1.2
Transitive dependencies
args 0.13.7 1.4.3
charcode 1.1.1
collection 1.14.10
http_server 0.9.7
intl 0.14.0 0.15.6
logging 0.11.3+1
matcher 0.12.2+1
meta 1.1.5
mime 0.9.6+1
path 1.6.0
quiver 0.29.0+1
quiver_hashcode 1.0.0
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
yaml 2.1.14
Dev dependencies
test >=0.12.0 <0.13.0