jaguar_generator 1.3.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 55

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

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate jaguar_generator

2. Use it

The package has the following executables:


$ jaguar_gen

Use this package as a library

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

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages 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

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

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

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
10 / 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]
55
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

Platform components identified in package: build.

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.32.1
build ^0.11.2 0.11.2 0.12.6
build_runner ^0.7.0 0.7.5+1 0.8.10
jaguar ^1.3.4 1.3.11 2.1.7
source_gen ^0.7.3 0.7.5+1 0.8.2
Transitive dependencies
args 1.4.3
async 2.0.7
barback 0.15.2+16
build_barback 0.5.0+1 0.5.0+4
build_config 0.2.5 0.3.0
built_collection 3.1.1
built_value 5.5.2
charcode 1.1.1
cli_util 0.1.3
code_builder 3.1.0
code_transformers 0.5.1+5
collection 1.14.10
convert 2.0.1
crypto 2.0.5
csslib 0.14.4
dart_style 1.0.9+1 1.1.0
fixnum 0.10.7
front_end 0.1.0-alpha.4.1 0.1.1
glob 1.1.5
graphs 0.1.2
html 0.13.3+1
http_parser 3.1.2
http_server 0.9.7
io 0.3.2+1
isolate 1.1.0 2.0.1
kernel 0.3.0-alpha.1.1 0.3.1
logging 0.11.3+1
matcher 0.12.3
meta 1.1.5
mime 0.9.6+1
package_config 1.0.3
path 1.6.1
plugin 0.2.0+2
pool 1.3.5
quiver 0.29.0+1
shelf 0.7.3+1
source_maps 0.10.5
source_span 1.4.0
stack_trace 1.9.2
stream_channel 1.6.7+1
stream_transform 0.0.14
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+8
yaml 2.1.14
Dev dependencies
test