OLD | NEW |
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 /** Transfomer that combines multiple dart script tags into a single one. */ | 5 /** Transfomer that combines multiple dart script tags into a single one. */ |
6 library polymer.src.transform.script_compactor; | 6 library polymer.src.build.script_compactor; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 | 9 |
10 import 'package:barback/barback.dart'; | 10 import 'package:barback/barback.dart'; |
11 import 'package:html5lib/parser.dart' show parseFragment; | 11 import 'package:html5lib/parser.dart' show parseFragment; |
12 import 'package:path/path.dart' as path; | 12 import 'package:path/path.dart' as path; |
13 | 13 |
14 import 'code_extractor.dart'; // import just for documentation. | 14 import 'code_extractor.dart'; // import just for documentation. |
15 import 'common.dart'; | 15 import 'common.dart'; |
16 | 16 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 void main() { | 120 void main() { |
121 initPolymer([ | 121 initPolymer([ |
122 """; | 122 """; |
123 | 123 |
124 // TODO(sigmund): investigate alternative to get the baseUri (dartbug.com/12612) | 124 // TODO(sigmund): investigate alternative to get the baseUri (dartbug.com/12612) |
125 const _mainSuffix = """ | 125 const _mainSuffix = """ |
126 ], currentMirrorSystem().isolate.rootLibrary.uri.toString()); | 126 ], currentMirrorSystem().isolate.rootLibrary.uri.toString()); |
127 } | 127 } |
128 """; | 128 """; |
OLD | NEW |