Last active
January 3, 2024 16:41
-
-
Save twentyfortysix/5b88880c4e8e65ac7d012ff45a2b8294 to your computer and use it in GitHub Desktop.
Wordpress Bedrock composer settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "roots/bedrock", | |
"type": "project", | |
"license": "MIT", | |
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure", | |
"homepage": "https://roots.io/bedrock/", | |
"authors": [ | |
{ | |
"name": "Scott Walkinshaw", | |
"email": "scott.walkinshaw@gmail.com", | |
"homepage": "https://github.com/swalkinshaw" | |
}, | |
{ | |
"name": "Ben Word", | |
"email": "ben@benword.com", | |
"homepage": "https://github.com/retlehs" | |
} | |
], | |
"keywords": [ | |
"bedrock", "composer", "roots", "wordpress", "wp", "wp-config" | |
], | |
"support": { | |
"issues": "https://github.com/roots/bedrock/issues", | |
"forum": "https://discourse.roots.io/category/bedrock" | |
}, | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://wpackagist.org", | |
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"] | |
}, | |
{ | |
"type": "package", | |
"package": { | |
"name": "2046cz/almond-milk", | |
"version": "0.0.4", | |
"type": "wordpress-theme", | |
"source": { | |
"url": "https://github.com/twentyfortysix/almond-milk.git", | |
"type": "git", | |
"reference": "master" | |
} | |
} | |
} | |
], | |
"require": { | |
"php": ">=7.1", | |
"composer/installers": "^1.11", | |
"vlucas/phpdotenv": "^5.3", | |
"oscarotero/env": "^2.1", | |
"roots/bedrock-autoloader": "^1.0", | |
"roots/bedrock-disallow-indexing": "^2.0", | |
"roots/wordpress": "6.4.2", | |
"roots/wp-config": "1.0.0", | |
"roots/wp-password-bcrypt": "1.0.0", | |
"wpackagist-plugin/codepress-admin-columns": "^4.3", | |
"wpackagist-plugin/advanced-access-manager": "^6.7", | |
"wpackagist-plugin/paste-as-plain-text": "^1.0", | |
"wpackagist-plugin/simple-custom-post-order": "^2.5", | |
"wpackagist-plugin/clean-image-filenames": "^1.3", | |
"wpackagist-plugin/disable-xml-rpc": "^1.0", | |
"wpackagist-plugin/tinymce-advanced" : "^5.9.2", | |
"wpackagist-plugin/wordfence" : "^7.5.8", | |
"wpackagist-plugin/w3-total-cache" : "^2.2.1", | |
"wpackagist-plugin/litespeed-cache" : "^5.5", | |
"wpackagist-plugin/wordpress-seo" : "^18.1", | |
"wpackagist-plugin/wp-migrate-db" : "^2.6.0", | |
"wpackagist-plugin/acf-content-analysis-for-yoast-seo" : "^3.0.1", | |
"wpackagist-plugin/wp-mail-smtp" : "^3.8.0", | |
"wpackagist-plugin/contact-form-7" : "^5.7.6", | |
"wpackagist-plugin/gmail-smtp" : "^1.2.3.8", | |
"wpackagist-plugin/wp-theme-test" : "^1.2.1", | |
"2046cz/almond-milk": "^0.0.4", | |
"timber/timber": "^2.0.0-alpha.6", | |
"twbs/bootstrap" : "5.1.3" | |
}, | |
"require-dev": { | |
"squizlabs/php_codesniffer": "^3.6.0", | |
"roave/security-advisories": "dev-master" | |
}, | |
"config": { | |
"optimize-autoloader": true, | |
"preferred-install": "dist" | |
}, | |
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"extra": { | |
"installer-paths": { | |
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"], | |
"web/app/plugins/{$name}/": ["type:wordpress-plugin"], | |
"web/app/themes/{$name}/": ["type:wordpress-theme"] | |
}, | |
"wordpress-install-dir": "web/wp" | |
}, | |
"scripts": { | |
"post-root-package-install": [ | |
"php -r \"copy('.env.example', '.env');\"", | |
"composer run remove-old-wp-themes" | |
], | |
"post-install-cmd": [ | |
"composer run remove-old-wp-themes" | |
], | |
"pre-update-cmd": [ | |
"composer run backup-database" | |
], | |
"post-update-cmd": [ | |
"rm -rf web/app/themes/almond-milk/bootstrap", | |
"cp -R vendor/twbs/bootstrap/dist web/app/themes/almond-milk/bootstrap" | |
], | |
"remove-old-wp-themes": [ | |
"rm -rf web/wp/wp-content/themes/twenty*" | |
], | |
"backup-database": [ | |
"if type \"wp\" > /dev/null; then wp db export && mkdir -p db_backup && mv -- *.sql db_backup; fi" | |
], | |
"test": [ | |
"phpcs" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment