-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
remove parallel #94
remove parallel #94
Conversation
😢 Why removing it? Would be great to keep it but use |
I'm looking the reduced complexity from both an API standpoint as well as an implementation standpoint. It's altogether simpler and more focused. And we get even more features and functionality by deferring to another package for this. Still considering it. |
I'd like to put this to a vote. For clarity, here's what's happening here: This removes the Arguments for:
Arguments against:
Please use GitHub emoji reactions on this comment to vote.
I'll check back in ~24 hours. I'll try to reach out to as many people as use the tool as possible. Here's a start: cc/ @DavidWells, @abhishekisnot, @rowanoulton, @giladgo, @tim-mcgee, @nkbt, @tleunen, @Hypercubed, @jisaacks, @boneskull, @RobinMalfait, @edm00se, @SamVerschueren, @sxn, @gunnx, @martellaj, @msegado, @beeman, @elijahmanor Feel free to comment if you have additional input/thoughts. |
src/index.js
Outdated
} else { | ||
return runSeries() | ||
} | ||
return runSeries() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we do end up removing it we should probably open a refactoring issue to clean this type of things up :)
@@ -75,7 +77,7 @@ scripts: | |||
build: | |||
default: webpack | |||
prod: webpack -p | |||
validate: nps --parallel lint,test,build | |||
validate: concurrently "nps lint" "nps test" "nps build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concurrently might prove an extra headache for Cygwin users, I guess. I'll try to see if there's any way to fix that though instead of using that as a basis for the decision at hand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding that. Seems like it wouldn't be too terrible to fix.
I'd go with a 😕 for now. Reducing the surface area's great (as well as having less code to maintain :D) but I'm wondering if in the long run it won't complicate things for users more than it simplifies them. |
default: 'webpack', | ||
prod: 'webpack -p', | ||
}, | ||
validate: 'nps --parallel lint,test,build', | ||
// learn more about concurrently here: https://npm.im/concurrently | ||
validate: 'concurrently "nps lint" "nps test" "nps build"', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite verbose.
If this is not possible yet, could we support this syntax?
concurrently "nps lint test build"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tleunen the issue is that we now have to rely on how concurrently works, and it expects complete commands, not just the parameters like you would with nps -p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that we could support that syntax unfortunately. Because concurrently will spawn a process with the command nps lint test build
. If you look at the additions in EXAMPLES.md
you'll see that a function can be used to simplify things further. Perhaps we could use that example in the README instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also check out the changes to package-scripts.js
in this PR. I think it's pretty clean.
Any reason for concurrently over npm-run-all?
…On 7 Feb 2017 16:45, "Kent C. Dodds" ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In README.md <#94>:
> default: 'webpack',
prod: 'webpack -p',
},
- validate: 'nps --parallel lint,test,build',
+ // learn more about concurrently here: https://npm.im/concurrently
+ validate: 'concurrently "nps lint" "nps test" "nps build"',
I don't think that we could support that syntax unfortunately. Because
concurrently will spawn a process with the command nps lint test build.
If you look at the additions in EXAMPLES.md you'll see that a function
can be used to simplify things further. Perhaps we could use that example
in the README instead?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#94>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB4Pj7l2d3Hpxa7gw--y9lBimmZ6UG4gks5raJ-8gaJpZM4L4jPv>
.
|
Unless I'm mistaken, When I use raw npm scripts, |
Sorry everyone, I had a copy/paste issue. I'm pretty sure the intent is still the same, but I updated the emoji voting option descriptions to make sure things were more clear. |
0e79875
to
7ff1c6b
Compare
Just updated this PR. Here's a little backstory:
Fun stuff! |
7ff1c6b
to
eafa9a5
Compare
Codecov Report@@ Coverage Diff @@
## next #94 +/- ##
===================================
Coverage 100% 100%
===================================
Files 11 11
Lines 260 237 -23
===================================
- Hits 260 237 -23
Continue to review full report at Codecov.
|
I should probably also mention that all the trouble I went through in the previous comment was so we could have even more functionality with |
Ok, based on the voting, I think we're going to make this happen. Regardless of whether you're in favor, I appreciate any input on how we can make this change as successful as possible. What can I change about this PR to improve things? Here are a few ideas:
Any other ideas? Also, because this is a breaking change, I've set the base branch to |
Just had an idea. If we see the |
eafa9a5
to
79b8518
Compare
**What**: This removes the `--parallel` capabities from `p-s` in favor of encouraging the use of the `concurrently` module. **Why**: DOTADIW. We want `p-s` to stay as small and focused as possible **How**: Refactoring and documenting BREAKING CHANGE: you must now use `concurrently` to have scripts run in parallel. Check the docs for an example of how to do this.
79b8518
to
b315f48
Compare
**What**: This removes the `--parallel` capabities from `p-s` in favor of encouraging the use of the `concurrently` module. **Why**: DOTADIW. We want `p-s` to stay as small and focused as possible **How**: Refactoring and documenting BREAKING CHANGE: you must now use `concurrently` to have scripts run in parallel. Check the docs for an example of how to do this.
What: Removes
parallel
Why: Reduces complexity of the tool and its implementation.
How: It's still a work in progres...
This will be a breaking change... Still evaluating.