Skip to content

Instantly share code, notes, and snippets.

@salcode
Created April 22, 2015 18:25
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 salcode/938632ad2d607703e5e9 to your computer and use it in GitHub Desktop.
Save salcode/938632ad2d607703e5e9 to your computer and use it in GitHub Desktop.
I'd prefer not to define a version (in this case 0.1.1) in the Hash-Link-Scroll-Offset WordPress plugin package, since I always want the latest version from the master branch. Is there a better way to setup this WordPress Plugin that lives on GitHub in my composer.json file?
{
"repositories":[
{
"type":"composer",
"url":"http://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "WebDevStudios/Hash-Link-Scroll-Offset",
"version": "0.1.1",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://github.com/WebDevStudios/Hash-Link-Scroll-Offset/archive/master.zip"
},
"require": {
"composer/installers": "v1.0.6"
}
}
}
],
"require": {
"wpackagist-plugin/markdown-on-save":">1.2",
"WebDevStudios/Hash-Link-Scroll-Offset": ">=0.1.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment