简体   繁体   English

将现有的cordova cli项目从3.3.1升级到3.5

[英]Upgrading an existing cordova cli project from 3.3.1 to 3.5

I have a cordova cli project created with cordova 3.3.1. 我有一个用cordova 3.3.1创建的cordova cli项目。 I want to upgrade to 3.5 as it includes a bunch of fixes/feature implementations that are going to be very useful to me. 我想升级到3.5,因为它包含了一堆对我来说非常有用的修复/功能实现。

Can I just go ahead and update the cordova npm package and update platforms (iOS and Android) as described here : http://cordova.apache.org/announcements/2014/05/23/cordova-350.html ? 我可以继续更新cordova npm软件包并更新平台(iOS和Android),如下所述: http//cordova.apache.org/announcements/2014/05/23/cordova-350.html

AFAIK, the directory structure of the app changed somewhat since 3.4, at least the location of config.xml has changed. AFAIK,应用程序的目录结构自3.4以来有所改变,至少config.xml的位置已经改变。 I did not find any docs advising restructuring the project directories and/or files. 我没有找到任何建议重组项目目录和/或文件的文档。

So I wonder if the newer version of cordova will be able to find the files in older locations and build the project successfully. 所以我想知道更新版本的cordova是否能够在旧位置找到文件并成功构建项目。

Any info of upgrading my project in a clean and safe way will be very helpful. 以干净和安全的方式升级我的项目的任何信息都将非常有用。

There where some changes with the structure for the "hooks" and the ".cordova" folder but everything should be backwards compatible I believe. 在那里,“hooks”和“.cordova”文件夹的结构发生了一些变化,但我相信一切都应该向后兼容。 I did the same a week back and everything kept working including the cordova hooks. 一周后我做了同样的事情,一切都在继续,包括cordova钩子。 So a 那么一个

npm install -g cordova
cordova platform update <platform>

Should be sufficient! 应该足够了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM