PhoneGap 和 Cordova 命令之间有区别吗?
我是第一次安装 Phonegap,只是浏览了文档.让我感到困惑的是,有些文档使用命令phonegap"和一些cordova".
I just installed Phonegap for the first time and just browsed through the docs. What confuses me is the fact that some docs are using the command "phonegap" and some "cordova".
Android 平台指南:
Android platform guide:
$ cordova create hello com.example.hello "HelloWorld"
命令行界面指南说明:
$ phonegap create hello com.example.hello HelloWorld
这两个命令之间是否有区别(导致不同的文件和文件夹结构)或者它们只是同一事物的别名?
Is there a difference between those two commands (resulting in different files and folder structures) or are they just aliases for the same thing?
http://phonegap.com/blog/2012/03/19/phonegap-cordova-and-whate28099s-in-a-name/
我认为这个 url 解释了你需要什么.Phonegap 建立在 Apache Cordova 之上,没有别的.您可以将 Apache Cordova 视为支持 PhoneGap 的引擎.随着时间的推移,PhoneGap 发行版可能会包含其他工具,这就是为什么它们在命令上有所不同,但它们做的是相同的事情.
I think this url explains what you need. Phonegap is built on Apache Cordova nothing else. You can think of Apache Cordova as the engine that powers PhoneGap. Over time, the PhoneGap distribution may contain additional tools and thats why they differ in command But they do same thing.
添加了额外的信息,作为其关于命令差异以及 apache cordova 不能或反之亦然时 phonegap 可以做什么
Extra info added as its about command difference and what phonegap can do while apache cordova can't or viceversa
PhoneGap 的第一个命令行选项
First of command line option of PhoneGap
http://docs.phonegap.com/en/edge/guide_cli_index.md.html
Apache Cordova 选项http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface
Apache Cordova Options http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface
因为几乎大多数命令都是相似的.有一些区别(注意:代码库没有区别)
As almost most of commands are similar. There are few differences (Note: No difference in Codebase)
Adobe 可以向 PhoneGap 添加附加功能,这样就不会出现在Cordova ,例如:远程构建您需要的应用程序https://build.phonegap.com
Adobe can add additional features to PhoneGap so that will not be in Cordova ,Eg: Building applications remotely for that you need to have account on https://build.phonegap.com
虽然对于本地构建,phonegap cli 使用了cordova cli(检查链接:https://github.com/phonegap/phonegap-cli/blob/master/lib/phonegap/util/platform.js)
Though For local builds phonegap cli uses cordova cli (Link to check: https://github.com/phonegap/phonegap-cli/blob/master/lib/phonegap/util/platform.js)
平台环境名称.映射:
'local' =>cordova-cli
'local' => cordova-cli
'remote' => PhoneGap/Build
'remote' => PhoneGap/Build
也来自以下存储库:需要cordova的模块是:
Also from following repository: Modules which requires cordova are:
build
create
install
local install
local plugin add , list , remove
run
mode
platform update
run
不包括cordova:
Which dont include cordova:
remote build
remote install
remote login,logout
remote run
serve