getConstructs method

Stream<Directory> getConstructs()

Implementation

Stream<Directory> getConstructs() async* {
  final revali = await getRevali();

  if (!await revali.exists()) {
    return;
  }

  final dirs = revali.listSync().whereType<Directory>();

  for (final dir in dirs) {
    if (dir.basename == 'server') continue;
    if (dir.basename == 'build') continue;

    yield dir;
  }
}