I need more information about the project, because it can depend on many factors: goals, time, budget, etc. But, in my opinion, there are much more differences than just โsome filesโ between the network and mobile projects. For instance:
- A mobile hybrid application needs some plugins to perform some specific mobile tasks and behave as a mobile application.
- A well-optimized web application may be too heavy for a mobile application.
- the web application needs support also IE, but the mobile application does not
- a good responsive web application interface is not a mobile interface and vice versa
To do this, I would create three separate repositories: AngularJS Web project and Ionic Mobile project . And the third repo with the AngularJS module to be imported as a git submodule . This third module can be as the main module with all the functionalities (services, directives, filters, etc.), which will be shared between two applications.
source share