composer-wp
composer-wp copied to clipboard
wp-languages.github.io support
Here is a composer.json example file to see:
{
"name": "composer-wp/demo",
"description": "Demo package for testing purposes",
"type": "application","repositories": [ {
"type": "composer",
"url": "https://wp-languages.github.io"
} ],
"require": {
"koodimonni/mu-plugins": "@stable",
"koodimonni-language/eu": "@stable",
"roots/wp-password-bcrypt": ">=1.0.0",
"wcm/wcm-lang-switch": ">=1.7.6",
"wordpress/wordpress": "dev-trunk",
"wp-sync-db/wp-sync-db": "dev-master",
"wp-sync-db/wp-sync-db-media-files": "dev-master",
"wp-sync-db/wp-sync-db-cli": "dev-master"
},
"extra": {
"composer-wp": {
"installer": {
"wp-content-path": "app",
"wordpress-path": "htdocs",
"symlink-wp-content": true,
"mu-plugin-autoloader": true,
"dev-first": true
}
},
"dropin-paths": {
"app/languages": ["vendor:koodimonni-language"],
"app/languages/plugins": ["vendor:koodimonni-plugin-language"],
"app/languages/themes": ["vendor:koodimonni-theme-language"]
}
},
"scripts": {
"pre-cmd": [
"printf \"\\n\\t`tput bold`Install vendors`tput sgr0`\\n\\n\"",
"composer global require balbuf/composer-wp hirak/prestissimo"
],
"pre-install-cmd": "@pre-cmd",
"pre-update-cmd": "@pre-cmd"
},
"license": "MIT",
"minimum-stability": "dev"
}
I want to add some languages mantaining the folder tree defined by wp-content-path value, but if there are a composer-installer required in any dependency (like koodimonni/composer-dropin-installer package), looses precedence and some rules are skipped.
Hey there! Sorry I haven't had a chance to look into this until now - hopefully I'll have something by today.
@balbuf Sorry, I've missed your comment. Thanks for your effort, do you have something new?
Hi @anboto -
I'm very sorry about the delay! I just published a new release that should fix the issue with the installers. The installer settings should now behave as the README states, and your composer.json above should work as you expected. Would you try it out for me and let me know? Thanks!