intra_dependencies 0.1.0 copy "intra_dependencies: ^0.1.0" to clipboard
intra_dependencies: ^0.1.0 copied to clipboard

A package to manage and analyze Dart intra project dependencies, including handling cyclic dependencies and generating reports in various formats.

Intra-Dependencies #

A simple command-line tool to analyze and output Dart project dependencies.

Installation #

Activate globally using Dart:

dart pub global activate intra_dependencies

Usage #

intra_dependencies <path> [options]
  • <path> is the project base directory. Analysis starts inside <path>/lib.

Options #

Option Description
--reverse Reverse the dependencies link: show for each file who depends on it.
--console Output to console (default if no output is specified).
--text=<outputFile> Output to a text file.
--json=<outputFile> Output to a JSON file.
--yaml=<outputFile> Output to a YAML file.
--sort Sort mode: path, dependencies (default), or none.
-h, --help Show usage information.

Example #

Analyze the project at . and output the results to a JSON file:

intra_dependencies . --json=dependencies.json

Reverse the dependencies link and output to console:

intra_dependencies . --reverse

.depignore file (optional) #

You can create a .depignore file in the project root to exclude specific files or folders from the analysis.
Each line should contain a relative path to ignore.

Lines starting with # are treated as comments.

Example .depignore:

lib/generated/
lib/src/experimental/

License #

BSD-3-Clause License.

0
likes
160
points
147
downloads

Publisher

verified publishericocube.com

Weekly Downloads

A package to manage and analyze Dart intra project dependencies, including handling cyclic dependencies and generating reports in various formats.

Repository (GitHub)
View/report issues

Topics

#dependency #dependencies #analyzer #analysis

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, json2yaml, path

More

Packages that depend on intra_dependencies