| 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.command.deploy; | 5 library pub.command.deploy; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:math' as math; | 8 import 'dart:math' as math; |
| 9 | 9 |
| 10 import 'package:analyzer_experimental/analyzer.dart'; | 10 import 'package:analyzer_experimental/analyzer.dart'; |
| 11 import 'package:pathos/path.dart' as path; | 11 import 'package:path/path.dart' as path; |
| 12 | 12 |
| 13 import '../command.dart'; | 13 import '../command.dart'; |
| 14 import '../dart.dart' as dart; | 14 import '../dart.dart' as dart; |
| 15 import '../io.dart'; | 15 import '../io.dart'; |
| 16 import '../log.dart' as log; | 16 import '../log.dart' as log; |
| 17 import '../utils.dart'; | 17 import '../utils.dart'; |
| 18 | 18 |
| 19 final _arrow = getSpecial('\u2192', '=>'); | 19 final _arrow = getSpecial('\u2192', '=>'); |
| 20 | 20 |
| 21 /// Handles the `deploy` pub command. | 21 /// Handles the `deploy` pub command. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 135 } |
| 136 | 136 |
| 137 /// Whether we should copy the browser package's JS files into the deployed | 137 /// Whether we should copy the browser package's JS files into the deployed |
| 138 /// app. | 138 /// app. |
| 139 bool get _shouldAddBrowserJs { | 139 bool get _shouldAddBrowserJs { |
| 140 return !_entrypoints.isEmpty && | 140 return !_entrypoints.isEmpty && |
| 141 entrypoint.root.dependencies.any((dep) => | 141 entrypoint.root.dependencies.any((dep) => |
| 142 dep.name == 'browser' && dep.source == 'hosted'); | 142 dep.name == 'browser' && dep.source == 'hosted'); |
| 143 } | 143 } |
| 144 } | 144 } |
| OLD | NEW |