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

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

Issue 723393003: update to polymer js 0.5.1 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final tweaks Created 6 years 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
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 defaultsTo: 'out') 290 defaultsTo: 'out')
291 ..addFlag('js', help: 291 ..addFlag('js', help:
292 'deploy replaces *.dart scripts with *.dart.js. This flag \n' 292 'deploy replaces *.dart scripts with *.dart.js. This flag \n'
293 'leaves "packages/browser/dart.js" to do the replacement at runtime.', 293 'leaves "packages/browser/dart.js" to do the replacement at runtime.',
294 defaultsTo: true) 294 defaultsTo: true)
295 ..addFlag('csp', help: 295 ..addFlag('csp', help:
296 'extracts inlined JavaScript code to comply with \n' 296 'extracts inlined JavaScript code to comply with \n'
297 'Content Security Policy restrictions.') 297 'Content Security Policy restrictions.')
298 ..addFlag('debug', help: 298 ..addFlag('debug', help:
299 'run in debug mode. For example, use the debug polyfill \n' 299 'run in debug mode. For example, use the debug polyfill \n'
300 'web_components/platform.concat.js instead of the minified one.\n', 300 'web_components/webcomponents.js instead of the minified one.\n',
301 defaultsTo: false) 301 defaultsTo: false)
302 ..addFlag('help', abbr: 'h', 302 ..addFlag('help', abbr: 'h',
303 negatable: false, help: 'Displays this help and exit.'); 303 negatable: false, help: 'Displays this help and exit.');
304 304
305 showUsage() { 305 showUsage() {
306 print('Usage: dart build.dart [options]'); 306 print('Usage: dart build.dart [options]');
307 print('\nThese are valid options expected by build.dart:'); 307 print('\nThese are valid options expected by build.dart:');
308 print(parser.getUsage()); 308 print(parser.getUsage());
309 } 309 }
310 310
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = readFileList(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

Powered by Google App Engine
This is Rietveld 408576698