Skip to content

Instantly share code, notes, and snippets.

@svandragt
Last active December 12, 2019 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svandragt/62c146085c66b1b2570ce1994d051fec to your computer and use it in GitHub Desktop.
Save svandragt/62c146085c66b1b2570ce1994d051fec to your computer and use it in GitHub Desktop.
Replace plugin with non-packagist composer version, in custom location.
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/wp-shortcake/shortcake"
},
],
"require": {
"oomphinc/composer-installers-extender": "^1.1",
"fusioneng/shortcake": "dev-master#0.7.4"
},
"extra": {
"installer-types" : [
"library",
"phpcodesniffer-standard",
"project"
],
"installer-paths": {
"plugins/shortcode-ui": [
"fusioneng/shortcake"
],
"plugins/{$name}": [
"type:wordpress-plugin"
]
}
}
}
The extras > installer-paths > plugins/shortcode-ui key is only required for custom installation (by default this installs insto plugins/shortcake.
This plugin is not available from packagist thus a VCS repository tag is tracked.
git rm plugins/shortcode-ui -rf
composer update fusionend/shortcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment