yamller

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

yamller

YAMMLER #
A library for generate dart file from yaml.
[简体中文]
Usage #
install from pub #
dart pub global activate yamller
copied to clipboard
commandline #
yamller --files=[your config yaml file].yaml
copied to clipboard
example #

yaml file (test.yaml)

name: test_pubspec
description: test_pubspec
publish_to: "none"
version: 1.0.0+10
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^1.0.2
dio: ^4.0.0
dev_dependencies:
build_runner: ^2.1.0
flutter:
uses-material-design: true
copied to clipboard

will generate dart file (test.dart)

// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// YAMMLER GENERATOR
// https://github.com/laiiihz/yamller
// https://pub.dev/packages/yamller
// **************************************************************************
class Test {
const Test();

static const String name = 'test_pubspec';

static const String description = 'test_pubspec';

static const String publishTo = 'none';

static const String version = '1.0.0+10';

static final environment = const _Environment0();

static final dependencies = const _Dependencies1();

static final devDependencies = const _DevDependencies4();

static final flutter = const _Flutter5();
}

class _Flutter5 {
const _Flutter5();

final bool usesMaterialDesign = true;
}

class _DevDependencies4 {
const _DevDependencies4();

final String buildRunner = '^2.1.0';
}

class _Dependencies1 {
const _Dependencies1();

final flutter = const _Flutter1();

final flutterLocalizations = const _FlutterLocalizations2();

final String cupertinoIcons = '^1.0.2';

final String dio = '^4.0.0';
}

class _FlutterLocalizations2 {
const _FlutterLocalizations2();

final String sdk = 'flutter';
}

class _Flutter1 {
const _Flutter1();

final String sdk = 'flutter';
}

class _Environment0 {
const _Environment0();

final String sdk = '>=2.12.0 <3.0.0';
}
copied to clipboard

config usage

final String name = Test.name; // test_pubspec
final String sdk = Test.environment.sdk; // >=2.12.0 <3.0.0
copied to clipboard
API usage #
yamller API documentation
RoadMap #

0.1.0

❌ more config options
❌ generate code using build_runner


0.2.0

❌ support Yaml List



Features and bugs #
Please file feature requests and bugs at the issue tracker.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.