File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 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 {}
Original file line number Diff line number Diff line change 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" ,
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" ,
You can’t perform that action at this time.
0 commit comments