@@ -13,45 +13,61 @@ xcopy ".\redisinsight\ui\src\assets\fonts\inconsolata" ".\vendor\fonts\" /s /e /
13
13
if not exist %PLUGINS_VENDOR_DIR% mkdir %PLUGINS_VENDOR_DIR%
14
14
xcopy " .\vendor\." " %PLUGINS_VENDOR_DIR% " /s /e /y
15
15
16
- :: Build all plugins and common libraries
16
+ :: Install developing tools for plugins
17
17
set REDISEARCH_DIR = " .\redisinsight\ui\src\packages"
18
- call yarn --cwd " %REDISEARCH_DIR% " build
18
+ call yarn --cwd " %REDISEARCH_DIR% "
19
19
20
- :: Copy redisearch plugin
20
+ :: Install plugins dependencies
21
21
set REDISEARCH_DIR = " .\redisinsight\ui\src\packages\redisearch"
22
22
call yarn --cwd " %REDISEARCH_DIR% "
23
+
24
+ set REDISGRAPH_DIR = " .\redisinsight\ui\src\packages\redisgraph"
25
+ call yarn --cwd " %REDISGRAPH_DIR% "
26
+
27
+ set REDISTIMESERSIES_DIR = " .\redisinsight\ui\src\packages\redistimeseries-app"
28
+ call yarn --cwd " %REDISTIMESERSIES_DIR% "
29
+
30
+ set RI_EXPLIAIN_DIR = " .\redisinsight\ui\src\packages\ri-explain"
31
+ call yarn --cwd " %RI_EXPLIAIN_DIR% "
32
+
33
+ set CLIENTS_LIST_DIR = " .\redisinsight\ui\src\packages\clients-list"
34
+ call yarn --cwd " %CLIENTS_LIST_DIR% "
35
+
36
+ :: Build all plugins and common libraries
37
+ call yarn --cwd " %REDISEARCH_DIR% " build
38
+
39
+ :: Copy common libraries to plugins
40
+ set COMMON_DIR = " .\redisinsight\ui\src\packages\common"
41
+ if not exist " %PLUGINS_DIR% \common" mkdir " %PLUGINS_DIR% \common"
42
+ xcopy /E /Y " %COMMON_DIR% \index*.js" " %PLUGINS_DIR% \common"
43
+ copy " %COMMON_DIR% \package.json" " %PLUGINS_DIR% \common\"
44
+
45
+
46
+ :: Copy redisearch plugin
23
47
if not exist " %PLUGINS_DIR% \redisearch" mkdir " %PLUGINS_DIR% \redisearch"
24
48
if not exist " %PLUGINS_DIR% \redisearch\dist" mkdir " %PLUGINS_DIR% \redisearch\dist"
25
49
xcopy " %REDISEARCH_DIR% \dist" " %PLUGINS_DIR% \redisearch\dist\" /s /e /y
26
50
copy " %REDISEARCH_DIR% \package.json" " %PLUGINS_DIR% \redisearch\"
27
51
28
52
:: Copy redisgraph plugin
29
- set REDISGRAPH_DIR = " .\redisinsight\ui\src\packages\redisgraph"
30
- call yarn --cwd " %REDISGRAPH_DIR% "
31
53
if not exist " %PLUGINS_DIR% \redisgraph" mkdir " %PLUGINS_DIR% \redisgraph"
32
54
if not exist " %PLUGINS_DIR% \redisgraph\dist" mkdir " %PLUGINS_DIR% \redisgraph\dist"
33
55
xcopy " %REDISGRAPH_DIR% \dist" " %PLUGINS_DIR% \redisgraph\dist\" /s /e /y
34
56
copy " %REDISGRAPH_DIR% \package.json" " %PLUGINS_DIR% \redisgraph\"
35
57
36
58
:: Copy redistimeseries plugin
37
- set REDISTIMESERSIES_DIR = " .\redisinsight\ui\src\packages\redistimeseries-app"
38
- call yarn --cwd " %REDISTIMESERSIES_DIR% "
39
59
if not exist " %PLUGINS_DIR% \redistimeseries-app" mkdir " %PLUGINS_DIR% \redistimeseries-app"
40
60
if not exist " %PLUGINS_DIR% \redistimeseries-app\dist" mkdir " %PLUGINS_DIR% \redistimeseries-app\dist"
41
61
xcopy " %REDISTIMESERSIES_DIR% \dist" " %PLUGINS_DIR% \redistimeseries-app\dist\" /s /e /y
42
62
copy " %REDISTIMESERSIES_DIR% \package.json" " %PLUGINS_DIR% \redistimeseries-app\"
43
63
44
64
:: Copy ri-explain plugin
45
- set RI_EXPLIAIN_DIR = " .\redisinsight\ui\src\packages\ri-explain"
46
- call yarn --cwd " %RI_EXPLIAIN_DIR% "
47
65
if not exist " %PLUGINS_DIR% \ri-explain" mkdir " %PLUGINS_DIR% \ri-explain"
48
66
if not exist " %PLUGINS_DIR% \ri-explain\dist" mkdir " %PLUGINS_DIR% \ri-explain\dist"
49
67
xcopy " %RI_EXPLIAIN_DIR% \dist" " %PLUGINS_DIR% \ri-explain\dist\" /s /e /y
50
68
copy " %RI_EXPLIAIN_DIR% \package.json" " %PLUGINS_DIR% \ri-explain\"
51
69
52
70
:: Copy clients-list and json plugin
53
- set CLIENTS_LIST_DIR = " .\redisinsight\ui\src\packages\clients-list"
54
- call yarn --cwd " %CLIENTS_LIST_DIR% "
55
71
if not exist " %PLUGINS_DIR% \clients-list" mkdir " %PLUGINS_DIR% \clients-list"
56
72
if not exist " %PLUGINS_DIR% \clients-list\dist" mkdir " %PLUGINS_DIR% \clients-list\dist"
57
73
xcopy " %CLIENTS_LIST_DIR% \dist" " %PLUGINS_DIR% \clients-list\dist\" /s /e /y
0 commit comments