From ff3b7dd5f1e2c1b4008b698546733bc6f675afc9 Mon Sep 17 00:00:00 2001 From: Kevin Fodness <2650828+kevinfodness@users.noreply.github.com> Date: Fri, 10 May 2024 17:12:38 -0400 Subject: [PATCH] Remove deployignore, update distignore, add script to generate a test deploy package --- .deployignore | 52 ------------------------------------------ .distignore | 62 +++++++++++++++++---------------------------------- composer.json | 23 ++----------------- 3 files changed, 23 insertions(+), 114 deletions(-) delete mode 100644 .deployignore diff --git a/.deployignore b/.deployignore deleted file mode 100644 index ca52ad88..00000000 --- a/.deployignore +++ /dev/null @@ -1,52 +0,0 @@ -# Directories and files that we do not want to be included with the built -# IDEs -# version and deployed to WordPress.org. -*.sql -*.tar.gz -*.zip -.DS_Store -.babelrc -.circleci/config.yml -.distignore -.editorconfig -.eslintignore -.eslintrc.json -.git -.gitignore -.gitlab-ci.yml -.idea -.phpcs -.phpcs-cache.json -.phpcs.xml -.phpcs.xml.dist -.phpstan -.phpunit.result.cache -.travis.yml -.vscode -.wordpress-org -.wp-env.json -Gruntfile.js -README.md -Thumbs.db -assets/js/pluginsidebar -assets/js/util -behat.yml -bin -bitbucket-pipelines.yml -multisite.xml -multisite.xml.dist -node_modules -npm-debug.log -phpcs.xml -phpcs.xml.dist -phpstan.neon.dist -phpunit.xml -phpunit.xml.dist -tags -tests -vendor -webpack.config.js -wp-cli.local.yml -yarn.lock -DOCKER_ENV -babel.config.json diff --git a/.distignore b/.distignore index 852095f1..b83a139e 100644 --- a/.distignore +++ b/.distignore @@ -1,53 +1,33 @@ -# A set of files you probably don't want in your WordPress.org distribution -*.sql -*.tar.gz -*.zip -.DS_Store -.babelrc -.circleci/config.yml +# Exclusions when publishing to WordPress.org + +# Directories +.git +.github +assets/js/admin-settings +assets/js/components +assets/js/config +assets/js/pluginsidebar +assets/js/services +assets/js/util +node_modules +tests +vendor + +# Files .distignore .editorconfig .eslintignore .eslintrc.json -.git -.github .gitignore -.gitlab-ci.yml -.idea -.phpcs -.phpcs-cache.json +.nvmrc .phpcs.xml -.phpcs.xml.dist -.phpstan +.phpcs-cache.json .phpunit.result.cache -.travis.yml -.vscode -.wordpress-org -.wp-env.json -Gruntfile.js -README.md -Thumbs.db -assets/js/pluginsidebar -assets/js/util -behat.yml -bin -bitbucket-pipelines.yml +babel.config.json composer.json composer.lock -multisite.xml -multisite.xml.dist -node_modules -npm-debug.log -package-lock.json package.json -phpcs.xml -phpcs.xml.dist -phpstan.neon.dist -phpunit.xml +package-lock.json phpunit.xml.dist -tags -tests -vendor +README.md webpack.config.js -wp-cli.local.yml -yarn.lock diff --git a/composer.json b/composer.json index 2e4888a2..1c586170 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,8 @@ "test": [ "@phpcs", "@phpunit" - ] + ], + "test-release": "rsync -rc --exclude-from=.distignore ./ ~/Desktop/publish-to-apple-news/ --delete --delete-excluded" }, "config": { "allow-plugins": { @@ -29,25 +30,5 @@ "composer/installers": true, "dealerdirect/phpcodesniffer-composer-installer": true } - }, - "archive": { - "exclude": [ - "*.xml", - "*.dist", - "*.cache", - ".phpcs.xml", - ".editorconfig", - ".gitignore", - ".distignore", - ".deployignore", - ".github/", - ".phpcs/", - ".phpstan/", - "plugin-build/", - "tests/", - "publish-to-apple-news.zip", - "!vendor/", - "!.wordpress-org/" - ] } }