Package Joomla! Extensions with grunt
-
Local Joomla installation
- Copy files of "joomla" folder in the root folder of local Joomla installation
- rename package_template.json to package.json (or adjust current package.json) and update file content
- rename paths_template.json to paths.json and update file content
- run
npm install
in terminal (in Joomla root dir)
-
Extension
- Copy files of "extension" folder in the Source folder of joomla extension
- rename package_template.json to package.json (or adjust current package.json) and update file content
- rename ext_template.json to ext.json and update file content
- run
npm install
in terminal (in root dir of extension)
-
In local Joomla
grunt build:<com_sample>:<major|minor|patch>
default ispatch
-
In extension folder
grunt build:<major|minor|patch|no>:<yes|no>
default ispatch
(no
if version number should not be bumped) default for import (second parameter) isyes
(yes
will import files from local joomla installation,no
will just package and bump version)