Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova/Phonegap change www to app

Tags:

cordova

yeoman

I'm working on a yeoman generator to help make building phonegap apps easier, but one thing I can't seem to change is phonegaps www folder name to app. I could change yeoman to use www but it would be nice to know if its possible to change cordova to use app (or something else).

like image 874
Lucas Avatar asked Sep 26 '13 10:09

Lucas


2 Answers

This has been sitting here for a while, I ended up continuing to use www folder in my phonegap directory. I wrote a small blog post about this if anyone else is interested.

Blog Post

like image 166
Lucas Avatar answered Oct 05 '22 04:10

Lucas


I was briefly looking into doing this today, and concluded that it was actually far easier to simply change yeoman.dist to 'www' in my Gruntfile. It doesn't exactly do what you were looking for but it does eliminate the need for duplicate distributable directories.

I wouldn't advise using '/app' as your phonegap/cordova directory, as that code won't be minified/uglified.

Edit: Should have clicked your blog post link prior to posted; that post was great and I actually borrowed some of your Grunt tasks. Cheers!

like image 35
doublekid Avatar answered Oct 05 '22 04:10

doublekid