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

Issue 1136503002: Create wrapper script around mojom's generate.dart in the Sky package. (Closed)

Created:
5 years, 7 months ago by blundell
Modified:
5 years, 7 months ago
CC:
abarth-chromium, gregsimon, mojo-reviews_chromium.org, ojan, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Create wrapper script around mojom's generate.dart in the Sky package. This CL does the following: - Moves mojom's generate.dart from bin/ to lib/ to make it available for use by a wrapper scripts in the Sky package, thus avoiding all consumers of Sky needing to directly depend on mojom to be able to call "pub run mojom:generate". - Adds a sky->mojom pub dependency and creates a wrapper script around mojom's generate.dart in the Sky package. - Augments the Sky README to explain the usage of this script. R=eseidel@chromium.org, sethladd@google.com Committed: https://chromium.googlesource.com/external/mojo/+/98a4e78b2fa205d0c5065d03e293d2552e0ee098

Patch Set 1 #

Total comments: 3

Patch Set 2 : Create Sky wrapper script #

Total comments: 8

Patch Set 3 : Response to review #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -145 lines) Patch
M .gitignore View 1 2 chunks +8 lines, -1 line 0 comments Download
M mojo/dart/mojom/README.md View 1 1 chunk +2 lines, -2 lines 0 comments Download
D mojo/dart/mojom/bin/generate.dart View 1 1 chunk +0 lines, -135 lines 0 comments Download
M mojo/dart/mojom/lib/README.md View 1 1 chunk +2 lines, -5 lines 0 comments Download
A + mojo/dart/mojom/lib/generate.dart View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M mojo/dart/mojom/pubspec.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/sdk/README.md View 1 1 chunk +4 lines, -2 lines 0 comments Download
A sky/sdk/packages/sky/bin/init.dart View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M sky/sdk/packages/sky/pubspec.yaml View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (3 generated)
blundell
Hi Eric, I tested this out by deploying the Sky SDK locally and creating a ...
5 years, 7 months ago (2015-05-07 14:03:59 UTC) #1
eseidel
Why not make the mojo package depend on the mojom package? Or the Sky package ...
5 years, 7 months ago (2015-05-07 17:55:08 UTC) #2
eseidel
https://codereview.chromium.org/1136503002/diff/1/sky/sdk/README.md File sky/sdk/README.md (right): https://codereview.chromium.org/1136503002/diff/1/sky/sdk/README.md#newcode39 sky/sdk/README.md:39: mojom: '>=0.0.3 <1.0.0' Other than this line, the change ...
5 years, 7 months ago (2015-05-07 17:55:33 UTC) #3
blundell
https://codereview.chromium.org/1136503002/diff/1/sky/sdk/README.md File sky/sdk/README.md (right): https://codereview.chromium.org/1136503002/diff/1/sky/sdk/README.md#newcode39 sky/sdk/README.md:39: mojom: '>=0.0.3 <1.0.0' On 2015/05/07 17:55:33, eseidel wrote: > ...
5 years, 7 months ago (2015-05-07 18:38:47 UTC) #4
eseidel
Maybe we should have a 2 line wrapper in Sky then? It seems silly to ...
5 years, 7 months ago (2015-05-07 18:43:38 UTC) #5
blundell
Hi Ivan/Seth, What's the recommended approach here? We'd like to have consumers of Sky be ...
5 years, 7 months ago (2015-05-11 14:57:21 UTC) #7
sethladd
https://codereview.chromium.org/1136503002/diff/1/sky/sdk/README.md File sky/sdk/README.md (right): https://codereview.chromium.org/1136503002/diff/1/sky/sdk/README.md#newcode39 sky/sdk/README.md:39: mojom: '>=0.0.3 <1.0.0' If you want to run a ...
5 years, 7 months ago (2015-05-11 16:38:02 UTC) #8
sethladd
Can Sky depend on the mojom package?
5 years, 7 months ago (2015-05-11 16:38:55 UTC) #9
sethladd
5 years, 7 months ago (2015-05-11 16:39:02 UTC) #10
blundell
On 2015/05/11 16:38:55, sethladd wrote: > Can Sky depend on the mojom package? Yes.
5 years, 7 months ago (2015-05-11 18:47:34 UTC) #11
blundell
On 2015/05/11 18:47:34, blundell wrote: > On 2015/05/11 16:38:55, sethladd wrote: > > Can Sky ...
5 years, 7 months ago (2015-05-11 18:50:10 UTC) #12
eseidel
A pub run executable which just called pub run again? Not sure. Presumably there is ...
5 years, 7 months ago (2015-05-11 19:36:56 UTC) #13
sethladd
Unfortunately, pub doesn't have an API. You just interact with Pub via command-line actions. If ...
5 years, 7 months ago (2015-05-11 19:42:05 UTC) #14
blundell
On 2015/05/11 19:42:05, sethladd wrote: > Unfortunately, pub doesn't have an API. You just interact ...
5 years, 7 months ago (2015-05-11 19:43:27 UTC) #15
sethladd
On 2015/05/11 19:43:27, blundell wrote: > On 2015/05/11 19:42:05, sethladd wrote: > > Unfortunately, pub ...
5 years, 7 months ago (2015-05-11 19:45:11 UTC) #16
blundell
Thanks for the offline discussion, Seth. It occurred to me this morning that wrapping the ...
5 years, 7 months ago (2015-05-12 15:02:29 UTC) #19
eseidel
lgtm
5 years, 7 months ago (2015-05-12 15:34:38 UTC) #20
sethladd
https://codereview.chromium.org/1136503002/diff/60001/sky/sdk/packages/sky/bin/init.dart File sky/sdk/packages/sky/bin/init.dart (right): https://codereview.chromium.org/1136503002/diff/60001/sky/sdk/packages/sky/bin/init.dart#newcode11 sky/sdk/packages/sky/bin/init.dart:11: import 'dart:async'; you can remove this import https://codereview.chromium.org/1136503002/diff/60001/sky/sdk/packages/sky/bin/init.dart#newcode14 sky/sdk/packages/sky/bin/init.dart:14: ...
5 years, 7 months ago (2015-05-12 15:49:05 UTC) #21
blundell
https://codereview.chromium.org/1136503002/diff/60001/sky/sdk/packages/sky/bin/init.dart File sky/sdk/packages/sky/bin/init.dart (right): https://codereview.chromium.org/1136503002/diff/60001/sky/sdk/packages/sky/bin/init.dart#newcode11 sky/sdk/packages/sky/bin/init.dart:11: import 'dart:async'; On 2015/05/12 15:49:05, sethladd wrote: > you ...
5 years, 7 months ago (2015-05-12 15:53:17 UTC) #22
sethladd
lgtm! (assuming the script works :)
5 years, 7 months ago (2015-05-12 15:55:04 UTC) #23
blundell
5 years, 7 months ago (2015-05-13 09:48:54 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:100001) manually as
98a4e78b2fa205d0c5065d03e293d2552e0ee098 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698