@tramvai/module-deps-graph 1.53.6 → 1.55.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
# DepsGraphModule
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Works only in development mode and shows dependency graph for the server build
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Module to show token dependency graph.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
First install `@tramvai/module-deps-graph`:
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
```bash
|
|
11
|
+
```bash npm2yarn
|
|
14
12
|
npm i @tramvai/module-deps-graph
|
|
15
13
|
```
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Нужно передать в список модулей приложения CommonModule
|
|
15
|
+
Add module to the `modules` list
|
|
20
16
|
|
|
21
17
|
```tsx
|
|
22
18
|
import { createApp } from '@tramvai/core';
|
|
@@ -27,14 +23,18 @@ createApp({
|
|
|
27
23
|
});
|
|
28
24
|
```
|
|
29
25
|
|
|
30
|
-
##
|
|
26
|
+
## Explanation
|
|
27
|
+
|
|
28
|
+
### Usage
|
|
29
|
+
|
|
30
|
+
Module adds papi-route `/deps-graph` that will display dependency graph with the functionality to search by token or module name.
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
> Actual relative path to the papi-route will be `/:appName/papi/deps-graph` where `appName` - name of the app passed to the `createApp`
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
### Graph legend
|
|
35
35
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
36
|
+
- Blue - usual provider
|
|
37
|
+
- Yellow - multi-provider
|
|
38
|
+
- Red - provider satisfying to search expression
|
|
39
39
|
|
|
40
40
|

|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-deps-graph",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.55.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"build-for-publish": "true"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@tramvai/core": "1.
|
|
23
|
-
"@tramvai/tokens-common": "1.
|
|
24
|
-
"@tramvai/tokens-server": "1.
|
|
25
|
-
"@tramvai/papi": "1.
|
|
26
|
-
"@tinkoff/dippy": "0.7.
|
|
22
|
+
"@tramvai/core": "1.55.2",
|
|
23
|
+
"@tramvai/tokens-common": "1.55.2",
|
|
24
|
+
"@tramvai/tokens-server": "1.55.2",
|
|
25
|
+
"@tramvai/papi": "1.55.2",
|
|
26
|
+
"@tinkoff/dippy": "0.7.38",
|
|
27
27
|
"tslib": "^2.0.3"
|
|
28
28
|
},
|
|
29
29
|
"module": "lib/server.es.js",
|