-
Notifications
You must be signed in to change notification settings - Fork 82
Example of hoisting devtools dependency #1303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
465c174
fa1c6f9
e53485c
b7a8686
930c305
e431d58
2c1e79b
688169a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
import 'dart:io'; | ||
|
||
import 'package:devtools_server/devtools_server.dart'; | ||
typedef DevtoolsLauncher = Future<DevTools> Function(String hostname); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Won't this still require a dependency on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this is just the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah my mistake. We'll want to model this as a breaking change so we need a pubspec and changelog update. But otherwise LGTM. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do, thanks! |
||
|
||
/// A server for Dart Devtools. | ||
class DevTools { | ||
|
@@ -19,13 +19,7 @@ class DevTools { | |
/// All subsequent calls to [close] will return this future. | ||
Future<void> _closed; | ||
|
||
DevTools._(this.hostname, this.port, this._server); | ||
DevTools(this.hostname, this.port, this._server); | ||
|
||
Future<void> close() => _closed ??= _server.close(); | ||
|
||
static Future<DevTools> start(String hostname) async { | ||
var server = | ||
await serveDevTools(hostname: hostname, enableStdinCommands: false); | ||
return DevTools._(server.address.host, server.port, server); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ environment: | |
|
||
dependencies: | ||
file: ^6.0.0 | ||
usage: ^4.0.0 | ||
dwds: | ||
path: ../dwds |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: webdev | ||
# Every time this changes you need to run `pub run build_runner build`. | ||
version: 2.7.2 | ||
version: 2.7.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this is a non breaking change for webdev, but I'm not sure if this is a minor or patch version bump There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor should be fine. |
||
# We should not depend on a dev SDK before publishing. | ||
# publish_to: none | ||
homepage: https://github.com/dart-lang/webdev | ||
|
@@ -18,7 +18,7 @@ dependencies: | |
browser_launcher: ^0.1.5 | ||
crypto: ^3.0.0 | ||
dds: ^1.4.1 | ||
dwds: ^10.0.0 | ||
dwds: ^11.0.0 | ||
http: ^0.13.0 | ||
http_multi_server: ^3.0.0 | ||
io: ^0.3.2+1 | ||
|
@@ -36,6 +36,9 @@ dependencies: | |
vm_service: '>=3.0.0 <7.0.0' | ||
webkit_inspection_protocol: '>=0.4.0 <2.0.0' | ||
yaml: ^3.0.0 | ||
# devtools_server indirectly depends on devtools so keep this around. | ||
devtools: ^2.0.0 | ||
devtools_server: ^2.0.0 | ||
|
||
dev_dependencies: | ||
build: ^2.0.0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wasn't version solving locally