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

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

Issue 172923002: [polymer] fix editor hints -- query/queryAll and unused imports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 * **Note**: If you already have a `build.dart` in your application, we 6 * **Note**: If you already have a `build.dart` in your application, we
7 * recommend to use the `package:polymer/builder.dart` library instead. 7 * recommend to use the `package:polymer/builder.dart` library instead.
8 8
9 * Temporary deploy command used to create a version of the app that can be 9 * Temporary deploy command used to create a version of the app that can be
10 * compiled with dart2js and deployed. Following pub layout conventions, this 10 * compiled with dart2js and deployed. Following pub layout conventions, this
11 * script will treat any HTML file under a package 'web/' and 'test/' 11 * script will treat any HTML file under a package 'web/' and 'test/'
12 * directories as entry points. 12 * directories as entry points.
13 * 13 *
14 * From an application package you can run deploy by creating a small program 14 * From an application package you can run deploy by creating a small program
15 * as follows: 15 * as follows:
16 * 16 *
17 * import "package:polymer/deploy.dart" as deploy; 17 * import "package:polymer/deploy.dart" as deploy;
18 * main() => deploy.main(); 18 * main() => deploy.main();
19 * 19 *
20 * This library should go away once `pub deploy` can be configured to run 20 * This library should go away once `pub deploy` can be configured to run
21 * barback transformers. 21 * barback transformers.
22 */ 22 */
23 library polymer.deploy; 23 library polymer.deploy;
24 24
25 import 'dart:async';
26 import 'dart:io'; 25 import 'dart:io';
27 26
28 import 'package:args/args.dart'; 27 import 'package:args/args.dart';
29 import 'package:path/path.dart' as path; 28 import 'package:path/path.dart' as path;
30 import 'src/build/common.dart' show TransformOptions, phasesForPolymer; 29 import 'src/build/common.dart' show TransformOptions, phasesForPolymer;
31 import 'src/build/runner.dart'; 30 import 'src/build/runner.dart';
32 import 'transformer.dart'; 31 import 'transformer.dart';
33 32
34 main(List<String> arguments) { 33 main(List<String> arguments) {
35 var args = _parseArgs(arguments); 34 var args = _parseArgs(arguments);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 _showUsage(parser); 137 _showUsage(parser);
139 return null; 138 return null;
140 } 139 }
141 } 140 }
142 141
143 _showUsage(parser) { 142 _showUsage(parser) {
144 print('Usage: dart --package-root=packages/ ' 143 print('Usage: dart --package-root=packages/ '
145 'package:polymer/deploy.dart [options]'); 144 'package:polymer/deploy.dart [options]');
146 print(parser.getUsage()); 145 print(parser.getUsage());
147 } 146 }
OLDNEW
« no previous file with comments | « no previous file | pkg/polymer/lib/src/build/build_filter.dart » ('j') | pkg/polymer/test/build/static_clean_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698