Automattic / wordbless

WorDBless allows you to use WordPress core functions in your PHPUnit tests without having to set up a database and the whole WordPress environment
Other
131 stars 6 forks source link

Clone WordPress repo into a tmp/vendor folder #32

Open brbrr opened 3 years ago

brbrr commented 3 years ago

I noticed that the WordPress repo is cloned into the root of the project. I was not expecting this type of behavior, and I don't think it is common across other tools either.

Is there a reason why it is being cloned into a root instead of the ./vendor folder?

szepeviktor commented 3 years ago

WordPress is not a library! Let me name it. WordPress is aaaaaaaaaaaaaaa ..................


This is how to tell Composer what to put where: https://github.com/szepeviktor/debian-server-tools/blob/master/webserver/wp-install/roots-composer.json#L17-L30

brbrr commented 3 years ago

Cool. But I guess it would be nice to incorporate this approach into the package itself. I don't think it should pollute the project root directory.

szepeviktor commented 3 years ago

Could you tell Composer what to put where in a dependency??