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

Side by Side Diff: samples/third_party/pop-pop-win/tool/hop_runner.dart

Issue 200723008: samples/poppopwin: upgrade to first-class sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed pkgbuild.status for rename 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 import 'dart:async';
2 import 'dart:io';
3 import 'package:hop/hop.dart';
4 import 'package:hop/hop_tasks.dart';
5 import '../test/console_test_harness.dart' as test_console;
6
7 void main(List<String> args) {
8
9 addTask('test', createUnitTestTask(test_console.main));
10
11 //
12 // Analyzer
13 //
14 addTask('analyze_libs', createAnalyzerTask(_getLibs));
15
16 //
17 // Dart2js - App
18 //
19 addTask('app_dart2js', createDartCompilerTask(['app_package/game_app.dart'],
20 minify: true,
21 liveTypeAnalysis: true
22 ));
23
24 //
25 // gh_pages
26 //
27 addTask('pages', (ctx) =>
28 branchForDir(ctx, 'master', 'web', 'gh-pages'));
29
30 runHop(args);
31 }
32
33
34 Future<List<String>> _getLibs() {
35 return new Directory('lib').list()
36 .where((FileSystemEntity fse) => fse is File)
37 .map((File file) => file.path)
38 .toList();
39 }
OLDNEW
« no previous file with comments | « samples/third_party/pop-pop-win/test/ppw/test_game.dart ('k') | samples/third_party/pop-pop-win/web/_audio.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698