Add cordova example

This commit is contained in:
lagel 2015-12-27 20:29:02 +08:00
parent eb44091065
commit 32d65baab7

68
pages/common/cordova.md Normal file
View File

@ -0,0 +1,68 @@
# cordova
> Mobile apps with HTML, CSS & JS
- Create a cordova project
`cordova create {{path}}`
- Create a detailed cordova project
`cordova create {{path}} {{package.name}} {{project.name}}`
- Display the current workspace status
`cordova info`
- Add a cordova platform
`cordova platform add {{platform}}`
- Update a cordova platform
`cordova platform update {{platform}}`
- Remove a cordova platform
`cordova platform remove {{platform}}`
- Show platform list
`cordova platform list`
- Add a cordova plugin from cordova plugin market
`cordova plugin add {{pluginid}}`
- Add a cordova plugin from local path
`cordova plugin add {{path}}`
- Add a cordova plugin from git url
`cordova plugin add {{giturl}}`
- Remove a cordova plutin
`cordova plugin remove {{pluginid}}`
- Show plugin list
`cordova plugin list`
- Copies files for specified platforms, or all platforms
`cordova prepare {{--ios}}`
- Builds the app for specified platforms, or all platforms
`cordova compile {{--debug}} {{--emulator}} {{--android}}`
- Run project
`cordova run {{--ios}}`
- Run project with a local webserver
`cordova serve {{8000}}`