generators_lite 1.0.4 copy "generators_lite: ^1.0.4" to clipboard
generators_lite: ^1.0.4 copied to clipboard

Use the power of automatic code generation for Dart.

example/README.md

The complete example of the build.yaml file is layed here.

# yaml-language-server: $schema=./build.yaml
targets:
  $default:
    sources:
      include:
        - '**'
        - lib/$lib$
        - $package$
      exclude:
        - .dart_tool/**

    builders:
      generators_lite|assets:
        enabled: true
        options:
          import_path: source/assets
          export_path: lib/src/generated/assets.g.dart
          base_name: CustomAssets

      generators_lite|i18n:
        enabled: true
        options:
          import_path: source/i18n
          export_path: lib/src/generated/i18n.g.dart
          encoding: utf-8
          imports:
            - ../custom_l10n.dart
          base_name: CustomI18N
          base_class_name: CustomL10N
          enum_class_name: I18NLocaleCustom

      generators_lite|models:
        enabled: true
        options:
          import_path: source/models.json
          export_path: lib/src/generated/models.g.dart
          imports:
            - ../custom_json_converters.dart

      generators_lite|icons:
        enabled: true
        options:
          import_path: source/icons
          export_path: lib/src/generated/icons.g.dart
          font_export_path: source/icons.ttf
          base_name: CustomIcons
          font_family: IconsFont
          height: 24
          descent: 8
          normalize: true
          npm_package:
            private: true
            devDependencies:
              fantasticon: ^1.2.3
          base_code_point: 0xf101
0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

Use the power of automatic code generation for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, args, build, collection, dart_style, glob, json5, meta, path, yaml

More

Packages that depend on generators_lite