mmenozzi / m2cpb
Magento2 Component Package Builder
Installs: 1 933
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: ^4.0
This package is auto-updated.
Last update: 2024-12-07 22:08:31 UTC
README
Builds a ZIP package of a Magento2 component (module, theme, language or library).
Installation
Use Composer:
composer require mmenozzi/m2cpb
Usage
Execute the following command:
vendor/bin/m2cpb <src_path> <composer_file_path> <version> <destination_zip_path>
Where:
<src_path>
, is the path to the root directory of the component (the one which contains the registration.php file).<composer_file_path>
, is the path to the original composer.json file used during development. The following properties must be set: name, version, type, license, authors and autoload.<version>
, version to set into destination package. It's intended to be passed from a continuous integration system which builds a specific branch or tag.<destination_zip_path>
, is the path to the destination directory of the ZIP package file. The file name of the ZIP package is automatically generated using the Composer's package name and version.
License
This library is under the MIT license. See the complete license in the LICENSE file.