- Create / Update / Remove methods to set up your addon
- Sync entities: language variables will creates right after you add some setting to addon-xml
- Built-in diff - look at the result of the command
- Autocomplete
~: git clone https://github.com/LFFATE/ccg.git
~: cd ccg
Open config/custom.php and override config values:
<?php
$customs['addon'] = [
'id' => 'my_default_addon_name'
];
All other configs you can find at config/defaults.php, config/filesystem.php files (Don't change them) and others.
All this options you also can set by command line:
~: ./ccg.php addon/create --addon.id custom_addon_id
Note: wrap the value by quotes if it contains spaces, commas and other non-word charachters
Get help
~: cd /path/to/ccg
~: ./ccg.php help # for Linux
~: php ccg.php # for Windows
Copy script for autocomplition:
~: sudo cp ccg /etc/bash_completion.d/ccg
Update bash:
~: source ~/.bashrc
Use autocomplete:
~: ./ccg.php [Tab][Tab]
Not available
~: cd /path/to/ccg
~: phpunit --testdox
- Fork
- Code
- Pull request
Handle addonXml remove settings✔️- Change namespaces to PSR-0
- Improve tests filesystem (split to directories)
- Copy files from resources to new addon destination on create addon command (ResourcesGenerator)
Add method to LanguageGenerator to remove langvars by setting id (all variants for the setting and etc.)✔️- Improve tests coverage
- Add filesystem decorator for save history of files to be edited/removed
| Name | Description | Code | Default |
|---|---|---|---|
| Addon | |||
| Name | Addon name (id) | addon.id | sd_new_addon |
| Scheme | addon.scheme | 3.0 | |
| Edition type | addon.edition_type | ROOT,ULT:VENDOR | |
| Version | addon.version | 4.8.1 | |
| Priority | addon.priority | 1000 | |
| Position | addon.position | 1 | |
| Status | addon.status | active | |
| Has icon | addon.has_icon | Y | |
| Default language | addon.default_language | en | |
| Supplier | addon.supplier | Simtech Development | |
| Supplier link | addon.supplier_link | http://www.simtechdev.com | |
| Auto install | addon.auto_install | MULTIVENDOR,ULTIMATE | |
| developer | |||
| name | developer.name | John Doe | |
| company | developer.company | Simtech | |
| filesystem | |||
| Output path | Path to which the generator will place add-ons. | filesystem.output_path | /home/ccg/cscart/${addon.id}/ |