Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rudifa/astro-dependencies

A tool to view the Astro project dependencies
https://github.com/rudifa/astro-dependencies

Last synced: 24 days ago
JSON representation

A tool to view the Astro project dependencies

Awesome Lists containing this project

README

        

# View Astro project dependencies

This script generates a (very basic) graph of the dependencies in an astro project.

```
my-astro-project % ../astro-dependencies/astro-deps.js -h
Usage: astro-deps.js [options]

Generate a graph of the dependencies between astro files in a project.

Options:
-c, --clusters Use clusters in the output graph
-o, --outpath Output directory for the generated files
-h, --help Show this help message
```

## Example

```
astro-demo % ../astro-dependencies/astro-deps.js -c [main L|…3]
File created at ./dependencies.json (327 bytes)
File created at ./dependencies.dot (628 bytes)
File created at ./dependencies.svg (5479 bytes)
```

![Dependencies](img/dependencies.svg)