UNPKG

ts-depgraph

Version:

Generate a visually stunning dependency graph from your Angular or Typescript project

31 lines (18 loc) 882 B
# Typescript (Angular) Dependency Graph drawer Uses vis.js, check it out, it's pretty cool. # Usage ```sh npm install -g ts-depgraph ``` ## Customize ```depgraph.config.js``` if you want You can check the example in the package directory (```depgraph.config.js.example```) or you can leave it out completely, default starting folder is the current. ```projectDirectory```: this is the directory where your ```src``` directory is. Without trailing slash. ```tsconfig```: if you have path aliases defined in tsconfig, you can refer it here. Otherwise ```projectDirectory/tsconfig.json``` is used. ## Run graph generator ```bash ts-depgraph ``` ## Open depgraph.html ![](https://github.com/deejayy/ts-depgraph/raw/master/screenshot/shot-01.png) Dark mode, yay! ![](https://github.com/deejayy/ts-depgraph/raw/master/screenshot/shot-02.png)