Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova

Package Overview
Dependencies
Maintainers
1
Versions
2535
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova

Cordova client tool

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43K
increased by6.06%
Maintainers
1
Weekly downloads
 
Created
Source

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:

  • nodejs
  • iOS SDK
  • Android SDK

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

Keywords

FAQs

Package last updated on 14 Jul 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc