Symlinks - can we link the plugins/theme folders instead of each folder within them
Perhaps a minority usecase but I think it might be better to just create 2 symlinks (e.g. for themes
and plugins
, rather than one for each plugin)
This would be useful because you can then create a new plugin without having to up/down the environment,
e.g. instead of defining
WP_SOURCE_PLUGIN_PATH
WP_SOURCE_PLUGIN_PATH
WP_DEST_THEMES_PATH
WP_DEST_PLUGINS_PATH
Maybe do
WP_SOURCE_WP_CONTENT_PATH
WP_DEST_WP_CONTENT_PATH
then it's just two symlinks in bin/dev
in the create_symlinks)
ln -sf ${WP_SOURCE_WP_CONTENT_PATH}/themes; ${WP_DEST_WP_CONTENT_PATH}/themes;
ln -sf ${WP_SOURCE_WP_CONTENT_PATH}/plugins; ${WP_DEST_WP_CONTENT_PATH}/plugins;