Opencart Extension Export, (*1)
this cli will help you find and compile all files that were create to build an extension for opencart, (*2)
CLI still need to add the validations but for now it does the job to find the files also export to an unique folder, (*3)
To install it you will need to go to composer, (*4)
- add the script lines into your opencart / composer.json
- run the command to install it
composer install, (*5)
{
"name": "opencart/opencart",
.....
},
"require": {
"rmanara/console": "@dev"
},
"scripts": {
"post-install-cmd": [
"Rmanara\\Lib\\Installer::Init"
],
"post-update-cmd": [
"Rmanara\\Lib\\Installer::Init"
]
}
}
After the installation you will a notification saying:
file console ready, (*6)
now you can run the cli to export the extension files that you were working on, (*7)
php console app:export {filename}, (*8)
php console app:build, (*9)
php console app:data {dump|optmise}, (*10)
it will build the folder "/temp_extension" and put all file that has that name in it, (*11)