Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 2.43 KB

File metadata and controls

66 lines (45 loc) · 2.43 KB

PhoneGap Notes

The PhoneGap CLI provides a command line interface for creating PhoneGap apps as

  • an alternative to using the PhoneGap Desktop application.
  • The PhoneGap CLI was the main tool used for creating PhoneGap apps prior to PhoneGap Desktop and
  • contains additional features over the PhoneGap Desktop
  • for building, running and packaging PhoneGap applications for multiple platforms.

Install PhoneGap CLI

npm install -g phonegap

Create Project

phonegap create . --id "com.technicalmedia.plotterplatform" --name "PlotterPlatform"

Run Project in Browser

phonegap serve

PhoneGap and PhoneGap Build are built upon the Apache Cordova Project.

  • See docs.cordova.io - how PhoneGap and Cordova applications are configured.
  • PhoneGap applications are configured using a config.xml file at the root of your application

File System - Get local config files

let pathToFile = `${cordova.file.dataDirectory}phonegapdevapp/www/${fileName}`;

Deploy to PhoneGap Build

  1. zip the folder
  2. upload the folder to phonegap build

Links

PhoneGap Build is a cloud service for compiling PhoneGap applications