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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/shelf/test/test_util.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 library shelf.hop_runner;
6
7 import 'dart:async';
8 import 'dart:io';
9 import 'package:hop/hop.dart';
10 import 'package:hop/hop_tasks.dart';
11 import 'package:hop_docgen/hop_docgen.dart';
12 import '../test/harness_console.dart' as test_console;
13
14 void main(List<String> args) {
15 addTask('test', createUnitTestTask(test_console.main));
16
17 //
18 // Analyzer
19 //
20 addTask('analyze_libs', createAnalyzerTask(_getLibs));
21
22 addTask('docs', createDocGenTask('../compiled_dartdoc_viewer'));
23
24 runHop(args);
25 }
26
27 Future<List<String>> _getLibs() {
28 return new Directory('lib').list()
29 .where((FileSystemEntity fse) => fse is File)
30 .map((File file) => file.path)
31 .toList();
32 }
OLDNEW
« 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