Just a quick one, I’ve just updated the Known dev tools with a new script –
There’s currently only one function available
enable-composer which, following my last post, provides a handy script for making your plugin composer installable.
Run the script, passing it the repository you’ve saved it as (so that the script can set the packagist headers correctly), and you’ll get an updated / new
composer.json with all the appropriate values set.
You can optionally set whether the plugin is a straight plugin, theme or console plugin (known-plugin is default). You can also target directories other than the current directory, although realistically you’re never really going to run it from any other directory.