grinder.tools library

Commonly used tools for build scripts.

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.

Properties

BIN_DIR Directory
@Deprecated('See binDir'), read-only
binDir Directory
final
BUILD_DIR Directory
@Deprecated('See buildDir'), read-only
buildDir Directory
final
LIB_DIR Directory
@Deprecated('See libDir'), read-only
libDir Directory
final
WEB_DIR Directory
@Deprecated('See webDir'), read-only
webDir Directory
final

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.
@Deprecated('the functionality of this method has been rolled into grinder startup')
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. [...]
@Deprecated('Use `Dart.run` instead.')
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.