grinder 0.6.1 copy "grinder: ^0.6.1" to clipboard
grinder: ^0.6.1 copied to clipboard

outdatedDart 1 only

Grinder - a task based, dependency aware build system.

Grinder for Dart #

A task based, dependency aware build system.

Build Status Build Status

Breaking changes! #

Warning: lots of breaking changes in v0.6! Please see the change log.

Intro #

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]) {
  task('init', init);
  task('compile', compile, ['init']);
  task('deploy', deploy, ['compile']);
  task('docs', deploy, ['init']);
  task('all', null, ['deploy', 'docs']);

  startGrinder(args);
}

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

or:

pub run grind <args>

will run the tool/grind.dart script with the given arguments.

API documentation #

Documentation is available here.

Disclaimer #

This is not an official Google product.

110
likes
0
pub points
95%
popularity

Publisher

unverified uploader

Grinder - a task based, dependency aware build system.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, quiver

More

Packages that depend on grinder