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 library pub.pub_package_provider; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:io'; | 6 import 'dart:io'; |
9 | 7 |
10 import 'package:barback/barback.dart'; | 8 import 'package:barback/barback.dart'; |
11 import 'package:path/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
12 | 10 |
13 import '../io.dart'; | 11 import '../io.dart'; |
14 import '../package_graph.dart'; | 12 import '../package_graph.dart'; |
15 import '../preprocess.dart'; | 13 import '../preprocess.dart'; |
16 import '../sdk.dart' as sdk; | 14 import '../sdk.dart' as sdk; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } else { | 150 } else { |
153 var package = _graph.packages[packageName]; | 151 var package = _graph.packages[packageName]; |
154 return new Stream.fromIterable( | 152 return new Stream.fromIterable( |
155 package.listFiles(beneath: 'lib').map((file) { | 153 package.listFiles(beneath: 'lib').map((file) { |
156 return new AssetId(packageName, | 154 return new AssetId(packageName, |
157 path.toUri(package.relative(file)).toString()); | 155 path.toUri(package.relative(file)).toString()); |
158 })); | 156 })); |
159 } | 157 } |
160 } | 158 } |
161 } | 159 } |
OLD | NEW |