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

discontinued

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<String> 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
25
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

BSD-3-Clause (license)

Dependencies

args, file_utils, globbing, logging, patsubst

More

Packages that depend on build_tools