coenjacobs / wordpress-composer-installer

47 stars 4 forks source link

Move vendor directory to wp-content level #1

Closed coenjacobs closed 9 years ago

coenjacobs commented 9 years ago

This PR will move the plugin dependencies vendor directory to wp-content/vendor.

It will change the install behaviour a bit, so it can install the dependencies in a complete separate routine and separate composer.json file (plugins-composer.json actually).

This needs to run the installer twice actually, the second time without a plugins-composer.lock file that will be generated after running the first installer on plugins-composer.json. The first will install the wikimedia/composer-merge-plugin package, while the second will run the merge and install all the dependencies of all the hooked in plugins.

The first installer can run on activation of this WordPress plugin, the second as initial setup step maybe? It will need to run again and again after a plugin has been activated or deactivated, so it can resolve the dependencies again to make sure the right dependencies are available.

Todo before this is ready to merge: