How do you host your ionic project code in git?


#1

for a standard ionic project, the project layout is like this:
.
├── README.md
├── 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?


#2

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