Skip to content

Conversation

@n7studios
Copy link
Contributor

@n7studios n7studios commented Jun 19, 2025

Summary

Registers a number of commands in the scripts section of Composer, which serve as shorthand commands for testing and other common tasks performed in development, to save repetitively typing longer commands with commonly used flags / arguments.

Command Description
create-release-assets Generates both the language translation template file (POT) and documentation for actions/filters
create-pot Generates just the language translation template file (POT)
create-dev-docs Generates just the documentation for actions/filters
phpcs Runs PHP CodeSniffer on the entire plugin codebase
phpcs-tests Runs PHP CodeSniffer specifically on the tests directory using test-specific standards
phpstan Runs PHPStan static analysis with increased memory limit
test Builds and runs end-to-end tests with fail-fast enabled
test-integration Builds and runs integration tests with fail-fast enabled

Commands can be run using e.g. composer test or composer phpstan

Screenshot 2025-06-19 at 20 07 30

Testing

Existing tests pass

Checklist

@n7studios n7studios self-assigned this Jun 19, 2025
@n7studios n7studios requested review from a team, corydhmiller and noelherrick and removed request for a team June 21, 2025 02:41
@n7studios n7studios marked this pull request as ready for review June 21, 2025 02:47
@github-actions
Copy link

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@Kit Kit deleted a comment from github-actions bot Jun 23, 2025
@n7studios n7studios merged commit b0ef15d into main Jun 24, 2025
442 of 485 checks passed
@n7studios n7studios deleted the add-composer-scripts branch July 12, 2025 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants