Hybrid Blink App Shells (Cordova)
Prerequisites
Node.js 0.12.x or newer
NPM 3.0.x or newer (Node.js 5.x includes this)
latest Cordova CLI
basic familiarity with command line interfaces and directory navigation
Build a standard Cordova project
Follow the upstream Cordova CLI instructions.
First create a local project directory
Open a terminal or command line prompt and type the following code.
cd parent/path/for/your/project
Create a new Cordova project
cordova create project-name project.bundle.id
Point Cordova at your new project directory
cd path/to/your/project
Add a Platform to the Cordova project
cordova platform --save add windows cordova platform --save add ios cordova platform --save add android
You can also install specific versions of the platform-specific Cordova library:
cordova platform --save add android@4.1.1
Install extra Cordova plugins
You may find available Cordova plugins by searching the Cordova portal.
You may install these plugins using the Cordova CLI.
For a list of Blink Approved plugins click here
cd path/to/your/project cordova plugin add --save cordova-plugin-camera cordova plugin add --save cordova-plugin-console cordova plugin add --save cordova-plugin-contacts cordova plugin add --save cordova-plugin-file-transfer cordova plugin add --save cordova-plugin-inappbrowser cordova plugin add --save cordova-plugin-media-capture
You can also install specific versions of plugins:
cd path/to/your/project cordova plugin add --save cordova-plugin-camera@1.0.0
Building the Cordova project
cd path/to/your/project cordova build windows cordova emulate windows
Customise the Cordova project
Once you've confirmed that you can build a standard Cordova project, you may begin customising for your particular solution.
See the following upstream document: