execute method

  1. @override
Future execute(
  1. Project project
)

Implementation

@override
Future execute(Project project) {
  Directory buildDir = Directory(path.join(project.dir.path, 'build'));

  if (buildDir.existsSync()) {
    project.print('Deleting ${path.basename(buildDir.path)}/.');
    return buildDir.delete(recursive: true);
  } else {
    return Future.value();
  }
}