How to use a Joomla component with git

Asked

Viewed 84 times

1

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

- 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 doubt is on how to view the project files within the Joomla structure.

In case I use .gitignore to ignore ALL other Joomla files, my repository would look 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
  • Gives a searched in submodules

  • 1

    https://git-scm.com/book/pt-br/v1/Ferramentas-do-Git-Subm%C3%B3dulos

1 answer

0

William, it really is necessary to do the versioning within the structure of Joomla?

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.

Since properly configured the file xml, the package will always be able to be installed on another site Joomla.

Documentation of component creation: https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component

Browser other questions tagged

You are not signed in. Login or sign up in order to post.