0.3.0 • Published 11 years ago
cordova-simulator v0.3.0
cordova-simulator
Web application for simulating cordova plugins.
The app is an alternative to cordova serve (ionic serve for ionic users).
Installing
$ npm install -g cordova-simulatorNote: For a global install of -g cordova-simulator, OSX/Linux users may need to prefix the command with sudo.
Usage
$ cordova-simulator [-l | --launch] [-d | --demo] [-p num | --port=num] [-a app1[,app2...] | --apps=app1[,app2...]] [-r resource_folder1[,resource_folder2...] | --resources=resource_folder1[,resource_folder2...]]Options:
| Param | Description | Default Value |
|---|---|---|
| -p, --port | The server's port | 80 |
| -l, --launch | Launch in browser | false |
| -d, --demo | Include the demo | false |
| -a, --apps | Apps folders | [] |
| -r, --resources | Resources folders | [] |
| -h, --help | Show help | |
| -v, --version | Show version number |
Custom behavior
# platform classes
Based on the platform, the simulator will add 'platform-*' classes to the body of the app html.
# live reload
The simulator will reload the devices whenever a file is changed in the app folder.
Supported plugins
- Action Sheet
- App Version
- Battery Status *
- Clipboard
- Device *
- Dialogs *
- Flashlight
- Network Information *
- Splashscreen *
- Vibration *
* official Apache Cordova Plugin