Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Unified Diff: pkg/shelf/tool/hop_runner.dart

Issue 219283008: pkg/shelf (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cl nits Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/shelf/test/test_util.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/shelf/tool/hop_runner.dart
diff --git a/pkg/shelf/tool/hop_runner.dart b/pkg/shelf/tool/hop_runner.dart
new file mode 100644
index 0000000000000000000000000000000000000000..77783f94c471efe34366cf4796bdea3c27992628
--- /dev/null
+++ b/pkg/shelf/tool/hop_runner.dart
@@ -0,0 +1,32 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library shelf.hop_runner;
+
+import 'dart:async';
+import 'dart:io';
+import 'package:hop/hop.dart';
+import 'package:hop/hop_tasks.dart';
+import 'package:hop_docgen/hop_docgen.dart';
+import '../test/harness_console.dart' as test_console;
+
+void main(List<String> args) {
+ addTask('test', createUnitTestTask(test_console.main));
+
+ //
+ // Analyzer
+ //
+ addTask('analyze_libs', createAnalyzerTask(_getLibs));
+
+ addTask('docs', createDocGenTask('../compiled_dartdoc_viewer'));
+
+ runHop(args);
+}
+
+Future<List<String>> _getLibs() {
+ return new Directory('lib').list()
+ .where((FileSystemEntity fse) => fse is File)
+ .map((File file) => file.path)
+ .toList();
+}
« no previous file with comments | « pkg/shelf/test/test_util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698