Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Build Directory Git

I am using git / github to maintain my code. What directories can I delete because they are temp files or build files? I tried deleting build/iphone/build/ and things started to break.

I am trying not to send 100megs each time I commit.


— asked April 17th 2010 by Spicer Matthews
  • build
  • git
  • mobile

4 Answers

  • I would suggest you add build/ to .gitignore in the root directory. Do note that someone who freshly clones your repo will not be able to import the project directly into Titanium since the project would not be configured for iphone and/or android. They could however create a new project and then clone your repo.

    The above may sound weird but that's how I do it. For my other machines, I simply copied over the build folder from the main one (through other means). Appcelerator team could give you a better insight as to which parts of build you can sync.

    — answered April 17th 2010 by Swaroop Hegde
  • It would be nice if a future version of Titanium would automatically generate any missing files. It seems a bit silly to have to bundle build files in the VCS, and unless one consults the KitchenSink demo it's not at all obvious what can be deleted and what can't.

    — answered April 17th 2010 by Damien Elmes
  • Thanks. I did find the .gitignore in the kitchen sink. It is a good example.

    — answered April 17th 2010 by Spicer Matthews
  • The correct method is to ensure that the build/ directory bas been added to your .gitignore file or other SCM ignore mechanism. One then needs to "Import" the project instead of opening it within TitaniumStudio.

    — answered February 14th 2012 by Brett Ryan
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.