Cordova POC CLI
A CORDOVA POC COMMAND LINE INTERFACE
by Bartolomeo Sorrentino
twitter: @bsorrentinoJ
CORDOVA POC
WHAT IS THAT?
Cordova-POC is a mobile app, available on IOS & Android, that helps to do demo of your Cordova/Phonegap apps to your customers on-the-fly.
Idea is to connect multiple sources (online & offline) from which download HTML5 application’s bundle. You can package your demo app as zip file and put it on Dropbox or develop it directly on JSFiddle and downloading it when you ready.
Cordova-POC allows to collect the deployed applications, providing a personal applications gallery, always ready to run.
CORDOVA POC CLI
WHAT IS THAT?
Cordova POC CLI is a 'Command Line Interface' tool, built on top of NodeJS, that helps to bundle HTML5 Apps to be ready for deployment & run in Cordova POC.
Such tool allows to :
- Create a project downloading the code directly from JSFiddle or Codepen
-
Create/Update the Application MANIFEST
-
Bundle project as ZIP
CORDOVA POC CLI
Create a new project
Example below will create a new cordova-poc project from the JSFiddle's online html5 snippet
> cordova-poc project create \
--name=starwars \
--url=http://jsfiddle.net/bsorrentino/SHSpw \
--output=starwars-poc
CORDOVA POC CLI
SET PROJECT'S INFO
Set /Update application's name
> cordova-poc project open --path ./starwars-poc --set-name=obi-wan
Set/Update preferred cordova version
> cordova-poc project open --path ./starwars-poc --set-version=300
Set Update application's icon
> cordova-poc project open --path ./starwars-poc --set-icon
[0] css/favicon.png
Choose image: _
CORDOVA POC CLI
MAKE A PROJECT'S Bundle
Create an application's bundle ready to deployment
> cordova-poc project open --path ./starwars-poc --zip \
--output /Dropbox/Apps/Poc
CORDOVA POC CLI
INSTALL OR CLONE IT FROM GITHUB
Install
> npm install -g cordova-poc
Clone
> git clone https://github.com/bsorrentino/cordova-poc-cli.git