Build/Test Tools: Add descriptions for all registered Grunt tasks - #13024
Build/Test Tools: Add descriptions for all registered Grunt tasks#13024irozum wants to merge 1 commit into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @rozumiq@gmail.com. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
Nice, I quickly tested it and all tasks have a description in the 'Avaiable tasks' of the Grunt help. |
Of the 46 tasks registered in
Gruntfile.jsviagrunt.registerTask(), only 15 had adescriptionargument and 3 more had an explanatory docblock/comment above them without one. Neither a missing description nor a docblock-only comment shows up ingrunt --help, which surfaces only thedescriptionargument passed toregisterTask().This adds a one-line
descriptionto the remaining 31 tasks (the 28 with neither, plus the 3 with docblock-only comments), so every registered task is now discoverable viagrunt --help. No task behavior, task lists, or task functions were changed — this is a documentation-only diff.Verified with
grunt --helpthat all 46 tasks now list a description,jshint:gruntstill lints the file cleanly, andnpm run build:devstill builds successfully against the modifiedGruntfile.js.Trac ticket: https://core.trac.wordpress.org/ticket/65858
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Sonnet 5
Used for: Implementation and PR description. Reviewed by irozum.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.