mason 0.1.0 copy "mason: ^0.1.0" to clipboard
mason: ^0.1.0 copied to clipboard

A Dart template generator which helps teams generate files quickly and consistently.

example/main.dart

import 'dart:io';

import 'package:mason/mason.dart';

Future<void> main() async {
  final brick = Brick.git(
    const GitPath(
      'https://github.com/felangel/mason.git',
      path: 'bricks/greeting',
    ),
  );
  final generator = await MasonGenerator.fromBrick(brick);
  final target = DirectoryGeneratorTarget(Directory.current);
  await generator.generate(target, vars: <String, dynamic>{'name': 'Dash'});
}
767
likes
160
points
153k
downloads

Publisher

verified publisherbrickhub.dev

Weekly Downloads

A Dart template generator which helps teams generate files quickly and consistently.

Repository (GitHub)
View/report issues

Topics

#mason #template #generator

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

archive, checked_yaml, collection, convert, crypto, http, json_annotation, mason_logger, meta, mustache_template, path, pool, pub_semver, yaml

More

Packages that depend on mason