cordova經常使用資料源


cordova的中文資料
https://github.com/CordovaCn/CordovaCnnode

官方文檔:android

http://cordova.apache.org/docs/en/latest/ios

 


E:\MyApp01\MyApp>cordova create hello com.example.hello HelloWorld
E:\MyApp01\MyApp>cordova platform add ios --save
E:\MyApp01\MyApp>cordova platform add android --save
E:\MyApp01\MyApp>cordova platform ls
Installed platforms:
android 5.1.1
browser 4.1.0
ios 4.1.0
Available platforms:
amazon-fireos ~3.6.3 (deprecated)
blackberry10 ~3.8.0
firefoxos ~3.6.3
webos ~3.7.0
windows ~4.3.1
wp8 ~3.8.2 (deprecated)git

----------------------------------------------------------------------
E:\MyApp01\MyApp>cordova -help
Synopsisgithub

cordova command [options]web

Global Commands
create ............................. Create a project
help ............................... Get help for a commandapache

Project Commands
info ............................... Generate project information
requirements ....................... Checks and print out all the requirements
for platforms specifiednpm

platform ........................... Manage project platforms
plugin ............................. Manage project pluginswindows

prepare ............................ Copy files into platform(s) for building
compile ............................ Build platform(s)
clean .............................. Cleanup project from build artifactsui

run ................................ Run project
(including prepare && compile)
serve .............................. Run project with a local webserver
(including prepare)

Learn more about command options using 'cordova help <command>'

Aliases
build -> cordova prepare && cordova compile
emulate -> cordova run --emulator

Options
-v, --version ...................... prints out this utility's version
-d, --verbose ...................... debug mode produces verbose log output for all activity,
--no-update-notifier ............... disables check for CLI updates
--nohooks .......................... suppress executing hooks
(taking RegExp hook patterns as parameters)

Examples
cordova create myApp org.apache.cordova.myApp myApp
cordova plugin add cordova-plugin-camera --save
cordova platform add android --save
cordova requirements android
cordova build android --verbose
cordova run android
cordova build android --release -- --keystore="..\android.keystore" --storePassword=android --alias=mykey

E:\MyApp01\MyApp>

-------------------------------------------------

若是安裝的時候報sha1簽名錯誤,就把下載的文件刪除掉,從新安裝一次,路徑:

C:\Users\【你的用戶名】\AppData\Roaming\npm\node_modules

相關文章
相關標籤/搜索