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.
Thanks.
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.
-
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.
-
Thanks. I did find the .gitignore in the kitchen sink. It is a good example.
-
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.