cordova構建項目命令小結

cordova help
javascript

cordova infojava

npm update -g cordovaandroid

npm install -g cordova@3.1.0-0.2.0git

npm info cordovagithub

cordova platform update androidapache

    $ cordova build                   # build all platforms that were addednpm

    $ cordova build android           # build debug for only Androidapp

    $ cordova build android --debug   # build debug for only Androidui

    $ cordova build android --release # build release for only Androidspa


     $ cordova emulate android       #to deploy the app on a default iOS emulator

    $ cordova run android --device  #to deploy the app on a connected device


cordova plugin add 

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-networkinformation.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git

cordova plugin add https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-device-orientation.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git

cordova plugin add cordova-plugin-network-information

cordova plugin add cordova-plugin-battery-status

cordova plugin add cordova-plugin-file-transfer

cordova plugin add cordova-plugin-console cordova-plugin-device


cordova plugin add cordova-plugin-console@latest

cordova plugin add cordova-plugin-console@0.2.1

cordova plugin add https://github.com/apache/cordova-plugin-console.git#r0.2.0

cordova plugin add https://github.com/someone/aplugin.git#:/my/sub/dir

cordova plugin add https://github.com/someone/aplugin.git#r0.0.1:/my/sub/dir

cordova plugin add ../my_plugin_dir


cordova plugin remove org.apache.cordova.core.file

cordova prepare platform_name

cordova compile android

cordova build android

cordova emulate android

cordova serve android 8080

cordova plugin search bar code




cordova create lunch_menu

cd lunch_menu

cordova platform add blackberry

cordova prepare blackberry




cordova create MAP_1.0 com.zhxjz.map Map

cordova platform add android

cordova platform ls

cordova platform remove platform_name



<script type="text/javascript" charset="utf-8" src="cordova.js"></script>

相關文章
相關標籤/搜索