-
Notifications
You must be signed in to change notification settings - Fork 220
Add simple live-reload implementation #1703
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0c3d126
Add live-reload option
samogot 867252e
Add server-side WebSocket handler to inform clients about build state
samogot c18faa2
Implement simple live reloading on client side
samogot abe6af9
Reformat changes
samogot 60890f4
Fix review comments
samogot f114ee5
Update pubspec.yaml, CHANGELOG.md and README.md
samogot 12ceef4
Merge remote-tracking branch 'origin/master' into live-reload
samogot 716ddcd
Move WebSocket client injection from build_web_compilers to build_runner
samogot 03569c5
Add tests
samogot 7374c99
Add more tests and reformat
samogot 6a581ec
Improve tests
samogot 86ecfc8
Last nit comments
samogot 3c03e19
Update the version of build_web_compilers
samogot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| ## 0.10.1-dev | ||
|
|
||
| - Added `--live-reload` cli option and appropriate functionality | ||
|
|
||
| ## 0.10.0 | ||
|
|
||
| ### Breaking Changes | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| name: build_runner | ||
| version: 0.10.0 | ||
| version: 0.10.1-dev | ||
| description: Tools to write binaries that run builders. | ||
| author: Dart Team <[email protected]> | ||
| homepage: https://github.com/dart-lang/build/tree/master/build_runner | ||
|
|
@@ -34,9 +34,11 @@ dependencies: | |
| pub_semver: ^1.4.0 | ||
| pubspec_parse: ^0.1.0 | ||
| shelf: ">=0.6.5 <0.8.0" | ||
| shelf_web_socket: ^0.2.2+3 | ||
| stack_trace: ^1.9.0 | ||
| stream_transform: ^0.0.9 | ||
| watcher: ^0.9.7 | ||
| web_socket_channel: ^1.0.9 | ||
| yaml: ^2.1.0 | ||
|
|
||
| dev_dependencies: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
we're getting a little inconsistent about
new(easy to do since the Analyzer no longer requires it)@jakemac53 - should we
dartfmt --fixand be done with it or should we find all of these and add back in thenew?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.
I am in favor of just doing a
dartfmt --fix, but can we also enable a lint then to make us not introduce any morenewkeywords?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.
yes we could add
unnecessary_newandunnecessary_constto avoid regressions.