Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Issue 20204003: First stab at a dev server in pub using barback. (Closed)

Created:
7 years, 5 months ago by Bob Nystrom
Modified:
7 years, 4 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

First stab at a dev server in pub using barback. R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=25600

Patch Set 1 #

Total comments: 79

Patch Set 2 : Revise. #

Total comments: 9

Patch Set 3 : Revise. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+840 lines, -33 lines) Patch
M pkg/barback/lib/barback.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/barback/lib/src/asset_cascade.dart View 1 chunk +2 lines, -0 lines 0 comments Download
A pkg/barback/lib/src/barback.dart View 1 1 chunk +85 lines, -0 lines 0 comments Download
M pkg/barback/lib/src/package_provider.dart View 1 1 chunk +0 lines, -8 lines 0 comments Download
M pkg/path/lib/path.dart View 1 2 3 chunks +36 lines, -14 lines 2 comments Download
M pkg/path/test/browser_test.dart View 1 2 1 chunk +13 lines, -4 lines 0 comments Download
M pkg/path/test/io_test.dart View 1 2 1 chunk +16 lines, -7 lines 0 comments Download
M pkg/path/test/path_test.dart View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command.dart View 2 chunks +2 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/command/serve.dart View 1 2 1 chunk +159 lines, -0 lines 2 comments Download
A sdk/lib/_internal/pub/lib/src/pub_package_provider.dart View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/source.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/source/path.dart View 1 1 chunk +7 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/pub_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/invalid_urls_test.dart View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/missing_dependency_file_test.dart View 1 1 chunk +34 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/missing_file_test.dart View 1 1 chunk +28 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/serve_from_app_asset_test.dart View 1 1 chunk +35 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/serve_from_app_lib_test.dart View 1 1 chunk +35 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/serve_from_app_web_test.dart View 1 1 chunk +35 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/serve_from_dependency_asset_test.dart View 1 1 chunk +42 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/serve_from_dependency_lib_test.dart View 1 1 chunk +42 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/unknown_dependency_test.dart View 1 1 chunk +27 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/utils.dart View 1 2 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Bob Nystrom
Very bare bones, but it's a start. It handles locating assets and libraries in the ...
7 years, 5 months ago (2013-07-25 00:23:33 UTC) #1
nweiz
This needs tests for 404s in packages and assets directories, especially with odd paths like ...
7 years, 5 months ago (2013-07-25 22:58:58 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/20204003/diff/1/pkg/barback/lib/src/barback.dart File pkg/barback/lib/src/barback.dart (right): https://codereview.chromium.org/20204003/diff/1/pkg/barback/lib/src/barback.dart#newcode15 pkg/barback/lib/src/barback.dart:15: /// A general purpose asynchronous build dependency graph ...
7 years, 4 months ago (2013-07-26 20:20:11 UTC) #3
nweiz
https://codereview.chromium.org/20204003/diff/1/sdk/lib/_internal/pub/lib/src/command/serve.dart File sdk/lib/_internal/pub/lib/src/command/serve.dart (right): https://codereview.chromium.org/20204003/diff/1/sdk/lib/_internal/pub/lib/src/command/serve.dart#newcode46 sdk/lib/_internal/pub/lib/src/command/serve.dart:46: barback.results.listen((result) { On 2013/07/26 20:20:11, Bob Nystrom wrote: > ...
7 years, 4 months ago (2013-07-29 20:23:14 UTC) #4
Bob Nystrom
Thanks! https://codereview.chromium.org/20204003/diff/1/sdk/lib/_internal/pub/lib/src/command/serve.dart File sdk/lib/_internal/pub/lib/src/command/serve.dart (right): https://codereview.chromium.org/20204003/diff/1/sdk/lib/_internal/pub/lib/src/command/serve.dart#newcode46 sdk/lib/_internal/pub/lib/src/command/serve.dart:46: barback.results.listen((result) { On 2013/07/29 20:23:14, nweiz wrote: > ...
7 years, 4 months ago (2013-07-29 21:45:43 UTC) #5
nweiz
A couple comments, otherwise lgtm. https://codereview.chromium.org/20204003/diff/34001/pkg/path/lib/path.dart File pkg/path/lib/path.dart (right): https://codereview.chromium.org/20204003/diff/34001/pkg/path/lib/path.dart#newcode386 pkg/path/lib/path.dart:386: /// [root] is omitted, ...
7 years, 4 months ago (2013-07-29 23:54:44 UTC) #6
Bob Nystrom
Committed patchset #3 manually as r25600 (presubmit successful).
7 years, 4 months ago (2013-07-30 00:45:10 UTC) #7
Bob Nystrom
7 years, 4 months ago (2013-07-30 01:04:27 UTC) #8
Message was sent while issue was closed.
Thanks!

https://codereview.chromium.org/20204003/diff/34001/pkg/path/lib/path.dart
File pkg/path/lib/path.dart (right):

https://codereview.chromium.org/20204003/diff/34001/pkg/path/lib/path.dart#ne...
pkg/path/lib/path.dart:386: /// [root] is omitted, it defaults ".". If *both*
[style] and [root] are
On 2013/07/29 23:54:44, nweiz wrote:
> "If [root] is omitted" -> "If only [root] is omitted".

Done.

https://codereview.chromium.org/20204003/diff/34001/sdk/lib/_internal/pub/lib...
File sdk/lib/_internal/pub/lib/src/command/serve.dart (right):

https://codereview.chromium.org/20204003/diff/34001/sdk/lib/_internal/pub/lib...
sdk/lib/_internal/pub/lib/src/command/serve.dart:90: });
On 2013/07/29 23:54:44, nweiz wrote:
> If we're not doing the 500 thing for errors coming off this, at least add a
TODO
> to do so. If the filesystem goes briefly pear-shaped, we don't want that to
> crash the server.

Done.

Powered by Google App Engine
This is Rietveld 408576698