Skip to content

Instantly share code, notes, and snippets.

@PaulMorel
Created August 9, 2020 23:29
Show Gist options
  • Save PaulMorel/4cdf31bb0bf8bd21c8b402cd359aa59c to your computer and use it in GitHub Desktop.
Save PaulMorel/4cdf31bb0bf8bd21c8b402cd359aa59c to your computer and use it in GitHub Desktop.
WordPress Composer Starter
{
"name": "project",
"repositories":[
{
"type":"composer",
"url":"https://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "advanced-custom-fields/advanced-custom-fields-pro",
"version": "5.8.12",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://connect.advancedcustomfields.com/index.php?p=pro&a=download"
},
"require": {
"philippbaschke/acf-pro-installer": "^1.0",
"composer/installers": "^1.0"
}
}
}
],
"require": {
"roots/wordpress": "^5.4",
"advanced-custom-fields/advanced-custom-fields-pro": "^5.8",
"wpackagist-plugin/classic-editor": "^1.5",
"wpackagist-plugin/wordpress-seo": "^14.0",
"wpackagist-plugin/acf-extended": "^0.8",
"drupal-composer/preserve-paths": "^0.1.5",
"wpackagist-plugin/timber-library": "^1.16"
},
"extra": {
"installer-paths": {
"public/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"public/wp-content/themes/{$name}/": ["type:wordpress-theme"]
},
"wordpress-install-dir": "public/",
"preserve-paths": [
"public/.gitignore",
"public/wp-config.php",
"public/wp-content/plugins",
"public/wp-content/themes",
"public/wp-content/uploads"
]
},
"require-dev": {
"wpackagist-plugin/query-monitor": "^3.5",
"wpackagist-plugin/regenerate-thumbnails": "^3.1",
"wpackagist-plugin/monkeyman-rewrite-analyzer": "^1.0",
"wpackagist-plugin/wp-migrate-db": "^1.0"
},
"scripts": {
"post-install-cmd": [
"find ./public/wp-content/themes -type d -name 'twenty*' -not -name 'twentytwenty' -delete"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment