# Mobify.js

Mobify.js is a client side adaptation framework for quickly adapting
websites to support mobile and tablet devices.

This repository contains the Mobify.js core. The [Mobify Client](https://github.com/mobify/mobify-client/)
is required to compile the core.

To get started with Mobify.js, follow the instructions on [mobifyjs.com](https://www.mobifyjs.com/).

## Install

    make

## Tests

Running the tests requires [PhantomJS](http://phantomjs.org/):

    make test

## Updating Mobify Service APIs

Mobify.js includes javascript client APIs for Mobify;s image and javascript 
optimization web services. To get the latest versions of these APIs, go to the
`vendor/mobify-service-clients` directory, and adjust `bower.json` to install the 
versions of the client libraries you want. You can then run `grunt build` to 
build a new version of the shim.

##  Docs

The compiled documentation for Mobify.js can be found online at [mobifyjs.com](https://www.mobifyjs.com/).

To compile the documentation yourself, install [Jekyll](http://jekyllrb.com/)
and run it from `www` folder:

    gem install jekyll
    cd www
    jekyll --server --auto

Then navigate to http://localhost:4000/mobifyjs/docs/.

## Modules

Mobify.js includes a library customizable user interface modules in the
`modules` folder.

To package the modules for download use this command (they will be stored in /static/downloads):

    make modules

## Build mobifyjs.com

When creating a build of mobifyjs.com for release, execute this command:

    make buildstatic

And then copy the generated "\_site" folder to where the site will be hosted.
