@tramvai/module-deps-graph 1.55.0 → 1.55.4

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.
Files changed (2) hide show
  1. package/README.md +16 -16
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,22 +1,18 @@
1
1
  # DepsGraphModule
2
2
 
3
- > Работает только в development режиме и показывает граф только для серверной сборки
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
- ### 1. Зависимости
9
+ First install `@tramvai/module-deps-graph`:
10
10
 
11
- Необходимо установить `@tramvai/module-deps-graph` с помощью npm/yarn
12
-
13
- ```bash
11
+ ```bash npm2yarn
14
12
  npm i @tramvai/module-deps-graph
15
13
  ```
16
14
 
17
- ### 2. Подключение модуля
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
- Добавляет папи роут `/deps-graph` (можно найти по адресу /:appName/papi/deps-graph, где appName - поле name из tramvai.json), по которому выводится граф всех зависимостей с возможностью поиска по токену и имени модуля
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
- - Желтый - mutli-провайдер
38
- - Красный - подпавший под поиск
36
+ - Blue - usual provider
37
+ - Yellow - multi-provider
38
+ - Red - provider satisfying to search expression
39
39
 
40
40
  ![img.png](http://s.csssr.ru/UAHCBP6MS/localhost_3000_pfphome_papi_deps-graph_search%3Dboxy%26lines%3Dgenerate_page%252Cinit_-_Google_Chrome_2021-04-13_14.55.05.png)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-deps-graph",
3
- "version": "1.55.0",
3
+ "version": "1.55.4",
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.55.0",
23
- "@tramvai/tokens-common": "1.55.0",
24
- "@tramvai/tokens-server": "1.55.0",
25
- "@tramvai/papi": "1.55.0",
26
- "@tinkoff/dippy": "0.7.37",
22
+ "@tramvai/core": "1.55.4",
23
+ "@tramvai/tokens-common": "1.55.4",
24
+ "@tramvai/tokens-server": "1.55.4",
25
+ "@tramvai/papi": "1.55.4",
26
+ "@tinkoff/dippy": "0.7.38",
27
27
  "tslib": "^2.0.3"
28
28
  },
29
29
  "module": "lib/server.es.js",