guni / themegenerator-bundle
Combines JS-Files and converts SASS to CSS
Requires
- php: ^8.2 || ^8.3
- league/flysystem-bundle: ^3.3
- matthiasmullie/minify: ^1.3
- psr/log: ^3.0
- scssphp/scssphp: ^1.12
- symfony/serializer: ^6.4 || ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.54
- php-parallel-lint/php-var-dump-check: dev-master
- phpmd/phpmd: ^2.15
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpstan/phpstan-symfony: ^1.3
- symfony/phpunit-bridge: ^6.4 || ^7.0
README
Goal of the project
Most of my projects contain SASS and JS files and (actually all) contain Symfony (Pimcore, plain Symfony, Sulu). In order to be able to handle the files in the same way on different environments (dev, stg, prod, pipeline) without having to put additional effort into the infrastructure, I have built this bundle.
Installation
Add this config file and the flysystem config in your config/package folder. In a later release it is planned that the files will be inserted via symfony/recipe.
Add
Guni\ThemeGeneratorBundle\GuniThemeGeneratorBundle::class => ['all' => true],
to yourconfig/bundles.php
- Execute:
$ composer require guni/themegenerator-bundle
Configure
asset_path:
Folder for the JS- and CSS-Files
destination:
js:
sass:
Filenames for JS- and CSS-File
sass:
SASS-basefile name
js_combine:
List of files to be combined
Usage
After configuration, a bin/console guni:theme:generate
is sufficient.