You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Andrew Grieve <ag...@chromium.org> on 2013/07/25 19:48:51 UTC

Google Team's Task Backlog: Plugman & CLI

We've done some planning around what we'd like to get done over the next
quarter, and so I thought I'd share.

This isn't to say that we'll be going and doing these things without
further discussion or proper JIRA issues. It also doesn't mean we will be
solely focused on this list, nor that we'll actually end up completing
everything on the list. Just that we *currently* think that these things
should get done.


 cordova-cli:

- "plugin rm --force" To remove a plugin that is depended on

   - Motive here is to be able to remove & re-add plugins in mobile-spec

- "project upgrade" To execute platform update scripts

   - E.g. to move from 3.0 -> 3.1, Grab the new CLI and run "cordova
platform upgrade android"

- Set platform & plugin sources & versions in config.xml, added by cordova
tool upon add

   - E.g. like: npm install --save

   - E.g. Support the setup of having plugins/ and platforms/ in your
.gitignore

- Purge lib/ from git history so the repo clones faster

- Make CLI fast (fix shelljs.exec problem)

- Have platforms specifying what default plugins they come with (e.g.
Android's App plugin)

- Make --verbose on by default

- Move config.xml to be a sibling of www/ (but still support having one in
www/ for backwards compat)

- Separate npm modules into "cordova" and "cordova-cli" (a la grunt)


cordova-plugman:

- Support some assets x-platform (e.g. icon, splashscreen)

- Change existing <merges> to do a shallow merge (aka, it's a collection of
clobbers)

- Add a version of <merges> that targets a module instead of a symbol

- Add support for specifying iOS Localizable.strings files

- Support for <engine> tag to specify which version of a plugin is
compatible with your version of cordova-core

Re: Google Team's Task Backlog: Plugman & CLI

Posted by Brian LeRoux <b...@brian.io>.
Should add that we on the Adobe side are just looking at hardening for
the moment. Would be nice to see a lighter bug tracker esp on the CLI
side. We can go into futuristic flavors when we do the Aug
call/meeting.


On Thu, Jul 25, 2013 at 2:01 PM, Brian LeRoux <b...@brian.io> wrote:
> Sounds great: thanks Andrew and Googlers!
>
> On Thu, Jul 25, 2013 at 1:48 PM, Andrew Grieve <ag...@chromium.org> wrote:
>> We've done some planning around what we'd like to get done over the next
>> quarter, and so I thought I'd share.
>>
>> This isn't to say that we'll be going and doing these things without
>> further discussion or proper JIRA issues. It also doesn't mean we will be
>> solely focused on this list, nor that we'll actually end up completing
>> everything on the list. Just that we *currently* think that these things
>> should get done.
>>
>>
>>  cordova-cli:
>>
>> - "plugin rm --force" To remove a plugin that is depended on
>>
>>    - Motive here is to be able to remove & re-add plugins in mobile-spec
>>
>> - "project upgrade" To execute platform update scripts
>>
>>    - E.g. to move from 3.0 -> 3.1, Grab the new CLI and run "cordova
>> platform upgrade android"
>>
>> - Set platform & plugin sources & versions in config.xml, added by cordova
>> tool upon add
>>
>>    - E.g. like: npm install --save
>>
>>    - E.g. Support the setup of having plugins/ and platforms/ in your
>> .gitignore
>>
>> - Purge lib/ from git history so the repo clones faster
>>
>> - Make CLI fast (fix shelljs.exec problem)
>>
>> - Have platforms specifying what default plugins they come with (e.g.
>> Android's App plugin)
>>
>> - Make --verbose on by default
>>
>> - Move config.xml to be a sibling of www/ (but still support having one in
>> www/ for backwards compat)
>>
>> - Separate npm modules into "cordova" and "cordova-cli" (a la grunt)
>>
>>
>> cordova-plugman:
>>
>> - Support some assets x-platform (e.g. icon, splashscreen)
>>
>> - Change existing <merges> to do a shallow merge (aka, it's a collection of
>> clobbers)
>>
>> - Add a version of <merges> that targets a module instead of a symbol
>>
>> - Add support for specifying iOS Localizable.strings files
>>
>> - Support for <engine> tag to specify which version of a plugin is
>> compatible with your version of cordova-core

Re: Google Team's Task Backlog: Plugman & CLI

Posted by Brian LeRoux <b...@brian.io>.
Sounds great: thanks Andrew and Googlers!

On Thu, Jul 25, 2013 at 1:48 PM, Andrew Grieve <ag...@chromium.org> wrote:
> We've done some planning around what we'd like to get done over the next
> quarter, and so I thought I'd share.
>
> This isn't to say that we'll be going and doing these things without
> further discussion or proper JIRA issues. It also doesn't mean we will be
> solely focused on this list, nor that we'll actually end up completing
> everything on the list. Just that we *currently* think that these things
> should get done.
>
>
>  cordova-cli:
>
> - "plugin rm --force" To remove a plugin that is depended on
>
>    - Motive here is to be able to remove & re-add plugins in mobile-spec
>
> - "project upgrade" To execute platform update scripts
>
>    - E.g. to move from 3.0 -> 3.1, Grab the new CLI and run "cordova
> platform upgrade android"
>
> - Set platform & plugin sources & versions in config.xml, added by cordova
> tool upon add
>
>    - E.g. like: npm install --save
>
>    - E.g. Support the setup of having plugins/ and platforms/ in your
> .gitignore
>
> - Purge lib/ from git history so the repo clones faster
>
> - Make CLI fast (fix shelljs.exec problem)
>
> - Have platforms specifying what default plugins they come with (e.g.
> Android's App plugin)
>
> - Make --verbose on by default
>
> - Move config.xml to be a sibling of www/ (but still support having one in
> www/ for backwards compat)
>
> - Separate npm modules into "cordova" and "cordova-cli" (a la grunt)
>
>
> cordova-plugman:
>
> - Support some assets x-platform (e.g. icon, splashscreen)
>
> - Change existing <merges> to do a shallow merge (aka, it's a collection of
> clobbers)
>
> - Add a version of <merges> that targets a module instead of a symbol
>
> - Add support for specifying iOS Localizable.strings files
>
> - Support for <engine> tag to specify which version of a plugin is
> compatible with your version of cordova-core

Re: Google Team's Task Backlog: Plugman & CLI

Posted by Andrew Grieve <ag...@chromium.org>.
Finally filed an issue for this:

https://issues.apache.org/jira/browse/CB-4624

Feel free to discuss implementation details within the issue.


On Tue, Jul 30, 2013 at 1:28 PM, Frank Hennig <fh...@gmail.com>wrote:

> No, not for .gitignore for the whole point "Set platform & plugin sources
> & versions in config.xml, added by cordova tool upon add"  including the
> feature to save the platform and plugin dependencies. "E.g like npm install
> --save"
>
> On Jul 30, 2013, at 6:43 PM, Filip Maj wrote:
>
> >
> >>>    - E.g. Support the setup of having plugins/ and platforms/ in your
> >>> .gitignore
> >>
> >> Has someone created a feature branch in git for this feature meanwhile?
> >> I'm really interested in this feature. Actual we discuss in our company,
> >> to wait for this feature, or build our own solution.
> >> Has someone created a roadmap for this feature?
> >
> > For .gitignore? Yes, two related issues:
> >
> > - implement a .cordovaignore [1]
> > - provide a sample .gitignore with the cli [2]
> >
> > [1] https://issues.apache.org/jira/browse/CB-3383
> > [2] https://issues.apache.org/jira/browse/CB-4321
> >
>
>

Re: Google Team's Task Backlog: Plugman & CLI

Posted by Frank Hennig <fh...@gmail.com>.
No, not for .gitignore for the whole point "Set platform & plugin sources & versions in config.xml, added by cordova tool upon add"  including the feature to save the platform and plugin dependencies. "E.g like npm install --save" 

On Jul 30, 2013, at 6:43 PM, Filip Maj wrote:

> 
>>>    - E.g. Support the setup of having plugins/ and platforms/ in your
>>> .gitignore
>> 
>> Has someone created a feature branch in git for this feature meanwhile?
>> I'm really interested in this feature. Actual we discuss in our company,
>> to wait for this feature, or build our own solution.
>> Has someone created a roadmap for this feature?
> 
> For .gitignore? Yes, two related issues:
> 
> - implement a .cordovaignore [1]
> - provide a sample .gitignore with the cli [2]
> 
> [1] https://issues.apache.org/jira/browse/CB-3383
> [2] https://issues.apache.org/jira/browse/CB-4321
> 


Re: Google Team's Task Backlog: Plugman & CLI

Posted by Filip Maj <fi...@adobe.com>.
>>     - E.g. Support the setup of having plugins/ and platforms/ in your
>> .gitignore
>
>Has someone created a feature branch in git for this feature meanwhile?
>I'm really interested in this feature. Actual we discuss in our company,
>to wait for this feature, or build our own solution.
>Has someone created a roadmap for this feature?

For .gitignore? Yes, two related issues:

- implement a .cordovaignore [1]
- provide a sample .gitignore with the cli [2]

[1] https://issues.apache.org/jira/browse/CB-3383
[2] https://issues.apache.org/jira/browse/CB-4321


Re: Google Team's Task Backlog: Plugman & CLI

Posted by Frank Hennig <fh...@gmail.com>.
On 07/25/2013 07:48 PM, Andrew Grieve wrote:
> We've done some planning around what we'd like to get done over the next
> quarter, and so I thought I'd share.
>
> This isn't to say that we'll be going and doing these things without
> further discussion or proper JIRA issues. It also doesn't mean we will be
> solely focused on this list, nor that we'll actually end up completing
> everything on the list. Just that we *currently* think that these things
> should get done.
>
>
>   cordova-cli:
>
> - "plugin rm --force" To remove a plugin that is depended on
>
>     - Motive here is to be able to remove & re-add plugins in mobile-spec
>
> - "project upgrade" To execute platform update scripts
>
>     - E.g. to move from 3.0 -> 3.1, Grab the new CLI and run "cordova
> platform upgrade android"
>
> - Set platform & plugin sources & versions in config.xml, added by cordova
> tool upon add
>
>     - E.g. like: npm install --save
>
>     - E.g. Support the setup of having plugins/ and platforms/ in your
> .gitignore

Has someone created a feature branch in git for this feature meanwhile? 
I'm really interested in this feature. Actual we discuss in our company, 
to wait for this feature, or build our own solution.
Has someone created a roadmap for this feature?


>
> - Purge lib/ from git history so the repo clones faster
>
> - Make CLI fast (fix shelljs.exec problem)
>
> - Have platforms specifying what default plugins they come with (e.g.
> Android's App plugin)
>
> - Make --verbose on by default
>
> - Move config.xml to be a sibling of www/ (but still support having one in
> www/ for backwards compat)
>
> - Separate npm modules into "cordova" and "cordova-cli" (a la grunt)
>
>
> cordova-plugman:
>
> - Support some assets x-platform (e.g. icon, splashscreen)
>
> - Change existing <merges> to do a shallow merge (aka, it's a collection of
> clobbers)
>
> - Add a version of <merges> that targets a module instead of a symbol
>
> - Add support for specifying iOS Localizable.strings files
>
> - Support for <engine> tag to specify which version of a plugin is
> compatible with your version of cordova-core
>


Re: Google Team's Task Backlog: Plugman & CLI

Posted by Filip Maj <fi...@adobe.com>.
Thanks for sharing all of your plans for the major projects! A lot of the
points brought up on the js, tooling and process I agree with.

On 7/25/13 10:48 AM, "Andrew Grieve" <ag...@chromium.org> wrote:

>We've done some planning around what we'd like to get done over the next
>quarter, and so I thought I'd share.
>
>This isn't to say that we'll be going and doing these things without
>further discussion or proper JIRA issues. It also doesn't mean we will be
>solely focused on this list, nor that we'll actually end up completing
>everything on the list. Just that we *currently* think that these things
>should get done.
>
>
> cordova-cli:
>
>- "plugin rm --force" To remove a plugin that is depended on
>
>   - Motive here is to be able to remove & re-add plugins in mobile-spec
>
>- "project upgrade" To execute platform update scripts
>
>   - E.g. to move from 3.0 -> 3.1, Grab the new CLI and run "cordova
>platform upgrade android"
>
>- Set platform & plugin sources & versions in config.xml, added by cordova
>tool upon add
>
>   - E.g. like: npm install --save
>
>   - E.g. Support the setup of having plugins/ and platforms/ in your
>.gitignore
>
>- Purge lib/ from git history so the repo clones faster
>
>- Make CLI fast (fix shelljs.exec problem)
>
>- Have platforms specifying what default plugins they come with (e.g.
>Android's App plugin)
>
>- Make --verbose on by default
>
>- Move config.xml to be a sibling of www/ (but still support having one in
>www/ for backwards compat)
>
>- Separate npm modules into "cordova" and "cordova-cli" (a la grunt)
>
>
>cordova-plugman:
>
>- Support some assets x-platform (e.g. icon, splashscreen)
>
>- Change existing <merges> to do a shallow merge (aka, it's a collection
>of
>clobbers)
>
>- Add a version of <merges> that targets a module instead of a symbol
>
>- Add support for specifying iOS Localizable.strings files
>
>- Support for <engine> tag to specify which version of a plugin is
>compatible with your version of cordova-core


Re: Google Team's Task Backlog: Plugman & CLI

Posted by Filip Maj <fi...@adobe.com>.
Sorry for the generic first-post, here's a little more fine-grained
commenting / approval:

> cordova-cli:
>
>- "plugin rm --force" To remove a plugin that is depended on
>
>   - Motive here is to be able to remove & re-add plugins in mobile-spec

+1, let's file an issue for that. From Adobe's side phonegap build folk
were asking for this as well.

>
>- "project upgrade" To execute platform update scripts
>
>   - E.g. to move from 3.0 -> 3.1, Grab the new CLI and run "cordova
>platform upgrade android"

There's already an issue we should hijack to log this feature:
https://issues.apache.org/jira/browse/CB-3216

>
>- Set platform & plugin sources & versions in config.xml, added by cordova
>tool upon add
>
>   - E.g. like: npm install --save
>
>   - E.g. Support the setup of having plugins/ and platforms/ in your
>.gitignore
>
>- Purge lib/ from git history so the repo clones faster

Good idea but I figure INFRA's response will be "NO HISTORY REWRITE,
PERIOD." 

>
>- Make CLI fast (fix shelljs.exec problem)

On this topic: grep through for TODO in both cli and plugman. Lots of
optimizations / blatant laziness I've been noting down as I've gone ahead
that would be an easy first-step.

>
>- Have platforms specifying what default plugins they come with (e.g.
>Android's App plugin)
>
>- Make --verbose on by default

+1, most users tend to not notice there's a verbose mode so this should
make bug tracking a bit easier

>
>- Move config.xml to be a sibling of www/ (but still support having one in
>www/ for backwards compat)

The more I look at merges/ folder the more I agree with this approach but
that should be discussed in the other 35 threads we have going on this
topic :)

>
>- Separate npm modules into "cordova" and "cordova-cli" (a la grunt)

Cool idea!

>
>
>cordova-plugman:
>
>- Support some assets x-platform (e.g. icon, splashscreen)
>
>- Change existing <merges> to do a shallow merge (aka, it's a collection
>of
>clobbers)
>
>- Add a version of <merges> that targets a module instead of a symbol
>
>- Add support for specifying iOS Localizable.strings files
>
>- Support for <engine> tag to specify which version of a plugin is
>compatible with your version of cordova-core

All great ideas, log them as improvements and we can slowly chip away at it