For every bit of configuration that we might need in Composer scripts or packages, we can add extra data.
{
"extra" : {
"wordpress-install-dir" : "",
"wordpress-env-dir" : "",
"bash-profile-dir" : ""
}
}
The problem: The more packages we have, the more messy it gets. We should set a standard as soon as possible.
Summon everything WordPress related:
{
"extra" : {
"wordpress" : {
"install-dir" : "",
"env-dir" : "",
"bash-dir" : ""
}
}
}
What names should pathes have? Should we mirror the wp-config.php constants? Underscore to Dash tranformation and all lower case characters? Example: WP_CONTENT_DIR becomes wp-content-dir, WP_DEBUG becomes wp-debug etc.
Please add your suggestions as comments or forks. I will keep this file updated with your additions.
@tarendai What I tried to say is exactly that:
WP_CONTENT_DIRbecomeswp-content-dir(Dash and lower case transformation). English still isn't my first language :PMaybe it would be even better if we have a rule that removes the use of
wordpressandwpas it's already clear that this is the topic. SoWP_CONTENT_DIRwould become justcontent-dir.