1.1.4 • Published 12 years ago
gapserver v1.1.4
GapServer
A utility to let you use modern web technologies when building your PhoneGap apps.
Supports
- Jade
- CoffeeScript (optional)
- Stylus (optional)
- More coming soon (requests?)
Install
npm install gapserver -g
Setup
- Create a new PhoneGap project in XCode
- Add your www folder to your XCode project (if XCode 4)
- Navigate to your www directory in terminal
- Run:
gapserver --startapp
- Run:
gapserver
and go to http://localhost:3000 in your browser - Code away...
- When you are ready to deploy to your device. Run:
gapserver --generate
- Build in XCode
CoffeeScript
CoffeScript support comes out of the box. Just place your .coffee files anywhere within your www folder and then reference the files with the same path, but with a .js extension.
Example:
Coffee: www/scripts/app.coffee
Jade: script(src="scripts/app.js")
Stylus
Stylus support is very similar to coffeescript support. Place your styl files anywhere inside your www folder and refrence them with a .css extension.
Jade
templates/index.jade is where your primary app template code should live. You can also use partials to split up your template code. See the example folder for how to accomplish that.
Auto Generate in on XCode Build
Coming Soon