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

Unified Diff: samples/third_party/todomvc/build.dart

Issue 23898009: Switch polymer's build.dart to use the new linter. This CL does the following (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
Index: samples/third_party/todomvc/build.dart
diff --git a/samples/third_party/todomvc/build.dart b/samples/third_party/todomvc/build.dart
index 3bac4f675d8ed513823e5ec73909958886f23dc0..74ef11dd2fd83808a272422cdb0b45fc308c125a 100755
--- a/samples/third_party/todomvc/build.dart
+++ b/samples/third_party/todomvc/build.dart
@@ -3,10 +3,11 @@
// 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.
-import 'dart:io';
-import 'package:polymer/component_build.dart';
-import 'package:polymer/deploy.dart' as deploy;
+import 'package:polymer/build_helper.dart';
void main() {
- build(new Options().arguments, ['web/index.html']).then((_) => deploy.main());
-}
+ var options = parseOptions();
+ lint(entrypoints: ['web/index.html']).then((_) {
+ if (options.forceDeploy) deploy(entrypoints: ['web/index.html']);
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698