flex
flex copied to clipboard
Real composer scripts
While using in the manifest composer-scripts
I just assumed its the scripts
part of the composer.json
and thats currently not 😅 .
It would be nice to be able to define them like
{
"composer-commands": {
"build-js": "npm run build"
}
}
and then I can run them with composer run build-js
. This works already out of the box with Composer when its in the correct key set 😅
Is a makefile an alternative?
Why not. That'd require a new configurator. PR welcome.
Hello
I also think that this would be a nice feature.
My user case.
I have created repository with configuration for PHP coding standard.
We have private recipe, which copy file and also modify Makefile - thanks to flex.
I have created PR - which add a new configuration option to recipe composer-commands
, so we could migrate to this configurator from Makefile.
Feedback is welcome.
Why not. That'd require a new configurator. PR welcome.
@nicolas-grekas You mean like this one? https://github.com/symfony/flex/blob/1.x/src/Configurator/MakefileConfigurator.php#L21 :)