I'm trying to create a local Bolt extension that uses extra libraries. Here is a snippet of my composer.json
:
"type": "bolt-extension",
"require": {
"bolt/bolt": ">=2.0.0,<3.0.0",
"oyejorge/less.php": "~1.7"
}
First, is it even possible/advisable to manage dependencies this way in local Bolt extensions? Or, do I need to manually include the library and autoload the files?
Secondly, what is the mechanism by which I should update the composer.json file in my extension? Should I browse to the directory and run composer update
, or is there a more Bolt-y way of doing it?