delboy1978uk / booty
Booty is an asset manager for Bone Framework
Installs: 1 741
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.2
Requires (Dev)
- codeception/codeception: ^5.1
- codeception/module-asserts: ^3.0
- roave/security-advisories: dev-latest
README
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)
installation
composer require delboy1978uk/booty
usage
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();
bone cli usage
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