WordPress / playground-tools

GNU General Public License v2.0
140 stars 41 forks source link

Allow a configuration to map other folders and files #19

Open renatho opened 1 year ago

renatho commented 1 year ago

It would be nice if there was a way to map files and folders while running a project.

I have this, for example:

- woocommerce
    - (plugin) woocommerce
    - (plugin) woocommerce-subscriptions
    - (plugin) woocommerce-memberships
- shared
    - (plugin) query-monitor
    - (plugin) wp-crontrol
- sensei
    - (plugin) sensei-lms
    - (plugin) sensei-pro
- job-manager
    - (plugin) wp-job-manager
    - (plugin) wp-job-manager-applications
    - (plugin) wp-job-manager-alerts

Basically, I run 2 different environments (a Sensei and a Job Manager site). And both share plugins and themes from other folders (like the plugins I have in woocommerce and shared folders).

Currently, I’m doing it with Local using symbolic links. I’d love to have it in a config file, or something like that.

danielbachhuber commented 1 year ago

This would be cool 👍 Thanks for the suggestion!

We're adding some limited wp-env.json support with https://github.com/WordPress/wordpress-playground/issues/230

We're also considering some auto-setup functionality with https://github.com/WordPress/playground-tools/issues/20