Commonly used tools for build scripts.

Properties

BIN_DIR → Directory

read-only
binDir → Directory

read-only
BUILD_DIR → Directory

read-only
buildDir → Directory

read-only
LIB_DIR → Directory

read-only
libDir → Directory

read-only
WEB_DIR → Directory

read-only
webDir → Directory

read-only

Functions

defaultClean([GrinderContext context]) → void

A default implementation of a clean task. This task deletes all generated artifacts in the build/.

defaultInit([GrinderContext context]) → void

A default implementation of an init task. This task verifies that the grind script is executed from the project root.

run(String executable, {List<String> arguments: const [], RunOptions runOptions, bool quiet: false, String workingDirectory}) → String

Synchronously run an executable.

runAsync(String executable, {List<String> arguments: const [], RunOptions runOptions, bool quiet: false, String workingDirectory}) → Future<String>

Asynchronously run an executable.

runDartScript(String script, {List<String> arguments: const [], bool quiet: false, String packageRoot, RunOptions runOptions, int vmNewGenHeapMB, int vmOldGenHeapMB, String workingDirectory}) → String

Run a dart script using run_lib.run.

runProcess(String executable, {List<String> arguments: const [], RunOptions runOptions, bool quiet: false, String workingDirectory}) → String

Synchronously run an executable.

runProcessAsync(String executable, {List<String> arguments: const [], RunOptions runOptions, String workingDirectory, bool quiet: false}) → Future<String>

Asynchronously run an executable.

Classes

BrowserInstance

Chrome

ContentShell

Dartium

A wrapper around the Dartium browser.

RunOptions

Arguments passed to Process.run or Process.start. See Process.run for more details.

TestRunner

A wrapper around the test package. This class is used to run your unit tests.

Tests

A utility class to run tests for your project.

Exceptions / Errors

ProcessException

An exception from a process which exited with a non-zero exit code.