mobile-angular-ui icon indicating copy to clipboard operation
mobile-angular-ui copied to clipboard

How to port an old project to cordova without starting a new project from scratch

Open tvanesse opened this issue 10 years ago • 2 comments

I have developed a mobile-angular-ui app that is working as a web app for the time being. Today I want to port it on Cordova. How should I proceed without starting up a new yeoman project with your generator?

tvanesse avatar May 16 '15 14:05 tvanesse

+1 pretty interesting question.

I'm actually trying to achieve the same thing, If i found a solution i'll write it here.
Actually, I have a browser application that's correctly rendering in desktop browser, and mobile browser. I'm trying to add cordova support and so generate a package to test it inside android.

My goal is to :

  • Not rebuild from scratch the project since it's a mobileangularui project and it may certainly be portable.
  • Create two branchs inside my svn, one for the phone application (with cordova dependance), and one for browser (with HTML5 technologies).

Anyone has suggestions/critics ? Thx!

sam2x avatar Jun 17 '15 18:06 sam2x

Ok i found out, just follow this tutorial, http://mobileangularui.com/blog/your-first-phonegap-app-with-mobile-angular-ui/

Some startup routines may be needed. But basically, you'll just need to "merge" the src directory, build ('gulp build'), and generate the package(in my case the apk), with "phonegap run android". ;)

sam2x avatar Jun 18 '15 00:06 sam2x