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.
I would prefer
wp-content-dir
overWP_CONTENT_DIR
as it's more consistent with the case and style of the other composer attributes