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

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

Issue 26192002: clarify that deploy is optional (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | no next file » | 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 /** 5 /**
6 * Common logic to make it easy to run the polymer linter and deploy tool. 6 * Common logic to make it easy to run the polymer linter and deploy tool.
7 * 7 *
8 * The functions in this library are designed to make it easier to create 8 * The functions in this library are designed to make it easier to create
9 * `build.dart` files. A `build.dart` file is a Dart script that can be invoked 9 * `build.dart` files. A `build.dart` file is a Dart script that can be invoked
10 * from the command line, but that can also invoked automatically by the Dart 10 * from the command line, but that can also invoked automatically by the Dart
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 * import 'package:polymer/builder.dart'; 50 * import 'package:polymer/builder.dart';
51 * 51 *
52 * main() { 52 * main() {
53 * var options = parseOptions(); 53 * var options = parseOptions();
54 * lint().then((_) { 54 * lint().then((_) {
55 * if (options.forceDeploy) deploy(); 55 * if (options.forceDeploy) deploy();
56 * }); 56 * });
57 * } 57 * }
58 * 58 *
59 * **Example 4**: Same as above, but uses [build] (which internally calls [lint] 59 * **Example 4**: Same as above, but uses [build] (which internally calls [lint]
60 * and [deploy]). 60 * and optionally calls [deploy]).
61 * 61 *
62 * import 'dart:io'; 62 * import 'dart:io';
63 * import 'package:polymer/builder.dart'; 63 * import 'package:polymer/builder.dart';
64 * 64 *
65 * main() { 65 * main() {
66 * build(); 66 * build();
67 * } 67 * }
68 * 68 *
69 * **Example 5**: Like the previous example, but indicates to the linter and 69 * **Example 5**: Like the previous example, but indicates to the linter and
70 * deploy tool which files are actually used as entry point files. See the 70 * deploy tool which files are actually used as entry point files. See the
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 if (res['help']) { 283 if (res['help']) {
284 print('A build script that invokes the polymer linter and deploy tools.'); 284 print('A build script that invokes the polymer linter and deploy tools.');
285 print('Usage: dart build.dart [options]'); 285 print('Usage: dart build.dart [options]');
286 print('\nThese are valid options expected by build.dart:'); 286 print('\nThese are valid options expected by build.dart:');
287 print(parser.getUsage()); 287 print(parser.getUsage());
288 exit(0); 288 exit(0);
289 } 289 }
290 return new CommandLineOptions(res['changed'], res['removed'], res['clean'], 290 return new CommandLineOptions(res['changed'], res['removed'], res['clean'],
291 res['full'], res['machine'], res['deploy'], res['out']); 291 res['full'], res['machine'], res['deploy'], res['out']);
292 } 292 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698