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

Differentiate dev_dependencies and dependencies #3202

Closed
timsneath opened this issue Mar 12, 2021 · 3 comments
Closed

Differentiate dev_dependencies and dependencies #3202

timsneath opened this issue Mar 12, 2021 · 3 comments
Labels
in views Relates to custom views, like the Test tree or Dependencies tree is enhancement
Milestone

Comments

@timsneath
Copy link
Contributor

Related to #3095 a little.

As a package author, it's important to me that I don't drag in too many dependencies for my consumers. The more packages I need, the more risk of version conflict. On the other hand, during development time, there's no cost to me adding packages.

It would be great if the Dependencies toolwindow was able to disambiguate these two classes of package dependency. For example, it could be a filter to say "only show runtime dependencies", or perhaps a different icon (although this would be tristate, since some packages may be transitively depended on in both development and runtime scenarios).

See image below as an example:
image

@DanTup
Copy link
Member

DanTup commented Mar 15, 2021

Makes sense. Perhaps listing deps at the top level and then the final item is a "dev_dependencies" folder that contains the others?

There's a PR in progress to add JSON output as discussed in #3095 which looks to include a kind against each dep (of direct or dev), so it should be easy to handle these both from the same data source.

@DanTup DanTup added this to the On Deck milestone Mar 15, 2021
@DanTup DanTup added in editor Relates to code editing or language features in views Relates to custom views, like the Test tree or Dependencies tree blocked on dart / flutter Requires a change in Dart or Flutter to progress and removed in editor Relates to code editing or language features labels Mar 15, 2021
@sigurdm
Copy link

sigurdm commented Mar 15, 2021

Also consider transitive dependencies as a third category.

@DanTup DanTup modified the milestones: On Deck, v3.23.0 May 25, 2021
@DanTup DanTup removed the blocked on dart / flutter Requires a change in Dart or Flutter to progress label May 25, 2021
@DanTup DanTup closed this as completed in 0210508 May 25, 2021
@DanTup
Copy link
Member

DanTup commented May 25, 2021

When using a Dart SDK >= v2.14.0 the dependencies will now be split into folders for direct/dev/transitive dependencies:

Screenshot 2021-05-25 at 11 47 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in views Relates to custom views, like the Test tree or Dependencies tree is enhancement
Projects
None yet
Development

No branches or pull requests

3 participants