How do you host your ionic project code in git?


for a standard ionic project, the project layout is like this:
├── config.xml
├── gulpfile.js
├── hooks
├── ionic.project
├── merges
├── node_modules
├── package.json
├── platforms
├── plugins
├── scss
└── www

at first, I just upload the www dir to github. However, some files are left outside:

  • config.xml
  • scss dir if you use it
  • plugins(at least the list should be in git)
  • if you want to change app icons or splash, you need to change resources in platforms

How do you handle them?


Hmm, I’m not sure if this would work for you, but you could use this generator

When you have your distribution built, create a new repo that uses that folder as it’s local source. This way, when ever you have a new build, you can just push the changes to github and keep things up to date