grinder.tools library

Commonly used tools for build scripts.

Classes

DevCompiler
A class to drive the Dart Dev Compiler (DDC, from the dev_compiler package).
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.

Properties

binDir → Directory
final
buildDir → Directory
final
libDir → Directory
final
webDir → Directory
final

Functions

defaultClean([GrinderContext context ]) → void
A default implementation of a clean task. This task deletes all generated artifacts in the build/.
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, String workingDirectory }) → String
Run a dart script using run_lib.run. Returns the stdout. [...]
runProcess(String executable, { List<String> arguments: const [], RunOptions runOptions, bool quiet: false, String workingDirectory }) → String
Synchronously run an executable. [...]
@Deprecated('Use `run` instead.')
runProcessAsync(String executable, { List<String> arguments: const [], RunOptions runOptions, String workingDirectory, bool quiet: false }) → Future<String>
Asynchronously run an executable. [...]
@Deprecated('Use `runAsync` instead.')

Exceptions / Errors

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