cordova构建项目命令小结

cordova help

cordova info

npm update -g cordova

npm install -g cordova@3.1.0-0.2.0

npm info cordova

cordova platform update android

    $ cordova build                   # build all platforms that were added

    $ cordova build android           # build debug for only Android

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

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


     $ 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>


转载于:https://my.oschina.net/u/555061/blog/509057

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值