Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update since command for standalone plugin usage #1119

Merged
merged 10 commits into from
Apr 10, 2024

Conversation

thelovekesh
Copy link
Member

Summary

Fixes #1118

Relevant technical choices

  • Add --plugin flag to pass the specific plugin name.
  • If no --plugin flag is passed, it will run on PL plugin.
  • Return with error if --plugin is passed with wrong plugin name.

Copy link

github-actions bot commented Apr 9, 2024

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: thelovekesh <thelovekesh@git.wordpress.org>
Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: felixarntz <flixos90@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@thelovekesh thelovekesh added [Type] Enhancement A suggestion for improvement of an existing feature Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release labels Apr 9, 2024
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR @thelovekesh, this looks great!

Just a few minor points of feedback.

bin/plugin/commands/since.js Outdated Show resolved Hide resolved
bin/plugin/commands/since.js Show resolved Hide resolved
bin/plugin/commands/since.js Outdated Show resolved Hide resolved
bin/plugin/commands/since.js Outdated Show resolved Hide resolved
bin/plugin/commands/since.js Outdated Show resolved Hide resolved
bin/plugin/commands/since.js Outdated Show resolved Hide resolved
thelovekesh and others added 6 commits April 9, 2024 23:54
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thelovekesh Thank you for the updates, LGTM!

@@ -17,7 +22,7 @@ const catchException = ( handler ) => {
try {
await handler( ...args );
} catch ( error ) {
console.error( error ); // eslint-disable-line no-console
console.error( formats.error( error.message ) ); // eslint-disable-line no-console
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool 😎

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thelovekesh @westonruter, current code looks great!

@westonruter westonruter merged commit 308f61a into trunk Apr 10, 2024
12 of 15 checks passed
@westonruter westonruter deleted the update/since-command branch April 10, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release [Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance npm run since command to support standalone plugins
3 participants