generator-joomla-spc
Version:
Joomla-spc generator for Yeoman. Creates Joomla 2.5 and 3.0 files
90 lines (82 loc) • 3.5 kB
text/xml
<extension type="component" version="3.2.0" method="upgrade">
<name>COM_<%= _.slugify(componentName).toUpperCase() %></name>
<!-- The following elements are optional and free of formatting constraints -->
<creationDate><%= currentDate %></creationDate>
<author><%= authorName %></author>
<authorEmail><%= authorEmail %></authorEmail>
<authorUrl><%= authorURL %></authorUrl>
<copyright>Copyright <%= currentYear %> All rights reserved.</copyright>
<license><%= license %></license>
<version><%= versionno %></version>
<!-- The version string is recorded in the components table -->
<!-- The description is optional and defaults to the name -->
<description>COM_<%= _.slugify(componentName).toUpperCase() %>_DESCRIPTION</description>
<!-- Runs on install/uninstall/update; New in 2.5 -->
<scriptfile>script.php</scriptfile>
<install> <!-- Runs on install -->
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
</sql>
</install>
<uninstall> <!-- Runs on uninstall -->
<sql>
<file driver="mysql" charset="utf8">sql/uninstall.mysql.utf8.sql</file>
</sql>
</uninstall>
<update> <!-- Runs on update; New since J2.5 -->
<schemas>
<schemapath type="mysql">sql/updates/mysql</schemapath>
</schemas>
</update>
<!-- Site Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /site/ in the package -->
<files folder="site">
<filename>index.html</filename>
<filename><%= _.slugify(componentName) %>.php</filename>
<filename>controller.php</filename>
<folder>views</folder>
<folder>models</folder>
</files>
<languages folder="site/language">
<language tag="en-GB">en-GB/en-GB.com_<%= _.slugify(componentName) %>.ini</language>
</languages>
<media destination="com_<%= _.slugify(componentName) %>" folder="media">
<filename>index.html</filename>
<folder>images</folder>
</media>
<administration>
<!-- Administration Menu Section -->
<menu link='index.php?option=com_<%= _.slugify(componentName) %>' img="../media/com_<%= _.slugify(componentName) %>/images/tux-16x16.png">COM_<%= _.slugify(componentName).toUpperCase() %>_MENU</menu>
<!-- Administration Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /admin/ in the package -->
<files folder="admin">
<!-- Admin Main File Copy Section -->
<filename>index.html</filename>
<filename>config.xml</filename>
<filename><%= _.slugify(componentName) %>.php</filename>
<filename>controller.php</filename>
<filename>access.xml</filename>
<!-- SQL files section -->
<folder>sql</folder>
<!-- tables files section -->
<folder>tables</folder>
<!-- models files section -->
<folder>models</folder>
<!-- views files section -->
<folder>views</folder>
<!-- controllers files section -->
<folder>controllers</folder>
<!-- helpers files section -->
<folder>helpers</folder>
</files>
<languages folder="admin/language">
<language tag="en-GB">en-GB/en-GB.com_<%= _.slugify(componentName) %>.ini</language>
<language tag="en-GB">en-GB/en-GB.com_<%= _.slugify(componentName) %>.sys.ini</language>
</languages>
</administration>
</extension>