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

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

Issue 158083002: introduce web_components pkg for consolidated polyfills (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
« no previous file with comments | « pkg/polymer/lib/builder.dart ('k') | pkg/polymer/lib/polymer.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) 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 ..addOption('out', abbr: 'o', help: 'Directory to generate files into.', 110 ..addOption('out', abbr: 'o', help: 'Directory to generate files into.',
111 defaultsTo: 'out') 111 defaultsTo: 'out')
112 ..addOption('test', help: 'Deploy the test at the given path.\n' 112 ..addOption('test', help: 'Deploy the test at the given path.\n'
113 'Note: currently this will deploy all tests in its directory,\n' 113 'Note: currently this will deploy all tests in its directory,\n'
114 'but it will eventually deploy only the specified test.') 114 'but it will eventually deploy only the specified test.')
115 ..addFlag('js', help: 115 ..addFlag('js', help:
116 'deploy replaces *.dart scripts with *.dart.js. This flag \n' 116 'deploy replaces *.dart scripts with *.dart.js. This flag \n'
117 'leaves "packages/browser/dart.js" to do the replacement at runtime.', 117 'leaves "packages/browser/dart.js" to do the replacement at runtime.',
118 defaultsTo: true) 118 defaultsTo: true)
119 ..addFlag('debug', help: 119 ..addFlag('debug', help:
120 'run in debug mode. For example, use the debug versions of the \n' 120 'run in debug mode. For example, use the debug polyfill \n'
121 'polyfills (shadow_dom.debug.js and custom-elements.debug.js) \n' 121 'web_components/platform.concat.js instead of the minified one.\n',
122 'instead of the minified versions.',
123 defaultsTo: false) 122 defaultsTo: false)
124 ..addFlag('csp', help: 123 ..addFlag('csp', help:
125 'replaces *.dart with *.dart.precompiled.js to comply with \n' 124 'replaces *.dart with *.dart.precompiled.js to comply with \n'
126 'Content Security Policy restrictions.'); 125 'Content Security Policy restrictions.');
127 try { 126 try {
128 var results = parser.parse(arguments); 127 var results = parser.parse(arguments);
129 if (results['help']) { 128 if (results['help']) {
130 _showUsage(parser); 129 _showUsage(parser);
131 return null; 130 return null;
132 } 131 }
133 return results; 132 return results;
134 } on FormatException catch (e) { 133 } on FormatException catch (e) {
135 print(e.message); 134 print(e.message);
136 _showUsage(parser); 135 _showUsage(parser);
137 return null; 136 return null;
138 } 137 }
139 } 138 }
140 139
141 _showUsage(parser) { 140 _showUsage(parser) {
142 print('Usage: dart --package-root=packages/ ' 141 print('Usage: dart --package-root=packages/ '
143 'package:polymer/deploy.dart [options]'); 142 'package:polymer/deploy.dart [options]');
144 print(parser.getUsage()); 143 print(parser.getUsage());
145 } 144 }
OLDNEW
« no previous file with comments | « pkg/polymer/lib/builder.dart ('k') | pkg/polymer/lib/polymer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698