mason

Last updated:

0 purchases

mason Image
mason Images
Add to Cart

Description:

mason

A 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',
path: 'bricks/greeting',
),
);
final generator = await MasonGenerator.fromBrick(brick);
final target = DirectoryGeneratorTarget(Directory.current);
await generator.generate(target, vars: <String, dynamic>{'name': 'Dash'});
}
copied to clipboard

License:

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

Customer Reviews

There are no reviews.