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

Issue 14914007: Add a "pub deploy" command. (Closed)

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

Description

Patch Set 1 #

Total comments: 11

Patch Set 2 : Code review changes #

Total comments: 26

Patch Set 3 : Code review chagnes #

Total comments: 40

Patch Set 4 : Code review changes. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+582 lines, -49 lines) Patch
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_deploy.dart View 1 2 3 1 chunk +141 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command_lish.dart View 1 chunk +0 lines, -33 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/dart.dart View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/entrypoint.dart View 1 2 chunks +40 lines, -0 lines 2 comments Download
M sdk/lib/_internal/pub/lib/src/io.dart View 1 chunk +16 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 3 chunks +30 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/command_line_config.dart View 1 chunk +8 lines, -16 lines 0 comments Download
A sdk/lib/_internal/pub/test/deploy/compiles_dart_entrypoints_to_dart_and_js.dart View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/deploy/copies_dart_js_next_to_entrypoints.dart View 1 chunk +76 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/deploy/copies_non_dart_files_to_deploy.dart View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/deploy/ignores_non_entrypoint_dart_files.dart View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/deploy/reports_dart_parse_errors.dart View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/deploy/with_no_web_directory.dart View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
nweiz
7 years, 7 months ago (2013-05-09 21:14:17 UTC) #1
Andrei Mouravski
Will review more later today after a few errands. https://codereview.chromium.org/14914007/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/14914007/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode227 sdk/lib/_internal/pub/lib/src/entrypoint.dart:227: ...
7 years, 7 months ago (2013-05-10 16:19:57 UTC) #2
nweiz
https://codereview.chromium.org/14914007/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/14914007/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode227 sdk/lib/_internal/pub/lib/src/entrypoint.dart:227: /// Returns a list of files that are considered ...
7 years, 7 months ago (2013-05-10 19:12:55 UTC) #3
Andrei Mouravski
Some more to keep you going. https://codereview.chromium.org/14914007/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/14914007/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode227 sdk/lib/_internal/pub/lib/src/entrypoint.dart:227: /// Returns a ...
7 years, 7 months ago (2013-05-10 21:25:01 UTC) #4
Andrei Mouravski
Here you go. Fix and commit this puppy. That came out weird. https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/lib/src/command_deploy.dart File sdk/lib/_internal/pub/lib/src/command_deploy.dart ...
7 years, 7 months ago (2013-05-10 21:56:34 UTC) #5
Andrei Mouravski
https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/lib/src/command_deploy.dart File sdk/lib/_internal/pub/lib/src/command_deploy.dart (right): https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/lib/src/command_deploy.dart#newcode101 sdk/lib/_internal/pub/lib/src/command_deploy.dart:101: /// the deploy command. Please document that this should ...
7 years, 7 months ago (2013-05-10 22:25:01 UTC) #6
nweiz
https://codereview.chromium.org/14914007/diff/5001/sdk/lib/_internal/pub/lib/src/command_deploy.dart File sdk/lib/_internal/pub/lib/src/command_deploy.dart (right): https://codereview.chromium.org/14914007/diff/5001/sdk/lib/_internal/pub/lib/src/command_deploy.dart#newcode28 sdk/lib/_internal/pub/lib/src/command_deploy.dart:28: // TODO(nweiz): make these configurable. On 2013/05/10 21:25:01, Andrei ...
7 years, 7 months ago (2013-05-13 21:59:44 UTC) #7
Andrei Mouravski
lgtm https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/lib/src/command_deploy.dart File sdk/lib/_internal/pub/lib/src/command_deploy.dart (right): https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/lib/src/command_deploy.dart#newcode21 sdk/lib/_internal/pub/lib/src/command_deploy.dart:21: /// Handles the `deploy` pub command. You don't ...
7 years, 7 months ago (2013-05-13 22:40:32 UTC) #8
nweiz
Committed patchset #4 manually as r22656 (presubmit successful).
7 years, 7 months ago (2013-05-13 23:31:06 UTC) #9
nweiz
7 years, 7 months ago (2013-05-13 23:32:58 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/lib...
File sdk/lib/_internal/pub/lib/src/command_deploy.dart (right):

https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/lib...
sdk/lib/_internal/pub/lib/src/command_deploy.dart:21: /// Handles the `deploy`
pub command.
On 2013/05/13 22:40:33, Andrei Mouravski wrote:
> You don't have to add much, and it might be valuable to put it into the
library
> docs:
> /// The deploy command compiles all Dart entrypoints in /web  /// into /deploy
> and copies all other files as well.
> /// Blah blah blah won't work if you have foo bar baz. 

The class itself includes as much information as "pub help deploy". If more
information needs to be made available, it should be done in a user-visible way
as well.

https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/tes...
File sdk/lib/_internal/pub/test/deploy/copies_non_dart_files_to_deploy.dart
(right):

https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/tes...
sdk/lib/_internal/pub/test/deploy/copies_non_dart_files_to_deploy.dart:21:
d.file('subfile.txt', 'subcontents')
On 2013/05/13 22:40:33, Andrei Mouravski wrote:
> And wouldn't it be nice to have a test that proves that in perpetuity? :P

It's not possible to add tests for all possible permutations of behavior, nor
would it be a good idea.

https://codereview.chromium.org/14914007/diff/18002/sdk/lib/_internal/pub/tes...
sdk/lib/_internal/pub/test/deploy/copies_non_dart_files_to_deploy.dart:29:
Copying   web/ => deploy/
On 2013/05/13 22:40:33, Andrei Mouravski wrote:
> But verbose will print all files that are being printed, right?

Do you mean "being copied"? Yes, it will.

https://codereview.chromium.org/14914007/diff/30001/sdk/lib/_internal/pub/lib...
File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right):

https://codereview.chromium.org/14914007/diff/30001/sdk/lib/_internal/pub/lib...
sdk/lib/_internal/pub/lib/src/entrypoint.dart:233: Future<List<String>>
packageFiles({String beneath}) {
On 2013/05/13 22:40:33, Andrei Mouravski wrote:
> Do you have a test for the .gitignore bit?

Actually, no; prior to this, we only ran this code for "pub lish", and we were
unable to verify it there for tangential reasons. This would be a good candidate
for a unit test.

I'll add a TODO for this.

Powered by Google App Engine
This is Rietveld 408576698