@tramvai/module-deps-graph
v4.41.43
Published
> Works only in development mode and shows dependency graph for the server build
Downloads
1,588
Readme
DepsGraphModule
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
whereappName
- name of the app passed to thecreateApp
Graph legend
- Blue - usual provider
- Yellow - multi-provider
- Red - provider satisfying to search expression