How to version a Joomla component with git

1

When I create a new component or module for Joomla, most of the development is done with the component / module already installed inside the CMS framework

- administrator
    - cache
    - components
        - com_component*
            - <arquivos do componente>
    - help
    - includes
    - language
    - logs
    - manifests
    - modules
    - templates
- bin
- cache
- cli
- components
    - com_component*
        - <arquivos do componente>
- images
- includes
- installation
- language
- layouts
- libraries
- media
- modules
- plugins
- templates
- tmp

My question is how to version the project files within the Joomla framework.

If I use .gitignore to ignore ALL other Joomla files, my repository looks like this:

- administrator
    - components
        - com_component*
            - <arquivos do componente>
- components
    - com_component*
        - <arquivos do componente>

But I would like it to have the structure of a Joomla component ready to be installed, something like:

- admin
    - <arquivos do componente>
- site
    - <arquivos do componente>
- manifest.xml
    
asked by anonymous 27.09.2016 / 21:27

1 answer

0

Guilherme, is it really necessary to do the versioning within the Joomla framework?

In this case, most developers (including me) publish the source code of the installable package in the SVN or Git repositories. This enables the component to be installed on another site if necessary.

Component authoring documentation: link

    
07.11.2016 / 19:26