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

Unified Diff: pkg/polymer/lib/builder_init.dart

Issue 569393002: no longer require entry points to be specified in the build.dart file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: more robust reading of entry points Created 6 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
« pkg/polymer/lib/builder.dart ('K') | « pkg/polymer/lib/builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/builder_init.dart
diff --git a/pkg/polymer/lib/builder_init.dart b/pkg/polymer/lib/builder_init.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6cb0d82f29225e6ae28d54637cddb99485310a05
--- /dev/null
+++ b/pkg/polymer/lib/builder_init.dart
@@ -0,0 +1,12 @@
+// Copyright (c) 2013, 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 that defines a main which calls build() from builder.dart. For
+/// polymer projects the build.dart file can simply export this to make the
+/// linter run on all of the entry points defined in your pubspec.yaml.
+library polymer.builder.init;
Siggi Cherem (dart-lang) 2014/09/15 21:35:20 maybe rename the file and library to 'default_buil
jakemac 2014/09/15 22:20:52 Done.
+
+import 'builder.dart';
+
+main(args) { build(options: parseOptions(args)); }
Siggi Cherem (dart-lang) 2014/09/15 21:35:20 I wonder if we should just call `lint`. `build` wa
jakemac 2014/09/15 22:20:52 Done.
« pkg/polymer/lib/builder.dart ('K') | « pkg/polymer/lib/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698