Skip to content

dandavison/vue-component-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-component-graph is a tool to visualize the structure of a Vue codebase as a graph. The graph is created by walking the AST produced by babel.

The graph created is a sort of union/superposition of two graphs:

  1. The component DAG (black): In this DAG there is an edge from component A to component B if B is a child component of A (B occurs in A's DOM subtree and A might pass B props).

  2. The event graph (red): in this graph there is an edge from B to A if B emits an event of a type which A handles.

image

This is work-in-progress. It was created to help me understand my own Vue projects; it's structured as a standard npm package but is not ready to be published.

About

A static analysis tool for creating visualizations of a Vue.js codebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published