mason 0.1.0-dev.27 icon indicating copy to clipboard operation
mason: ^0.1.0-dev.27 copied to clipboard

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

mason logo

Pub mason coverage style: very good analysis License: MIT


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

package:mason contains the core generator that powers package:mason_cli and can be used to build custom code generation tools.

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'});
}
352
likes
130
pub points
94%
popularity

Publisher

verified publisher iconbrickhub.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

archive, checked_yaml, collection, crypto, http, json_annotation, mason_logger, meta, mustache_template, path, pub_semver, recase, universal_io, yaml

More

Packages that depend on mason