Booty is an asset deployment tool (with an optional cli command for use with Bone Framework). v1.x currently takes an array of source folders with a key, and
deploys a symlink to your destination folder (usually your web server's public/
folder)
composer require delboy1978uk/booty
When adding an asset folder, the key name will be converted from any CapsOrCamelCaseEtc
to caps-or-camel-case-etc
in the symlink, for better URLs.
<?php
use Del\Booty\AssetManager;
$am = new AssetManager();
$am->addAssetsFolder('some', 'some/folder/with/css/js/etc');
$am->addAssetsFolder('another', 'another/folder/with/css/js/etc');
$am->setDestinationFolder('/var/www/html/public/');
$am->deployAssets();
This command will pick up all Bone Framework src/
and vendor/
packages and use the asset manager to deploy the
files to the public/
directory. In your terminal:
bone assets:deploy
or aliased:
bone a:d