### Build Distribution Files (All) Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Runs the build task to create installable zip archives for both WordPress and Joomla in the `dist` folder. ```bash task build ``` -------------------------------- ### Build Distribution Files (WordPress) Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Runs the build task specifically for creating the WordPress installable zip archive. ```bash task build-wordpress ``` -------------------------------- ### Installing Task CLI with npm Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Installs the Task command-line interface globally using npm. Task is required to run the build tasks defined in the plugin. ```bash npm install -g @go-task/cli ``` -------------------------------- ### Setting Up Plugin for WordPress with Task Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Runs the setup-wordpress task using the Task CLI in the plugin's root directory. This task copies the WordPress-specific plugin files from the build folder to the main plugin directory, making it ready for installation in WordPress. ```bash task setup-wordpress ``` -------------------------------- ### Build Distribution Files (Joomla) Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Runs the build task specifically for creating the Joomla installable zip archive. ```bash task build-joomla ``` -------------------------------- ### Setting Up Plugin for Joomla with Task Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Runs the setup-joomla task using the Task CLI in the plugin's root directory. This task copies the Joomla-specific plugin files from the build folder to the main plugin directory, making it ready for installation in Joomla. ```bash task setup-joomla ``` -------------------------------- ### Configure Update Server Settings (.env) Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Example configuration for the `.env` file to set update server details, package information, stability, download URL, and minimum required PHP, Joomla, and WordPress versions. ```yaml # Update server UPDATEURI='https://example.com/updates' # Package information STABILITY='stable' DOWNLOADURL='https://example.com/downloads' PHPMINIMUM='7.4' JOOMLAMINIMUM='(5\.[01]|4\.[01234]|3\.10)\.' WORDPRESSMINIMUM='6.2' ``` -------------------------------- ### Configure Plugin Metadata (.env) Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Example configuration for the `.env` file to set plugin metadata like title, name, version, description, author, and license information. ```yaml TITLE='My Plugin' NAME='myplugin' VERSION='0.0.1' DESCRIPTION='Lorem ipsum' DATE='{{ now | date "2006-01-02" }}' COPYRIGHT='Copyright (C)' LICENSE='GNU General Public License' AUTHOR='My Company' AUTHOREMAIL='me@example.com' AUTHORURL='https://example.com' ``` -------------------------------- ### Running Plugin Creation Command with Composer Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Executes the create:plugin script defined in the Composer configuration within the newly created plugin directory. This script prompts for plugin metadata and generates the necessary build files and configuration. ```bash composer create:plugin ``` -------------------------------- ### Initialize Git Repository Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Initializes a new Git repository in the current directory with the default branch named 'main'. ```bash git init -b main ``` -------------------------------- ### Creating New Plugin Project with Composer Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Uses Composer to create a new project based on the yootheme/starter-plugin template. This command should be run in the WordPress or Joomla plugins directory, replacing PLUGIN_NAME with the desired name for the plugin folder. ```bash composer create-project yootheme/starter-plugin PLUGIN_NAME ``` -------------------------------- ### Creating New Element with Composer Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Runs the create:element script using Composer to generate the files for a new YOOtheme Pro element. Replace ELEMENT_NAME with the desired name. If multiple modules exist, the script will prompt the user to select the target module. ```bash composer create:element ELEMENT_NAME ``` -------------------------------- ### Creating New Module with Composer Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Executes the create:module script via Composer to generate the basic structure and files for a new YOOtheme Pro module. Replace MODULE_NAME with the desired name for the module. The script will prompt for additional configuration details. ```bash composer create:module MODULE_NAME ``` -------------------------------- ### Update Dependencies (Composer) Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Runs the Composer update command to update the project's dependencies, specifically the starter-utils package. ```bash composer update ``` -------------------------------- ### Creating New Element in Specific Module with Composer Source: https://github.com/yootheme/starter-plugin/blob/main/README.md Executes the create:element script via Composer to generate files for a new YOOtheme Pro element within a specified module. Replace ELEMENT_NAME with the element name and MODULE_NAME with the target module name. ```bash composer create:element ELEMENT_NAME MODULE_NAME ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.