Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prestashop/composer-script-handler
Install PrestaShop modules using composer
https://github.com/prestashop/composer-script-handler
composer obsolete prestashop tools
Last synced: about 1 month ago
JSON representation
Install PrestaShop modules using composer
- Host: GitHub
- URL: https://github.com/prestashop/composer-script-handler
- Owner: PrestaShop
- License: mit
- Archived: true
- Created: 2019-01-14T11:39:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T09:54:10.000Z (over 5 years ago)
- Last Synced: 2024-09-26T11:40:48.377Z (about 1 month ago)
- Topics: composer, obsolete, prestashop, tools
- Language: PHP
- Homepage:
- Size: 52.7 KB
- Stars: 1
- Watchers: 9
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Composer script handler for PrestaShop 1.7
This scripts allows to install modules in `modules` folder, with no update
of main `vendor` folder.## Installation
```
composer require prestashop/composer-script-handler --dev
```## Use
In your Shop, you can now declare modules into "prestashop.modules" in the "extras" section of Composer.
Once you do that, on "install" process, the list of modules will be installed and can be overwritten on demand.
### Configuration
You can configure the list of modules, the number of process to paralleling the download of modules and the timeout to wait for download status.
* `modules`: this is the list of Composer packages with a version, they **must** be of "prestashop-module" type;
* `processes`: it's the number of parallel process allowed to download modules (**2** by default)
* `update-frequency`: the time to wait before check the status of each current processes,in ms (**2000** by default)```js
{
"name": "my/shop",
"...": "...",
"scripts": {
"post-install-cmd": [
"PrestaShop\\Composer\\ScriptHandler::install"
]
},
"extra": {
"prestashop": {
"modules": {
"prestashop/blockreassurance": "^3",
"prestashop/contactform": "^4",
"prestashop/dashactivity": "^2",
"prestashop/dashgoals": "^2"
},
"processes": 2,
"update-frequency": 80
}
}
}
```### Performances
You may not need to overwrite modules installation between parallel builds during CI operations.
You can disable this feature using `NO_OVERWRITE` environment variable when calling `composer install` command.> This project is under MIT license