grinder.tools library
Commonly used tools for build scripts.
Classes
- DevCompiler
-
A class to drive the Dart Dev Compiler (DDC, from the
dev_compilerpackage). - RunOptions
-
Arguments passed to
Process.runorProcess.start. SeeProcess.runfor more details. - TestRunner
-
A wrapper around the
testpackage. This class is used to run your unit tests.
Properties
Functions
-
defaultClean(
[GrinderContext context ]) → void -
A default implementation of a
cleantask. This task deletes all generated artifacts in thebuild/. -
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
scriptusing 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.