ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Create a wp-cli-shim

Open Rahe opened this issue 5 years ago • 2 comments

Describe your use case and the problem you are facing

Most of the time I need to centralize all the project dependencies into the composer.json file, wp-cli.phar executable too ! But this install lot's of PHP dependencies that can conflict with project dependencies. I can add wpcli to the required but ultimately only use the phar.

Describe the solution you'd like

Make a repository like https://github.com/phpro/grumphp-shim that can be added composing only with the .phar and not installing all the dependencies and still defining them into the composer.json file.

Rahe avatar Jun 10 '20 12:06 Rahe

I'm happy to add something like that, as dev dependencies have always been an issue. Not only do they cause conflicts, the autoloader also pollutes the real project with random code becoming active due to BC-logic in place.

schlessera avatar Jun 30 '22 15:06 schlessera

Related: https://github.com/wp-cli/wp-cli-bundle/issues/134

schlessera avatar Jun 30 '22 15:06 schlessera