I’m planning on developing a Joomla custom component and storing the files in a git repo. The structure of my git project will mimic the deployed joomla struture
<root>
-administrator
-components
-com_abc
-components
-com_abc
-modules
-com_abc
-plugins
-com_abc
Rather than having to copy/zip the php/html files for the component each time i’d like to try and use the joomla root folder as the root for my git project. I’d use the git ignore feature to exclude files that belong to the joomla core project. I’m wondering has anybody done something similar and how do you initially deploy your component. Is is just a case of using the Joomla Extension Manager and pointing the directory to the joomla root dir?
I myself did this kind thing not long ago. I used the following three links to setup my development structure:
What I now got is a separate Eclipse project for my local Joomla installation and every Joomla extension/template. On every extension I use Git, but not the Joomla installation itself.
Every time I make a change to a extension, I use a Eclipse builder to call on Phing that copies the edited files to my Joomla installation. This way, I can test the changes locally. When I’m ready to deploy the extensions to a remote site, I use Phing to build the zip packages so that I can manually install them using the Joomla Extension Manager.
Note that I’m on Windows and but I think it’s a good solution for other operating systems too. Using Eclipse as editor is also nice, with code completion etc. I used Notepad++ before.
My extensions folder structure:
The Eclipse external tool to run the following file:
Example of Phing xml file (build.xml):