Skip to content

Commit 2307829

Browse files
committed
Update composer.json: add build:vendor script and enhance zip exclusions
- Add build:vendor script for production dependency optimization - Update zip script to exclude vendor/.DS_Store and vendor/bin/ directories - Align with add-to-all repository composer configuration
1 parent f5e4ece commit 2307829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"minimum-stability": "dev",
3939
"prefer-stable": true,
4040
"scripts": {
41+
"build:vendor": "composer install --no-dev --optimize-autoloader --classmap-authoritative",
4142
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M",
4243
"phpstan-baseline": "vendor/bin/phpstan analyse --memory-limit=2048M --generate-baseline",
4344
"phpcs": "vendor/bin/phpcs -p -v -s --standard=phpcs.xml.dist $(find . -name '*.php')",
@@ -57,6 +58,6 @@
5758
"@phpcompat",
5859
"@phpstan"
5960
],
60-
"zip": "mkdir -p build && zip -X -r build/$(basename $(pwd)).zip . -x '*.git*' 'node_modules/*' '.*' '*/.git*' '*/.DS_Store' 'CODE_OF_CONDUCT.md' 'CONTRIBUTING.md' 'ISSUE_TEMPLATE.md' 'PULL_REQUEST_TEMPLATE.md' '*.dist' '*.yml' '*.neon' 'composer.*' 'package.json' 'package-lock.json' 'dev-helpers**' 'build**' 'wporg-assets**' 'test-tools**' 'docs/*' 'phpunit**' 'phpstan-bootstrap.php' 'phpcompat-tools**'"
61+
"zip": "mkdir -p build && zip -X -r build/$(basename $(pwd)).zip . -x '*.git*' 'node_modules/*' '.*' '*/.git*' '*/.DS_Store' 'vendor/**/.DS_Store' 'vendor/bin/*' 'CODE_OF_CONDUCT.md' 'CONTRIBUTING.md' 'ISSUE_TEMPLATE.md' 'PULL_REQUEST_TEMPLATE.md' '*.dist' '*.yml' '*.neon' 'composer.*' 'package.json' 'package-lock.json' 'dev-helpers**' 'build**' 'wporg-assets**' 'test-tools**' 'docs/*' 'phpunit**' 'phpstan-bootstrap.php' 'phpcompat-tools**'"
6162
}
6263
}

0 commit comments

Comments
 (0)