Gulp for Joomla! Components release
Gulp release builder for Standard Joomla! Components, Modules, Plugins and Libraries.
Install
To install all the dependencies,
sudo npm install --save-dev gulp
gulp
now you need to install joomla-gulp-release
After installing sudo npm install --save-dev joomla-gulp-release
Using Gulp build system
gulpfile.js
in your component root repository.
Create You only need to add following line in file and then execute below commands.
var jrelease = require('joomla-gulp-release');
gulp-config.json
Configuration file Copy and change default information given in sample config file.
Following tasks and switches are available:
component
and create .zip
file
To Release Use this command to release component. Version and other information can be set in
gulp-config.json
file.
gulp release:component
modules
and create .zip
file
To Release gulp release:modules
plugins
and create .zip
file
To Release gulp release:plugins
packages
and create .zip
file
To Release gulp release:packages
or
gulp release:packages --folder ./individual_package_dir
To release an extension - Alternative of individual 'plugins' and 'modules' commands
gulp release:extensions
This command will read the base directory and create zip files for each of the folder.
=== Switches ===
Pass an argument to choose different folder
--folder {source direcory} Default: "./plugins"
Pass an argument to change suffix for extension
--suffix {text of suffix} Default: "plg_"
Example Usage:
gulp release:extensions --folder ./modules --suffix ext_
Help
Gulp Default task is set to show you help.
gulp