cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parashuram N (MS OPEN TECH)" <>
Subject Re: platforms/plugins save and restore from config.xml
Date Fri, 09 Jan 2015 01:21:53 GMT
+1 to graduating this out of experimental :)

On 1/8/15, 4:25 PM, "Steven Gill" <> wrote:

>+1 to remove --experimental
>On Thu, Jan 8, 2015 at 4:13 PM, Gorkem Ercan <>
>> On 8 Jan 2015, at 17:29, Mefire O. wrote:
>>  Hi all,
>>> I am a big fan of the experimental "save" and "restore" features that
>>> in the CLI and saw that Gorkem has also created another PR (
>>> ) to have a setting to
>>> auto persist/restore plugin versions which is a really interesting
>> Glad it helps someone. The current PR is for plugins and I will send a
>> for platforms too. The ultimate goal is to be able to remove platforms
>> plugins folder completely.
>>  On a related note, one issue I ran into with platform save/restore is
>>> when you need to involve multiple operating systems for a given
>>> Ex: Targeting say iOS, Windows, and Ubuntu from the same project or
>>> have some team members on OSX or Linux while others are on Windows -
>>> need to be able to "save" or "restore" only platforms that run on the
>>> you are currently using.
>>> For the restore situation, it seems to make quite a bit of sense to use
>>> any version information in config.xml when you add a platform by
>>> The fact the information in is in config.xml indicates the goal is
>>> consistency.
>>> Here is a PR that adds this functionality for platforms:
>>>  This functionality makes a lot of sense especially if/when it supports
>> git urls?
>>  With that in mind, we could also follow that familiar pattern that
>>> with npm and package.json to help out when you want to quickly save the
>>> platform you added to config.xml.
>>> Ex:
>>> cordova platform add android --save
>> I think we should have support for --save on plugins add/remove as well.
>> Ultimately, I think users of this functionality configure their
>>projects to
>> be auto restore and use this or the save/restore commands to specify
>> needs to be restored.
>> There is one catch with the implementation though. Save and restore are
>> still called with --experimental, perhaps we need to remove
>> before this can proceed.
>>  ...adds the latest android platform and updates config.xml with the
>>> version that was added. As always, you can always use the existing
>>> to add a different version (cordova platform add android@4.0.0<mailto:
>>> android@4.0.0>). I'm planning on putting together a PR on that idea as
>>> well.  We could actually follow a similar model for plugins as well.
>>> Thanks,
>>> Mefire
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message