Skip to main content

deps-graph

Works only in development mode and shows dependency graph for the server build

Module to show token dependency graph.

Installation

First install @tramvai/module-deps-graph:

npm i @tramvai/module-deps-graph

Add module to the modules list

import { createApp } from '@tramvai/core';
import { DepsGraphModule } from '@tramvai/module-deps-graph';

createApp({
modules: [DepsGraphModule],
});

Explanation

Usage

Module adds papi-route /deps-graph that will display dependency graph with the functionality to search by token or module name.

Actual relative path to the papi-route will be /:appName/papi/deps-graph where appName - name of the app passed to the createApp

Graph legend

  • Blue - usual provider
  • Yellow - multi-provider
  • Red - provider satisfying to search expression

img.png