Skip to content

Instantly share code, notes, and snippets.

@mrmu
Created August 5, 2017 05:00
Show Gist options
  • Save mrmu/dd098ead7cb2e9c4ed467a09d6ef7903 to your computer and use it in GitHub Desktop.
Save mrmu/dd098ead7cb2e9c4ed467a09d6ef7903 to your computer and use it in GitHub Desktop.
2017 coscup - composer.json sample (放在網站根目錄)
{
"name": "coscup2017/iLoveWP",
"authors": [
{
"name": "AudiLu",
"email": "[email protected]"
}
],
"autoload": {
"classmap": [
"wp-content/themes/my-theme/lib/"
]
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require-dev": {
"wpackagist-plugin/debug-bar": "^0.9"
},
"require": {
"composer/installers": "^1.3",
"facebook/graph-sdk": "~5.6",
"google/recaptcha": "~1.1",
"wpackagist-plugin/password-bcrypt": "^1.0",
"wpackagist-plugin/woocommerce": "^3.1",
"wpackagist-plugin/wordfence": "^6.3",
"wpackagist-theme/understrap": "^0.6"
},
"extra": {
"installer-paths": {
"wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"wp-content/themes/{$name}/": ["type:wordpress-theme"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment