Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
build: Refactor Taskfile.yml #3445
build: Refactor Taskfile.yml #3445
Changes from 7 commits
215d72b
af3de80
21bd119
829772b
f1d6741
2e7acd7
2567573
265a565
07c8691
530714d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can we just combine this with the previous? Passing
--force
can override thesources
check if we ever want to force an installThere 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 think I'd like to leave it like this. I factored it out when
--install-links=false
was necessary (only wanted to have that magic invocation in one place).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.
What's the difference between calling one vs the other?
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 understand the thrust of this question: "combine with the previous"? Which two are you suggesting could be combined?
Here's my understanding of the situation: In the original Taskfile.yaml there were several invocations of
npm install --install-links=false
which I factored into a singleinstall-playground-dependencies-all
task so the magic--install-links...
wouldn't be screwed up in one of the multiple places. I also described that option in the comments (again, in one place). Additionally, I changed all the places that callednpm install...
to use theinstall-playground-dependencies
task so they could take advantage of caching prior results.Now that the
--install-links=false
is no longer required, we certainly could get rid of the (single) call toinstall-playground-dependencies-all
and replace it with a simplenpm install
But I'll also point out the "documentation advantage" of having a named task that unconditionally runs the proper
npm install
command in the case that the logic behind theinstall-playground-dependences
gets screwed up. Instead of needing to remember where the--force
option might be used, people can justtask install-playground-dependencies-all
to un-screw it.I hope that addresses your question
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.
What's the difference between
install-playground-dependencies-all
andinstall-playground-dependencies
? I think one just checks the sources. So can we combine them?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.
Can we combine these though? I don't see why we have a task that seems to just wrap another task?