Skip to content

Instantly share code, notes, and snippets.

@fastzen
Created January 24, 2017 01:13
Show Gist options
  • Save fastzen/52423dd6096662bac59a7fffb2222e45 to your computer and use it in GitHub Desktop.
Save fastzen/52423dd6096662bac59a7fffb2222e45 to your computer and use it in GitHub Desktop.
Example for adding composer to WordPress
{ "name": "fastzen/wpdemo", "description": "Getting started with WordPress and Composer", "license": "MIT", "repositories": [ { "type":"composer", "url":"https://wpackagist.org" } ], "require": { "composer/installers": "~1.0", "mohiohio/graphql-wp": "~0.3.1" }, "extra": { "installer-paths": { "wp-content/plugins/{$name}": ["type:wordpress-plugin"], "wp-content/themes/{$name}": ["type:wordpress-theme"], "wp-content/mu-plugins/{$name}": ["type:wordpress-muplugin"] } }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment