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
- Yarn
npm i @tramvai/module-deps-graph
yarn i @tramvai/module-deps-graph
# couldn't auto-convert command
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