dartle 0.1.0 dartle: ^0.1.0 copied to clipboard
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!