Skip to content
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

feat: replace Appsero Updater.php with blank class to pass .org req's #131

Merged
merged 2 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions build/Updater.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
namespace Appsero;

/**
* Temp replacement for the Updater.php class
* to allow the plugin to pass WordPress.org
* review process until Appsero has a formal solution.
*
* This file is used to replace the Updater.php class in the Appsero vendor dep after
* composer install is run, before the plugin is bundled as a .zip
*
* see: https://github.com/Appsero/client/issues/34
*/
class Updater {}
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@
],
"build-app": "@docker-build -a",
"build-test": "@docker-build -t",
"build-plugin": "composer install --no-dev && composer run-script zip && composer install",
"build-plugin": [
"composer install --no-dev",
"composer run-script zip",
"composer install"
],
"run-app": "@docker-run -a",
"run-test": "@docker-run -t",
"lint": "vendor/bin/phpcs",
Expand All @@ -89,6 +93,10 @@
"phpstan": [
"phpstan analyze --ansi --memory-limit=1G"
],
"post-install-cmd": [
"rm ./vendor/appsero/client/src/Updater.php",
"cp ./build/Updater.php ./vendor/appsero/client/src/"
],
"zip": [
"mkdir -p plugin-build/wpgraphql-acf",
"rsync -rc --exclude-from=.distignore --exclude=plugin-build . plugin-build/wpgraphql-acf/ --delete --delete-excluded -v",
Expand Down
Loading