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

Issue 26933003: Make pub build use barback. (Closed)

Created:
7 years, 2 months ago by Bob Nystrom
Modified:
7 years, 1 month ago
Reviewers:
nweiz, Alan Knight
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make pub build use barback. BUG=https://code.google.com/p/dart/issues/detail?id=13880

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 2

Patch Set 3 : Fix merge issue. #

Patch Set 4 : Fix merge issue. #

Patch Set 5 : Reword doc comment. #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -180 lines) Patch
M pkg/barback/lib/src/asset_cascade.dart View 1 2 chunks +5 lines, -2 lines 0 comments Download
M pkg/barback/lib/src/build_result.dart View 1 2 1 chunk +10 lines, -9 lines 0 comments Download
M pkg/barback/lib/src/package_graph.dart View 1 2 chunks +5 lines, -11 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback.dart View 1 1 chunk +49 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart View 1 2 chunks +8 lines, -0 lines 2 comments Download
M sdk/lib/_internal/pub/lib/src/command/build.dart View 1 2 3 4 2 chunks +79 lines, -94 lines 6 comments Download
M sdk/lib/_internal/pub/lib/src/command/serve.dart View 1 2 chunks +1 line, -21 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/entrypoint.dart View 1 chunk +20 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/compiles_dart_entrypoints_to_dart_and_js_test.dart View 4 chunks +7 lines, -11 lines 4 comments Download
M sdk/lib/_internal/pub/test/build/copies_browser_js_next_to_entrypoints_test.dart View 2 chunks +2 lines, -15 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/copies_non_dart_files_to_build_test.dart View 2 chunks +1 line, -6 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/ignores_non_entrypoint_dart_files_test.dart View 1 chunk +1 line, -4 lines 0 comments Download
A sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_test.dart View 1 chunk +55 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/reports_dart_parse_errors_test.dart View 2 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Bob Nystrom
Alan, Nathan is working on SASS stuff this week. Is there any chance you can ...
7 years, 2 months ago (2013-10-10 22:16:05 UTC) #1
Bob Nystrom
Rebased now. It's all yours! - bob
7 years, 2 months ago (2013-10-11 00:02:54 UTC) #2
Alan Knight
lgtm https://codereview.chromium.org/26933003/diff/4001/sdk/lib/_internal/pub/lib/src/command/build.dart File sdk/lib/_internal/pub/lib/src/command/build.dart (right): https://codereview.chromium.org/26933003/diff/4001/sdk/lib/_internal/pub/lib/src/command/build.dart#newcode94 sdk/lib/_internal/pub/lib/src/command/build.dart:94: /// If this package depends non-transitively on the ...
7 years, 2 months ago (2013-10-11 00:24:59 UTC) #3
Bob Nystrom
Thanks! https://codereview.chromium.org/26933003/diff/4001/sdk/lib/_internal/pub/lib/src/command/build.dart File sdk/lib/_internal/pub/lib/src/command/build.dart (right): https://codereview.chromium.org/26933003/diff/4001/sdk/lib/_internal/pub/lib/src/command/build.dart#newcode94 sdk/lib/_internal/pub/lib/src/command/build.dart:94: /// If this package depends non-transitively on the ...
7 years, 2 months ago (2013-10-11 01:00:15 UTC) #4
Bob Nystrom
On 2013/10/11 01:00:15, Bob Nystrom wrote: > Thanks! > > https://codereview.chromium.org/26933003/diff/4001/sdk/lib/_internal/pub/lib/src/command/build.dart > File sdk/lib/_internal/pub/lib/src/command/build.dart (right): ...
7 years, 2 months ago (2013-10-11 16:53:00 UTC) #5
nweiz
https://codereview.chromium.org/26933003/diff/14001/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart File sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart (right): https://codereview.chromium.org/26933003/diff/14001/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart#newcode31 sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart:31: // TODO(rnystrom): Do something cleaner for this, or eliminate ...
7 years, 2 months ago (2013-10-16 21:40:21 UTC) #6
Bob Nystrom
Thanks! Revised here: https://codereview.chromium.org/48833007/ https://codereview.chromium.org/26933003/diff/14001/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart File sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart (right): https://codereview.chromium.org/26933003/diff/14001/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart#newcode31 sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart:31: // TODO(rnystrom): Do something cleaner ...
7 years, 1 month ago (2013-10-29 00:03:30 UTC) #7
nweiz
https://codereview.chromium.org/26933003/diff/14001/sdk/lib/_internal/pub/lib/src/command/build.dart File sdk/lib/_internal/pub/lib/src/command/build.dart (right): https://codereview.chromium.org/26933003/diff/14001/sdk/lib/_internal/pub/lib/src/command/build.dart#newcode69 sdk/lib/_internal/pub/lib/src/command/build.dart:69: return Future.forEach(assets, (asset) { On 2013/10/29 00:03:30, Bob Nystrom ...
7 years, 1 month ago (2013-10-29 00:48:55 UTC) #8
Bob Nystrom
7 years, 1 month ago (2013-10-29 19:39:39 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/26933003/diff/14001/sdk/lib/_internal/pub/lib...
File sdk/lib/_internal/pub/lib/src/command/build.dart (right):

https://codereview.chromium.org/26933003/diff/14001/sdk/lib/_internal/pub/lib...
sdk/lib/_internal/pub/lib/src/command/build.dart:69: return
Future.forEach(assets, (asset) {
On 2013/10/29 00:48:56, nweiz wrote:
> On 2013/10/29 00:03:30, Bob Nystrom wrote:
> > On 2013/10/16 21:40:22, nweiz wrote:
> > > Why are we doing these sequentially rather than in parallel?
> > 
> > It doesn't matter much right now. The original code did, mainly to keep the
> > output deterministic, I think.
> > 
> > The output here could definitely be improved so when/if that happens, we'll
> > probably want this to be sequential then too.
> 
> It's only deterministic inasmuch as the return value of [barback.getAllAssets]
> is deterministic, which it isn't. I think we should make this [Future.wait]
for
> now so it doesn't appear to be doing something important that it's not
actually
> doing.

Done.

Powered by Google App Engine
This is Rietveld 408576698