jaguar_generator 2.4.5

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

jaguar-generator #

Generates Controller installers.

Usage #

Add build_runner dependencies: #

pubspec.yaml:

dependencies:
  jaguar:

dev_dependencies:
  build_runner:
  jaguar_generator:

Declare Controller class #

lib/example.dart:

import 'package:jaguar/jaguar.dart';

part 'example.jroutes.dart';

@GenController(path: "/simple")
class SimpleApi extends Controller with _$SimpleApi {
  @Get()
  String get(_) => "simple";
}

Generate Controller installer #

pub run build_runner build

A file named lib/example.jroutes.dart will be generated with Controller installer class _$SimpleApi.

Changelog #

2.4.4 #

  • Support for responseProcessor

2.4.2 #

  • Support for IncludeController

2.4.1 #

  • Basic support for GenController

example/README.md

A sample command-line application.

Created from templates made available by Stagehand under a BSD-style license.

Use this package as a library

1. Depend on it

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


dependencies:
  jaguar_generator: ^2.4.5

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_generator/builder.dart';
import 'package:jaguar_generator/common/constants.dart';
import 'package:jaguar_generator/generator/generator.dart';
import 'package:jaguar_generator/models/models.dart';
import 'package:jaguar_generator/models/route.dart';
import 'package:jaguar_generator/parser/parser.dart';
import 'package:jaguar_generator/writer/writer.dart';
  
Version Uploaded Documentation Archive
2.4.5 Jan 2, 2019 Go to the documentation of jaguar_generator 2.4.5 Download jaguar_generator 2.4.5 archive
2.4.4 Jan 2, 2019 Go to the documentation of jaguar_generator 2.4.4 Download jaguar_generator 2.4.4 archive
2.4.2 Jan 2, 2019 Go to the documentation of jaguar_generator 2.4.2 Download jaguar_generator 2.4.2 archive
2.4.1 Jan 2, 2019 Go to the documentation of jaguar_generator 2.4.1 Download jaguar_generator 2.4.1 archive
1.3.1 Feb 2, 2018 Go to the documentation of jaguar_generator 1.3.1 Download jaguar_generator 1.3.1 archive
1.2.14 Feb 1, 2018 Go to the documentation of jaguar_generator 1.2.14 Download jaguar_generator 1.2.14 archive
1.2.10 Feb 1, 2018 Go to the documentation of jaguar_generator 1.2.10 Download jaguar_generator 1.2.10 archive
1.2.5 Jan 13, 2018 Go to the documentation of jaguar_generator 1.2.5 Download jaguar_generator 1.2.5 archive
1.2.3 Jan 13, 2018 Go to the documentation of jaguar_generator 1.2.3 Download jaguar_generator 1.2.3 archive
1.2.2 Jan 13, 2018 Go to the documentation of jaguar_generator 1.2.2 Download jaguar_generator 1.2.2 archive

All 52 versions...

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

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

  • Dart: 2.1.0
  • pana: 0.12.13+1

Platforms

Detected platforms: other

Platform components identified in package: build, io, mirrors.

Health issues and suggestions

Document public APIs. (-0.30 points)

41 out of 42 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.

Maintenance suggestions

Homepage URL is insecure. (-5 points)

Update the homepage field and use a secure (https) URL.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.65 <3.0.0
analyzer ^0.33.0 0.33.6+1 0.35.1
build ^1.0.0 1.1.0 1.1.1
jaguar ^2.4.19 2.4.27
logging ^0.11.0 0.11.3+2
meta ^1.1.5 1.1.7
source_gen ^0.9.0 0.9.4+1
Transitive dependencies
args 1.5.1
async 2.0.8
auth_header 2.1.2
charcode 1.1.2
convert 2.1.1
crypto 2.0.6
csslib 0.14.6
dart_style 1.2.0 1.2.3
front_end 0.1.6+9 0.1.11
glob 1.1.7
html 0.13.3+3
http_server 0.9.8+1
jaguar_common 2.1.4
jaguar_serializer 2.2.8
kernel 0.3.6+9 0.3.11
mime 0.9.6+2
package_config 1.0.5
path_tree 2.2.2
plugin 0.2.0+3
pub_semver 1.4.2
source_span 1.5.4
stack_trace 1.9.3
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
build_runner ^1.0.0
collection ^1.14.10 1.14.11
path ^1.6.2 1.6.2
test ^1.3.0