Skip to content

Commit 8ae6cd0

Browse files
authored
Merge pull request #131 from wp-graphql/feat/129-replace-updater-in-build
feat: replace Appsero Updater.php with blank class to pass .org req's
2 parents 24bd4cd + de0c24a commit 8ae6cd0

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

build/Updater.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
namespace Appsero;
3+
4+
/**
5+
* Temp replacement for the Updater.php class
6+
* to allow the plugin to pass WordPress.org
7+
* review process until Appsero has a formal solution.
8+
*
9+
* This file is used to replace the Updater.php class in the Appsero vendor dep after
10+
* composer install is run, before the plugin is bundled as a .zip
11+
*
12+
* see: https://github.com/Appsero/client/issues/34
13+
*/
14+
class Updater {}

composer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@
7373
],
7474
"build-app": "@docker-build -a",
7575
"build-test": "@docker-build -t",
76-
"build-plugin": "composer install --no-dev && composer run-script zip && composer install",
76+
"build-plugin": [
77+
"composer install --no-dev",
78+
"composer run-script zip",
79+
"composer install"
80+
],
7781
"run-app": "@docker-run -a",
7882
"run-test": "@docker-run -t",
7983
"lint": "vendor/bin/phpcs",
@@ -89,6 +93,10 @@
8993
"phpstan": [
9094
"phpstan analyze --ansi --memory-limit=1G"
9195
],
96+
"post-install-cmd": [
97+
"rm ./vendor/appsero/client/src/Updater.php",
98+
"cp ./build/Updater.php ./vendor/appsero/client/src/"
99+
],
92100
"zip": [
93101
"mkdir -p plugin-build/wpgraphql-acf",
94102
"rsync -rc --exclude-from=.distignore --exclude=plugin-build . plugin-build/wpgraphql-acf/ --delete --delete-excluded -v",

0 commit comments

Comments
 (0)