build_tools 0.0.12 copy "build_tools: ^0.0.12" to clipboard
build_tools: ^0.0.12 copied to clipboard

discontinued
outdatedDart 1 only

Build tools is a build automation tool with a built-in command line shell.

example/example.dart

import "dart:async";
import "dart:io";
import "package:build_tools/build_shell.dart";
import "package:build_tools/build_tools.dart";

Future main(List args) async {
  target("default", ["breakfast"], (t, args) {
    print("Very good!");
  });

  target("breakfast", ["eat sandwich", "drink coffee"], (t, args) {
    print(t.name);
  });

  before(["breakfast"], (t, args) {
    print("wash hands before ${t.name}");
  });

  after(["breakfast"], (t, args) {
    print("smoke a cigar after ${t.name}");
  });

  target("drink coffee", ["make coffee"], (t, args) {
    print(t.name);
  });

  target("eat sandwich", ["make sandwich"], (t, args) {
    print(t.name);
  });

  target("make coffee", [], (t, args) {
    print(t.name);
  });

  target("make sandwich", ["take bread", "take sausage"], (t, args) {
    print(t.name);
  });

  target("take bread", [], (t, args) {
    print(t.name);
  });

  target("take sausage", [], (t, args) {
    print(t.name);
  });

  exit(await new BuildShell().run(args));
}
0
likes
0
pub points
7%
popularity

Publisher

unverified uploader

Build tools is a build automation tool with a built-in command line shell.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, file_utils, globbing, logging, patsubst

More

Packages that depend on build_tools