Grinder - a task based, dependency aware build system.

Build Status


A library and tool to drive a command-line build.

Grinder build files are entirely specified in Dart code. This allows you to write and debug your build files with the same tools you use for the rest of your project source.

Generally, a Grinder implementation will look something like this:

void main([List<String> args]) {
  defineTask('init', taskFunction: init);
  defineTask('compile', taskFunction: compile, depends: ['init']);
  defineTask('deploy', taskFunction: deploy, depends: ['compile']);
  defineTask('docs', taskFunction: deploy, depends: ['init']);
  defineTask('all', depends: ['deploy', 'docs']);


init(GrinderContext context) {
  context.log("I set things up");


Tasks to run are specified on the command line. If a task has dependencies, those dependent tasks are run before the specified task.

Command-line usage

usage: dart grinder.dart <options> target1 target2 ...

valid options:
-h, --help    show targets but don't build
-d, --deps    display the dependencies of targets

API documentation

Documentation is available here.



A library and tool to drive a command-line build.


General file system routines, useful in the context of running builds. This includes the FileSet class, which is used for reasoning about sets of files.


Commonly used utilities for build scripts, including for tasks like running pub commands.