[ 
https://issues.apache.org/jira/browse/CB-3216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Filip Maj updated CB-3216:
--------------------------

    Affects Version/s: 2.8.0
                       2.7.0
              Summary: cordova-cli project upgrade path  (was: cordova-cli 
project upgrade guide)

Possible, yes.

There has been some informal discussion with Cordova committers about the 
potential of using a grunt.js-style approach, where the global script is "dumb" 
and calls into a local copy of the script inside a project, which may be of any 
version of that project.

While I agree this is an important feature, in my personal opinion there are 
many more pressing issues that need fixing with the cli tools before tackling 
this problem (just take a look at this JIRA instance and look at how many 
issues are set with the CLI component). In the meantime, a manual upgrade 
process could be scripted that could look like:

{code}
$ npm install -g [email protected]
$ cordova create upgraded_project
$ cp -r original_project/www/* upgraded_project/www/.
$ cd upgraded_project
$ cordova platform add android ios blackberry
$ for dir in `find ../original_project/plugins -type d -maxdepth 1`
> do
> cordova add plugin $dir
> done
{code}

In the meantime I've reopened the issue so that some day we may try to solve 
it. I encourage you to begin discussion on how to handle this problem on the 
cordova mailing list if you would like for it to be solved sooner.
                
> cordova-cli project upgrade path
> --------------------------------
>
>                 Key: CB-3216
>                 URL: https://issues.apache.org/jira/browse/CB-3216
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI
>    Affects Versions: 2.6.0, 2.7.0, 2.8.0
>         Environment: OSX
>            Reporter: Philippe Lang
>            Assignee: Filip Maj
>              Labels: cordova-cli, platform, update
>
> Hi,
> I wanted to upgrade an cordova-cli 2.5 generated project tree (with ios and 
> android platforms) to the latest cordova-cli 2.6 version.
> I somehow managed to do this by reading 
> http://docs.phonegap.com/en/2.6.0/guide_upgrading_index.md.html#Upgrading%20Guides
>  after upgrading my npm cordova package ("npm -g update cordova"), but file 
> paths and a few details are not 100% identical, and I end up being not sure I 
> did everything correctly. (Although both patforms compile correctly)
> Is there some kind of upgrade guide somewhere, that explains this task? In my 
> case, it's hard do delete both platforms and recreate them, since boths 
> contain native plugins. But if it's the way to go, it is not such a big deal 
> eiter...
> A "cordova platform update ios" or "cordova platform update android" would be 
> great. Any chance we can have that one day?
> Best regards,
> Philippe

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to