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

Issue 47793003: Control whether pub build and serve minify or not. (Closed)

Created:
7 years, 1 month ago by Bob Nystrom
Modified:
7 years, 1 month ago
CC:
reviews_dartlang.org, Siggi Cherem (dart-lang)
Visibility:
Public.

Description

Control whether pub build and serve minify or not. BUG=https://code.google.com/p/dart/issues/detail?id=14539 R=nweiz@google.com, sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=29502

Patch Set 1 #

Total comments: 8

Patch Set 2 : Revise. #

Messages

Total messages: 6 (0 generated)
Bob Nystrom
By default, pub build will generate minified JS and pub serve will generate unminified. You ...
7 years, 1 month ago (2013-10-29 22:54:21 UTC) #1
Siggi Cherem (dart-lang)
nice lgtm
7 years, 1 month ago (2013-10-29 22:57:39 UTC) #2
nweiz
https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/lib/src/command/build.dart File sdk/lib/_internal/pub/lib/src/command/build.dart (right): https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/lib/src/command/build.dart#newcode95 sdk/lib/_internal/pub/lib/src/command/build.dart:95: var s = assets.length == 1 ? "" : ...
7 years, 1 month ago (2013-10-29 23:18:52 UTC) #3
nweiz
Forgot to say: LGTM with a few comments.
7 years, 1 month ago (2013-10-29 23:19:14 UTC) #4
Bob Nystrom
Committed patchset #2 manually as r29502 (presubmit successful).
7 years, 1 month ago (2013-10-29 23:53:00 UTC) #5
Bob Nystrom
7 years, 1 month ago (2013-10-29 23:53:24 UTC) #6
Message was sent while issue was closed.
Thanks!

https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/lib/src...
File sdk/lib/_internal/pub/lib/src/command/build.dart (right):

https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/lib/src...
sdk/lib/_internal/pub/lib/src/command/build.dart:95: var s = assets.length == 1
? "" : "s";
On 2013/10/29 23:18:53, nweiz wrote:
> There's a [pluralize] function in utils.dart.

Done.

https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/lib/src...
File sdk/lib/_internal/pub/lib/src/dart.dart (right):

https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/lib/src...
sdk/lib/_internal/pub/lib/src/dart.dart:38: compiler.DiagnosticHandler
diagnosticHandler}) {
On 2013/10/29 23:18:53, nweiz wrote:
> What are the criteria for whether a set or parameters gets split one per line
or
> not?

Good question. I pulled the trigger here because it was starting to look nasty
to me at this point. I don't have a precise guideline.

https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/test/bu...
File
sdk/lib/_internal/pub/test/build/takes_flag_to_disable_minification_test.dart
(right):

https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/test/bu...
sdk/lib/_internal/pub/test/build/takes_flag_to_disable_minification_test.dart:13:
integration("generates minified JavaScript", () {
On 2013/10/29 23:18:53, nweiz wrote:
> Wrong test name.

Done.

https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/test/te...
File sdk/lib/_internal/pub/test/test_pub.dart (right):

https://codereview.chromium.org/47793003/diff/1/sdk/lib/_internal/pub/test/te...
sdk/lib/_internal/pub/test/test_pub.dart:65: Matcher minifiedDart2JSOutput =
On 2013/10/29 23:18:53, nweiz wrote:
> These should follow the matcher naming convention of being a verb phrase that
> describes the output that's matched. So in this case,
"isMinifiedDart2JSOutput".

Done.

Powered by Google App Engine
This is Rietveld 408576698