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.run or Process.start. See Process.run for 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. -
runProcessAsync(
String executable, {List< String> arguments = const [], RunOptions? runOptions, String? workingDirectory, bool quiet = false}) → Future<String> -
Asynchronously run an
executable.
Exceptions / Errors
- ProcessException
- An exception from a process which exited with a non-zero exit code.