title: How to set up a PhoneGap project in WebStorm
body: <p>I am trying to make a phone gap app, specifically for the iOS platform.  However I want to develop in the WebStorm IDE, push my project to a repository, and then use PhoneGap Build.</p>
  
  <p>I've downloaded PhoneGap version 3.1.0-0.15.0, created a project for the iOS platform, and added all of the plugins I think I will need to the project.  That all seems to be ok, I can run the Xcode project and get the little onDeviceReady hello world program.</p>
  
  <p>Now where things get a bit more confusing for me is:</p>
  
  <ol>
  <li><p>If I wanted to start building a web app in WebStorm using PhoneGap what would I move into my WebStorm project?  Do I need to take something from my PhoneGap project directory?  And if so what pieces do I take?  Do I need to put it in as an external library, or can I just plop it into my root directory?</p></li>
  <li><p>If I wanted to use a module loader like requirejs as well, are there any additional hoops I would have to jump through or issues I'd have if I tried to make phone gap a module?  Or is it a better idea to just load my cordova.js file before I load requires?</p></li>
  </ol>
  
  <p>I've seen a lot of posts that have bits and pieces, or some that tell you how to set things up specifically for Android, or using an earlier version of PhoneGap with a different file structure.  But have been unable to find anything that really explains the whole picture to me.</p>