JSPM

cordova

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38589
  • Score
    100M100P100Q153060F
  • License Apache

Cordova client tool

Package Exports

  • cordova
  • cordova/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cordova) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cordova-client

Cordova client allows you to create, build and emulate Cordova projects.

Cordova client uses the platform specific scripts for creating, building and emulating projects. Your projects have to be created using either the platform specific create script or the cordova client master script.

Cordova client supports iOS and Android for now. More platforms will be added soon!

Cordova client requires:

Cordova client has been tested on Windows, Linux and Mas OS X.

Using cordova client

Creating projects

cordova create [[platform:[directory]:[package_name]:[project_name]] [platform:[directory]:[package_name]:[project_name]]...|cordova.conf]
  • directory: path to your new Cordova based project
  • package_name: following reverse-domain style convention
  • project_name: Cordova based project name

When called with no arguments cordova create will generate an cordova-ios-example and cordova-android-example in the current directory

cordova.conf format

cordova.conf should be formatted this way:

platform directory package_name project_name
platform directory package_name project_name

Default cordova.conf:

ios ~/Projects/ios-example com.example.cordovaexample CordovaExample
android ~/Projects/android-example com.example.cordovaexample CordovaExample

Building projects

cordova build [[directory] [directory]...|cordova.conf]

You can call cordova build with no arguments if you are inside a cordova based project. cordova build will just call the ./cordova/debug script.

Emulating projects

cordova emulate [directory] [directory]...|cordova.conf

Will launch the platform's emulator

Examples:

Creating a sample iOS and android project

cordova create

this will generate two projects in the current directory: ios-example and android-example

Creating a sample iOS project and android project with specific arguments

cordova create ios:./my-ios-project:com.example.myiospackage:CordovaExample android:./my-android-project:com.example.myandroidpackage:CordovaActivity

Building projects (platform does not matter)

cordova build ./ios-example ./android-example

Emulating projects (platform does not matter)

cordova emulate ./ios-example ./android-example