jaguar_generator 1.3.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 64

jaguar-generator

Generates RequestHandler for a given Api class.

Usage

Api class

lib/api.dart:

import 'package:jaguar/jaguar.dart';

part 'api.g.dart';

/// Example of basic API class
@Api(path: '/api')
class MotherGroup extends _$JaguarMotherGroup {
  /// Example of basic route
  @Route(path: '/ping')
  String ping(Context ctx) => "You pinged me!";
}

build.yaml settings


Changelog

0.6.0

  • jaguar 0.6.x

0.1.0

  • Generators for RouteGroup and Api

1. Depend on it

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


dependencies:
  jaguar_generator: "^1.3.1"

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/common/exceptions/exceptions.dart';

import 'package:jaguar_generator/common/validator.dart';

import 'package:jaguar_generator/generator/generator.dart';

import 'package:jaguar_generator/models/exception.dart';

import 'package:jaguar_generator/models/interceptor.dart';

import 'package:jaguar_generator/models/models.dart';

import 'package:jaguar_generator/models/route.dart';

import 'package:jaguar_generator/parser/exception.dart';

import 'package:jaguar_generator/parser/group.dart';

import 'package:jaguar_generator/parser/interceptor/wrapper_creator.dart';

import 'package:jaguar_generator/parser/parser.dart';

import 'package:jaguar_generator/parser/route.dart';

import 'package:jaguar_generator/to_model/to_model.dart';

import 'package:jaguar_generator/validator/interceptor.dart';

import 'package:jaguar_generator/validator/validator.dart';

import 'package:jaguar_generator/writer/exception.dart';

import 'package:jaguar_generator/writer/writer.dart';
        
Version Uploaded Documentation 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
1.2.1 Jan 13, 2018 Go to the documentation of jaguar_generator 1.2.1 Download jaguar_generator 1.2.1 archive
0.8.0 Aug 4, 2017 Go to the documentation of jaguar_generator 0.8.0 Download jaguar_generator 0.8.0 archive
0.7.2 Jul 9, 2017 Go to the documentation of jaguar_generator 0.7.2 Download jaguar_generator 0.7.2 archive
0.7.1 Jul 9, 2017 Go to the documentation of jaguar_generator 0.7.1 Download jaguar_generator 0.7.1 archive

All 48 versions...

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

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

Platforms

Detected platforms: other

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

Suggestions

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

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use jaguar_generator.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
analyzer ^0.30.0 0.30.0+4 0.31.0+1
build ^0.11.2 0.11.2 0.12.0+1
build_runner ^0.7.0 0.7.5+1 0.7.9
jaguar ^1.3.4 1.3.4
source_gen ^0.7.3 0.7.4+3
Transitive dependencies
args 1.2.0 1.3.0
async 2.0.3
barback 0.15.2+14
build_barback 0.5.0+1 0.5.0+3
build_config 0.2.3
built_collection 3.0.4
built_value 5.1.1
charcode 1.1.1
cli_util 0.1.2+1
code_builder 3.0.1
code_transformers 0.5.1+4
collection 1.14.5
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
dart_style 1.0.9+1
fixnum 0.10.6
front_end 0.1.0-alpha.4.1 0.1.0-alpha.8
glob 1.1.5
graphs 0.1.0
html 0.13.2+2
http_parser 3.1.1
http_server 0.9.7
intl 0.15.2
io 0.3.2+1
isolate 1.1.0
kernel 0.3.0-alpha.1.1 0.3.0-alpha.5
logging 0.11.3+1
matcher 0.12.1+4
meta 1.1.2
mime 0.9.6
package_config 1.0.3
path 1.5.1
plugin 0.2.0+2
pool 1.3.4
quiver 0.28.0
quiver_hashcode 1.0.0
shelf 0.7.2
source_maps 0.10.4
source_span 1.4.0
stack_trace 1.9.1
stream_channel 1.6.3
stream_transform 0.0.10
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
test