Stop downloading sky_services and flutter_services (#6583)

These aren't needed anymore.
This commit is contained in:
Adam Barth
2016-10-28 16:25:05 -07:00
committed by GitHub
parent 7e539fea01
commit 70eb4929af
5 changed files with 11 additions and 61 deletions

View File

@@ -74,11 +74,6 @@ dependencies:
args.add(name.substring(0, name.length - 5));
}
findSkyServicesLibraryNames().forEach((String libName) {
args.add('--include-external');
args.add(libName);
});
process = await Process.start('pub', args, workingDirectory: 'dev/docs');
printStream(process.stdout);
printStream(process.stderr);
@@ -131,21 +126,6 @@ void putRedirectInOldIndexLocation() {
new File('$kDocRoot/flutter/index.html').writeAsStringSync(metaTag);
}
List<String> findSkyServicesLibraryNames() {
Directory skyServicesLocation = new Directory('bin/cache/pkg/sky_services/lib');
if (!skyServicesLocation.existsSync()) {
throw 'Did not find sky_services package location in ${skyServicesLocation.path}.';
}
return skyServicesLocation.listSync(followLinks: false, recursive: true)
.where((FileSystemEntity entity) {
return entity is File && entity.path.endsWith('.mojom.dart');
}).map((FileSystemEntity entity) {
String basename = path.basename(entity.path);
basename = basename.substring(0, basename.length-('.dart'.length));
return basename.replaceAll('.', '_');
});
}
List<String> findPackageNames() {
return findPackages().map((Directory dir) => path.basename(dir.path)).toList();
}