I want to maintain one code base for different app builds


#1

hi everyone,
i have to maintain more than one project with same code base
ex:
project/
hooks/
node_modules/
platforms/
plugins/
resources/
src/
appA-config/
appB-config/
www/
config.xml
package.json

what i want is, when i do something like

ionic serve appA, it should run appA
ionic build appA, it should give build of appA

ionic build appB, it should run appB
ionic build appB, it should give build of appB

do anyone have idea to do this customization
we should care about app name, version, icon, splash screen should be app specific


#2

You would be better off having shared modules to share the various chunks of code that are required in each project I.e providers and components.

Everything else I would leave as is, individual projects.

https://angular-2-training-book.rangle.io/handout/modules/shared-modules-di.html


#3

@Judgewest2000 thanks for the quick response
i am checking on this link