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

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

Issue 52883002: Remove uses of Options in polymer lint and deploy tools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
(...skipping 13 matching lines...) Expand all
24 24
25 import 'dart:async'; 25 import 'dart:async';
26 import 'dart:io'; 26 import 'dart:io';
27 27
28 import 'package:args/args.dart'; 28 import 'package:args/args.dart';
29 import 'package:path/path.dart' as path; 29 import 'package:path/path.dart' as path;
30 import 'src/build/common.dart' show TransformOptions; 30 import 'src/build/common.dart' show TransformOptions;
31 import 'src/build/runner.dart'; 31 import 'src/build/runner.dart';
32 import 'transformer.dart'; 32 import 'transformer.dart';
33 33
34 main() { 34 main(List<String> arguments) {
35 var args = _parseArgs(new Options().arguments); 35 var args = _parseArgs(arguments);
36 if (args == null) exit(1); 36 if (args == null) exit(1);
37 37
38 var test = args['test']; 38 var test = args['test'];
39 var outDir = args['out']; 39 var outDir = args['out'];
40 40
41 var options; 41 var options;
42 if (test == null) { 42 if (test == null) {
43 var transformOps = new TransformOptions( 43 var transformOps = new TransformOptions(
44 directlyIncludeJS: args['js'], 44 directlyIncludeJS: args['js'],
45 contentSecurityPolicy: args['csp']); 45 contentSecurityPolicy: args['csp']);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 _showUsage(parser); 129 _showUsage(parser);
130 return null; 130 return null;
131 } 131 }
132 } 132 }
133 133
134 _showUsage(parser) { 134 _showUsage(parser) {
135 print('Usage: dart --package-root=packages/ ' 135 print('Usage: dart --package-root=packages/ '
136 'package:polymer/deploy.dart [options]'); 136 'package:polymer/deploy.dart [options]');
137 print(parser.getUsage()); 137 print(parser.getUsage());
138 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698