cordova-simulator

0.3.0 • Public • Published

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

Note: 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

* official Apache Cordova Plugin

Package Sidebar

Install

npm i cordova-simulator

Weekly Downloads

1

Version

0.3.0

License

MIT

Last publish

Collaborators

  • ozsay