oneup / contao-developer-convenience-bundle
Provides a set of tools to use while developing with contao
Installs: 6 671
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 5
Forks: 0
Type:symfony-bundle
Requires
- php: >=7.2
- contao/core-bundle: ^4.9
- symfony/config: ^3.3|^4.0
- symfony/console: ^3.3|^4.0
- symfony/dependency-injection: ^3.3|^4.0
- symfony/framework-bundle: ^3.0|^4.0
- symfony/http-kernel: ^3.3|^4.0
- symfony/process: ^3.3|^4.0
- symfony/yaml: ^3.3|^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.13
- php-http/guzzle6-adapter: ^1.1
README
This bundle for Contao contains a set of tools that come in handy while developing with Contao. Currently included commands:
-
dev:sync <environment>
Synchronise Database and Files from a remote installation
-
dev:imageoptim <environment>
Requirements
This bundle needs a working mage configuration (mage.yml
)
imageoptim
The dev:imageoptim
command also requires a set of node.js modules.
Add them in your package.json
file as shown below.
{
"name": "...",
"version": "...",
[...]
"dependencies": {
[...]
"imagemin": "^7.0.1",
"imagemin-guetzli": "^3.0.0",
"imagemin-mozjpeg": "^9.0.0",
"imagemin-pngquant": "^9.0.0",
[...]
Configuration
You can configure the image-optimization in your app's config (app/config/config.yml
).
developer_convenience: imageoptim: jpeg: quality: 85 png: quality: 65-80 speed: 7
parameters are omittable. They default to above shown values.
quality
parameters range in between [1-100]
, where 100
results in the best quality.
speed
parameter is only available for the png modules. This value ranges in between [0-10]
, where 10
is the fastest (while decreasing quality).
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE