OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Transformer used for pub serve and pub build | 5 /// Transformer used for pub serve and pub build |
6 library web_components.build.web_components; | 6 library web_components.build.web_components; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
10 import 'package:code_transformers/assets.dart'; | 10 import 'package:code_transformers/assets.dart'; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 from: path.url.dirname(primaryInput.id.path)); | 88 from: path.url.dirname(primaryInput.id.path)); |
89 | 89 |
90 // Output the new document and bootstrap file. | 90 // Output the new document and bootstrap file. |
91 transform | 91 transform |
92 .addOutput(new Asset.fromString(primaryInput.id, doc.outerHtml)); | 92 .addOutput(new Asset.fromString(primaryInput.id, doc.outerHtml)); |
93 transform.addOutput(bootstrap); | 93 transform.addOutput(bootstrap); |
94 }); | 94 }); |
95 }); | 95 }); |
96 } | 96 } |
97 } | 97 } |
OLD | NEW |