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

Side by Side Diff: pkg/polymer/lib/builder.dart

Issue 648883002: Add more options to configure the linter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | « no previous file | pkg/polymer/lib/deploy.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Common logic to make it easy to run the polymer linter and deploy tool. 5 /// Common logic to make it easy to run the polymer linter and deploy tool.
6 /// 6 ///
7 /// The functions in this library are designed to make it easier to create 7 /// The functions in this library are designed to make it easier to create
8 /// `build.dart` files. A `build.dart` file is a Dart script that can be invoked 8 /// `build.dart` files. A `build.dart` file is a Dart script that can be invoked
9 /// from the command line, but that can also invoked automatically by the Dart 9 /// from the command line, but that can also invoked automatically by the Dart
10 /// Editor whenever a file in your project changes or when selecting some menu 10 /// Editor whenever a file in your project changes or when selecting some menu
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 if (transformers is! List) { 339 if (transformers is! List) {
340 print('Unexpected value for transformers, expected a List.'); 340 print('Unexpected value for transformers, expected a List.');
341 return null; 341 return null;
342 } 342 }
343 343
344 transformers.forEach((t) { 344 transformers.forEach((t) {
345 if (t is! Map) return; 345 if (t is! Map) return;
346 var polymer = t['polymer']; 346 var polymer = t['polymer'];
347 if (polymer == null || polymer is! Map) return; 347 if (polymer == null || polymer is! Map) return;
348 348
349 var parsedEntryPoints = readEntrypoints(polymer['entry_points']); 349 var parsedEntryPoints = readFileList(polymer['entry_points']);
350 if (parsedEntryPoints == null) return; 350 if (parsedEntryPoints == null) return;
351 351
352 entryPoints.addAll(parsedEntryPoints); 352 entryPoints.addAll(parsedEntryPoints);
353 }); 353 });
354 return entryPoints.isEmpty ? null : entryPoints; 354 return entryPoints.isEmpty ? null : entryPoints;
355 } 355 }
OLDNEW
« no previous file with comments | « no previous file | pkg/polymer/lib/deploy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698