Skip to content

Differentiate dev_dependencies and dependencies #3202

Closed

Description

@timsneath

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

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Mar 12, 2021
  2. DanTup commented on Mar 15, 2021

    @DanTup
    Member

    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.

  3. added this to the On Deck milestone on Mar 15, 2021
  4. added
    in editorRelates to code editing or language features
    in viewsRelates to custom views, like the Test tree or Dependencies tree
    and removed
    in editorRelates to code editing or language features
    on Mar 15, 2021
  5. sigurdm commented on Mar 15, 2021

    @sigurdm

    Also consider transitive dependencies as a third category.

  6. modified the milestones: On Deck, v3.23.0 on May 25, 2021
  7. DanTup commented on May 25, 2021

    @DanTup
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in viewsRelates to custom views, like the Test tree or Dependencies treeis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions