A Middleman template for Apache Cordova 3.3.x. The goal of this project is to provide a clean and efficient workflow for hybrid mobile app development while remaining platform agnostic.
middleman-cordova is a Middleman 3.1.x project template for Apache Cordova 3.3.x with Haml, Sass, CoffeeScript and Bower for package management.
-
Clone middleman-cordova-ionic into
~/.middleman
. You might need to create this directory if it doesn't exist.$ git clone git://github.com/okayamarb/middleman-cordova-ionic.git ~/.middleman/middleman-cordova-ionic
-
Create a new Cordova project by running the create command, see docs for help:
$ cordova create YourAppName com.example.app "MyAppName"
-
Add a platform to your Cordova project, for example let's add iOS support.
$ cd MyAppName $ cordova platforms add ios
-
Setup Middleman
$ middleman init middleman --template=middleman-cordova-ionic
-
Install Bower packages
$ cd middleman
For more help follow Middleman's project template instructions or feel free to hit me up on Twitter.
middleman-cordova hooks into the Middleman build process, merges the compiled assets with the Cordova structure and runs the cordova prepare
command.
Run $ middleman build
from the Middleman project directory.
- Integrate Cordova merges into build process