Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Last active March 20, 2019 20:35
Show Gist options
  • Save josephabrahams/e28538607a7a0bfa3f9be0fbe755ef6a to your computer and use it in GitHub Desktop.
Save josephabrahams/e28538607a7a0bfa3f9be0fbe755ef6a to your computer and use it in GitHub Desktop.
WP Composer File
{
"repositories":[
{
"type":"composer",
"url":"https://wpackagist.org"
},
{
"type": "vcs",
"url": "https://github.com/__your_github_org__/acf-pro.git"
}
],
"require": {
"php": "~7.0.0",
"ext-imagick": "*",
"ext-redis": "*",
"oscarotero/env": "~1.0.0",
"johnpbloch/wordpress": "~4.6.0",
"humanmade/s3-uploads": "~1.1.0",
"__your_github_org__/acf-pro": "5.5.1",
"wpackagist-plugin/batcache": "1.4",
"wpackagist-plugin/secure-db-connection": "~1.1.0",
"wpackagist-plugin/sendgrid-email-delivery-simplified": "~1.10.0",
"wpackagist-plugin/timber-library": "~1.1.0",
"wpackagist-plugin/wp-redis": "~0.6.0",
"wpackagist-plugin/wp-sentry-integration": "~2.0.0",
"wp-cli/wp-cli": "~0.24.0"
},
"require-dev": {
"psy/psysh": "~0.7.0",
"squizlabs/php_codesniffer": "~2.6.0",
"wpackagist-plugin/debug-bar": "~0.8.0"
},
"extra": {
"installer-paths": {
"public/wp-content/mu-plugins/{$name}/": [
"type:wordpress-muplugin",
"humanmade/s3-uploads",
"__your_github_org__/acf-pro",
"wpackagist-plugin/batcache",
"wpackagist-plugin/debug-bar",
"wpackagist-plugin/secure-db-connection",
"wpackagist-plugin/sendgrid-email-delivery-simplified",
"wpackagist-plugin/timber-library",
"wpackagist-plugin/wp-redis",
"wpackagist-plugin/wp-sentry-integration"
],
"public/wp-content/plugins/{$name}/": [ "type:wordpress-plugin" ],
"public/wp-content/themes/{$name}/": [ "type:wordpress-theme" ]
},
"wordpress-install-dir": "public/wp"
},
"scripts": {
"post-install-cmd": [
"cp -f public/wp-content/mu-plugins/batcache/advanced-cache.php public/wp-content/advanced-cache.php",
"cp -f public/wp-content/mu-plugins/wp-redis/object-cache.php public/wp-content/object-cache.php",
"curl http://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem > ./conf/amazon-rds-ca-cert.pem"
],
"test": "phpcs --extensions=php -d memory_limit=-1 -n -s public/wp-config.php public/wp-content/themes/"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment