diff --git a/composer.json b/composer.json index afa4fe20..0ddeaaf8 100644 --- a/composer.json +++ b/composer.json @@ -1,68 +1,74 @@ { - "name": "patronage/bubs", + "name": "patronage/bubs-timber", "type": "project", "license": "MIT", "description": "WordPress boilerplate for pairing with Next.js", "homepage": "https://www.patronage.org", - "repositories": [ - { - "type": "composer", - "url": "https://wpackagist.org" + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "vendor-dir": "wp-content/plugins/composer-libs", + "allow-plugins": { + "ffraenz/private-composer-installer": true, + "composer/installers": true }, - { - "type": "package", - "package": { - "name": "advanced-custom-fields/advanced-custom-fields-pro", - "version": "6.2.0", - "type": "wordpress-plugin", - "dist": { - "type": "zip", - "url": "https://connect.advancedcustomfields.com/index.php?a=download&p=pro&k={%PLUGIN_ACF_KEY}&t={%VERSION}" - }, - "require": { - "composer/installers": "^2.2.0", - "ffraenz/private-composer-installer": "^5.0.1" - } - } + "platform": { + "php": "8.0.28" } - ], + }, + "minimum-stability": "dev", + "prefer-stable": true, "require": { "php": ">=8.0", - "composer/installers": "^2.2.0", - "advanced-custom-fields/advanced-custom-fields-pro": "6.2.0", - "upstatement/routes": "0.9.1", + "composer/installers": "^1.8", + "advanced-custom-fields/advanced-custom-fields-pro": "6.2.1.1", "wpackagist-plugin/acf-repeater-flexible-content-collapser": "1.2.8", "wpackagist-plugin/debug-bar": "1.1.4", "wpackagist-plugin/debug-bar-timber": "1.1.6", - "wpackagist-plugin/disable-emojis": "1.7.5", + "wpackagist-plugin/disable-emojis": "1.7.6", "wpackagist-plugin/duplicate-post": "4.5", - "wpackagist-plugin/enable-media-replace": "4.1.2", + "wpackagist-plugin/enable-media-replace": "4.1.4", "wpackagist-plugin/filter-page-by-template": "3.1", "wpackagist-plugin/google-apps-login": "3.4.6", "wpackagist-plugin/post-type-archive-links": "1.3.1", "wpackagist-plugin/post-type-switcher": "3.2.1", "wpackagist-plugin/query-monitor": "3.13.1", "wpackagist-plugin/redirection": "5.3.10", - "wpackagist-plugin/safe-svg": "2.1.1", - "wpackagist-plugin/simple-history": "4.5.0", + "wpackagist-plugin/safe-svg": "2.2.0", + "wpackagist-plugin/simple-history": "4.6.0", "wpackagist-plugin/so-clean-up-wp-seo": "4.0.1", "wpackagist-plugin/term-management-tools": "2.0.1", "wpackagist-plugin/timber-library": "1.22.1", "wpackagist-plugin/transients-manager": "2.0.3", "wpackagist-plugin/user-switching": "1.7.0", - "wpackagist-plugin/wordpress-seo": "20.13" + "wpackagist-plugin/wordpress-seo": "21.2" }, - "config": { - "optimize-autoloader": true, - "preferred-install": "dist", - "vendor-dir": "wp-content/plugins/composer-libs", - "allow-plugins": { - "ffraenz/private-composer-installer": true, - "composer/installers": true + "repositories": [ + { + "type": "composer", + "url": "https://wpackagist.org", + "only": [ + "wpackagist-plugin/*", + "wpackagist-theme/*" + ] + }, + { + "type": "package", + "package": { + "name": "advanced-custom-fields/advanced-custom-fields-pro", + "version": "6.2.1.1", + "type": "wordpress-plugin", + "dist": { + "type": "zip", + "url": "https://connect.advancedcustomfields.com/index.php?a=download&p=pro&k={%PLUGIN_ACF_KEY}&t={%VERSION}" + }, + "require": { + "composer/installers": "^1.8", + "ffraenz/private-composer-installer": "^5.0" + } + } } - }, - "minimum-stability": "dev", - "prefer-stable": true, + ], "extra": { "installer-paths": { "composer/wp-content/mu-plugins/{$name}/": [ @@ -78,6 +84,9 @@ "wordpress-install-dir": "composer/wp" }, "scripts": { + "post-root-package-install": [ + "php -r \"copy('.env.example', '.env');\"" + ], "post-install-cmd": [ "bash ./_init/init.sh" ],