You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to use a custom build script in the WordPress plugin "Pronamic Pay with Rabo Smart Pay for WooCommerce", because the WordPress.org plugin review team did not allow certain files in the build.
I had to use a custom build script in the WordPress plugin "Pronamic Pay with Rabo Smart Pay for WooCommerce", because the WordPress.org plugin review team did not allow certain files in the build.
https://github.com/pronamic/pronamic-pay-with-rabo-smart-pay-for-woocommerce/blob/14eea88aa9a4fb62e5b0a149ca0effe41bf7ea91/build/scripts/build.php#L1-L34
I had to split the build into 2 steps/stages.
The problem in this tool is dat
composer install --no-dev --prefer-dist --optimize-autoloader
can still install files that are not allowed:pronamic-cli/src/WpBuildCommand.php
Lines 139 to 151 in e9ba592
To work around this I perform a second
rsync
call to again exclude the.distignore
paths, for this I use 2 folders:build/stage-1
build/stage-2
In this tool it's currently just one:
build/project
rsync --recursive --verbose --exclude-from=$build_dir/scripts/stage-1-ignore.txt --exclude-from=.distignore $src_dir/ $stage_1_dir/
composer install --no-dev --prefer-dist --optimize-autoloader --working-dir=$stage_1_dir
rsync --recursive --verbose --exclude-from=.distignore $stage_1_dir/ $stage_2_dir/
vendor/bin/phpcbf -s -v --standard=$build_dir/scripts/phpcs-text-domain-fixer.xml $stage_2_dir
vendor/bin/wp i18n make-pot $stage_2_dir --slug=$slug
vendor/bin/wp dist-archive $stage_2_dir $artifacts_dir/ --create-target-dir --plugin-dirname=$slug
It would be nice if this tool could be adapted to work in a similar way.
The text was updated successfully, but these errors were encountered: