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

Move lint script to sitting under npm-run-all, to allow parallel runners #517

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

Clorith
Copy link
Member

@Clorith Clorith commented Aug 21, 2024

Short introduction

Introduce npm-run-all to allow concurrent or parallel scripts, and defaults npm run lint to use the parallel feature.

Description

Some scripts can take time to run in a large project, when the same processing needs to cover the same set of files, time compounds. By running in parallel this time can (usually) be cut down heavily.

This stood between concurrently (used in other projects), and npm-run-all. I've gone with the latter due to some longstanding reported bugs with the first that indicate if there's failures in multiple jobs it may not bubble up failures, and give false positives, but this can of course be re-evaluated in the future if need be, but doing it this way also aligns us with what WordPress uses (and staying close to WordPress Core where possible is always a boon).

See #451 for associated enhancement ticket.

@PeterBooker PeterBooker merged commit 9c1d168 into main Aug 21, 2024
4 checks passed
@PeterBooker PeterBooker deleted the task/concurrent-npm-scripts branch August 21, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants