-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add deploy script and update composer dependencies for private setup #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f5ef087
a85e477
133c74e
5e5abfb
6daa0a4
ad5d59f
035cf1e
d2ff8fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,16 @@ | |
| "minimum-stability": "stable", | ||
| "prefer-stable": true, | ||
| "repositories": [ | ||
| { | ||
| "name": "satispress", | ||
| "type": "composer", | ||
| "url": "https://packagist.yard.nl/satispress/" | ||
| }, | ||
| { | ||
| "name": "satis", | ||
| "type": "composer", | ||
| "url": "https://satis.yard.nl" | ||
| }, | ||
| { | ||
| "type": "composer", | ||
| "url": "https://wpackagist.org", | ||
|
|
@@ -51,7 +61,6 @@ | |
| "spatie/laravel-google-fonts": "^1.4", | ||
| "spatie/laravel-ignition": "^2.0", | ||
| "vlucas/phpdotenv": "^5.5", | ||
| "wp-cli/wp-cli-bundle": "^2.11", | ||
| "wp-media/imagify-plugin": "^2.2", | ||
| "wpackagist-plugin/cookie-law-info": "^3.2", | ||
| "wpackagist-plugin/relay": "^1.3", | ||
|
|
@@ -61,6 +70,7 @@ | |
| "yard/brave-csp": "^1.0", | ||
| "yard/brave-hooks": "^2.0", | ||
| "yard/config-expander": "^1.0", | ||
| "yard/wp-cli-bundle": "^2.0", | ||
| "yard/data": "^1.0", | ||
| "yard/multisite-url-fixer": "^1.0", | ||
| "yard/nutshell": "^2.1", | ||
|
|
@@ -79,16 +89,6 @@ | |
| "yard/lando-brave": "^1.0", | ||
| "yard/php-cs-fixer-rules": "^1.0" | ||
| }, | ||
| "suggest": { | ||
| "gravity/gravityforms": "", | ||
| "deliciousbrains-plugin/wp-migrate-db-pro": "", | ||
| "plugin/yard-dashboard": "", | ||
| "wpengine/advanced-custom-fields-pro": "", | ||
| "ypackagist/facetwp": "", | ||
| "ypackagist/searchwp": "", | ||
| "ypackagist/wp-seopress-pro": "", | ||
| "yard/wp-deployer": "dev" | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "App\\": "web/app/themes/sage/app/" | ||
|
|
@@ -118,12 +118,14 @@ | |
| "post-autoload-dump": [ | ||
| "Roots\\Acorn\\ComposerScripts::postAutoloadDump" | ||
| ], | ||
| "private-setup": [ | ||
| "composer repo add satis composer https://satis.yard.nl", | ||
| "composer repo add satispress composer https://packagist.yard.nl/satispress/", | ||
| "composer require yard/brave-private-setup --dev", | ||
| "wp acorn setup:dependencies", | ||
| "wp acorn setup:deployer" | ||
| "private-deployer": [ | ||
| "composer require yard/wp-deployer --dev" | ||
| ], | ||
|
Comment on lines
+121
to
+123
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 The Extended reasoning...What the bug is The No version constraint is specified. While Composer will add a caret constraint based on the currently-available major version when resolving, this means the constraint written into The specific code path
use Yard\Deployer\Host;
use Yard\Deployer\Loader;
use Yard\Deployer\Stage;
use function Yard\Deployer\wp;If any of these classes or the Why existing code doesn't prevent it
Impact This is a developer setup script, not part of the automated CI/CD pipeline, so it won't cause immediate failures. However, in a boilerplate/template repo shared across a team, running Step-by-step proof
How to fix Pin to the version that is confirmed working (v1.5.3 per "private-deployer": [
"composer require yard/wp-deployer:^1.5 --dev"
]This allows patch and minor updates (non-breaking per semver) while protecting against a future major-version API break. |
||
| "private-packages": [ | ||
|
SimonvanWijhe marked this conversation as resolved.
|
||
| "composer require --no-interaction gravity/gravityforms deliciousbrains-plugin/wp-migrate-db-pro plugin/yard-dashboard wpengine/advanced-custom-fields-pro ypackagist/facetwp ypackagist/searchwp ypackagist/wp-seopress-pro" | ||
| ], | ||
| "gemeente-packages": [ | ||
| "composer require --no-interaction yard/brave-owc" | ||
| ] | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.