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"
b $ b
命令行界面指南介绍:
Command Line Interface guide tells:
$ 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/
我认为这个网址解释了你需要什么。
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.
编辑:额外的信息添加为它的命令差异和什么
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
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
-
由于几乎大多数命令都是类似的。有几个区别
(注意:Codebase没有区别)
As almost most of commands are similar. There are few differences (Note: No difference in Codebase)
Adobe可以向PhoneGap添加额外的功能, b 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)
平台环境名称。
映射:
Platform Environment Names. Mapping:
'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
:
remote build
remote install
remote login,logout
remote run
serve