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

Side by Side Diff: third_party/pkg/js/tools/create_bootstrap.dart

Issue 52573002: Remove uses of Options from pkg, samples, tests, and third_party directories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Edit comment 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
« no previous file with comments | « third_party/pkg/js/build.dart ('k') | 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 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 /** 6 /**
7 * This utility carves out the embedded bootstrap JavaScript in 7 * This utility carves out the embedded bootstrap JavaScript in
8 * js.dart as a separate file that may be included directly in html. 8 * js.dart as a separate file that may be included directly in html.
9 * This is necessary in settings where script injection is disallowed. 9 * This is necessary in settings where script injection is disallowed.
10 * 10 *
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 }); 42 });
43 } 43 }
44 44
45 create(Path libPath) { 45 create(Path libPath) {
46 final source = libPath.append('js.dart'); 46 final source = libPath.append('js.dart');
47 final target = libPath.append('dart_interop.js'); 47 final target = libPath.append('dart_interop.js');
48 createFile(source, target); 48 createFile(source, target);
49 } 49 }
50 50
51 main() { 51 main() {
52 final options = new Options(); 52 final scriptPath = new Path(Platform.script).directoryPath;
53 final scriptPath = new Path(options.script).directoryPath;
54 final libPath = scriptPath.join(new Path('../lib')); 53 final libPath = scriptPath.join(new Path('../lib'));
55 create(libPath); 54 create(libPath);
56 } 55 }
OLDNEW
« no previous file with comments | « third_party/pkg/js/build.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698