compile function

Future<void> compile(
  1. IShell shell,
  2. String dartFile, [
  3. String executableType = 'kernel'
])

Compiles the specified dartFile into the target executableType

since 0.0.1

Implementation

Future<void> compile(
  IShell shell,
  String dartFile, [
  String executableType = 'kernel',
]) async {
  await _whenDartBuildable('Compile', shell, () async {
    _log.info('Compiling $dartFile to $executableType');
    await shell.run('dart compile $executableType $dartFile');
  });
}