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

outdated

A simple build system written in Dart. Tasks are declared in a regular Dart file.

Dartle #

A simple build system written in Dart.

Dartle is designed to integrate well with pub and Dart's own build system, but help with automation tasks not covered by other tools.

It is inspired by Gradle.

How to use #

Add dartle to your dev_dependencies:

pubspec.yaml

dev_dependencies:
  dartle:

Write a dartle build file

dartle.dart

import 'package:dartle/dartle.dart';

final allTasks = [Task(hello), Task(bye)];

main(List<String> args) async =>
    run(args, tasks: allTasks, defaultTasks: allTasks.sublist(0, 1));

hello() async {
  print("Hello!");
}

bye() async {
  print("Bye!");
}

Run your build!

dart dartle.dart

To run specific task(s), give them as arguments:

dart dartle.dart hello bye

Output:

Running task: hello
Hello!
Running task: bye
Bye!
7
likes
0
pub points
18%
popularity

Publisher

unverified uploader

A simple build system written in Dart. Tasks are declared in a regular Dart file.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ansicolor, args, logging, meta

More

Packages that depend on dartle