Skip to content

Commit

Permalink
Add composer archive scripts to exclude dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerB24890 committed Aug 28, 2024
1 parent a82e6fc commit 3dafc13
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,37 @@
"phpcs": "./vendor/bin/phpcs . -p -s",
"phpcbf": "./vendor/bin/phpcbf .",
"phpcs:compat": "./vendor/bin/phpcs *.php includes -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4-",
"test:unit": "./vendor/bin/phpunit"
"test:unit": "./vendor/bin/phpunit",
"pre-archive-cmd": [
"composer install --no-dev --no-interaction --no-progress --optimize-autoloader"
],
"post-archive-cmd": [
"composer install --no-interaction --no-progress"
]
},
"archive": {
"exclude": [
"/.distignore",
"/.github",
"/.gitignore",
"/.wordpress-org",
"/.wp-env.json",
"/.wp-env.override.json",
"/CHANGELOG.md",
"/CODE_OF_CONDUCT.md",
"/composer.json",
"/composer.lock",
"/CONTRIBUTING.md",
"/CREDITS.md",
"/package-lock.json",
"/package.json",
"/phpcs.xml",
"/phpunit.xml.dist",
"/README.md",
"/webpack.config.js",
"/node_modules",
"/tests"
]
},
"config": {
"allow-plugins": {
Expand Down

0 comments on commit 3dafc13

Please sign in to comment.