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
orProcess.start
. SeeProcess.run
for more details. - TestRunner
-
A wrapper around the
test
package. This class is used to run your unit tests.
Properties
Functions
-
defaultClean(
[GrinderContext context ]) → void -
A default implementation of a
clean
task. 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
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.