From 310abc359582250348d86c3429e37ac81a7de5d7 Mon Sep 17 00:00:00 2001 From: Zalenski Egor <63463140+zalenskiSofteq@users.noreply.github.com> Date: Tue, 1 Mar 2022 13:31:59 +0300 Subject: [PATCH 1/2] Update build-statics.sh --- scripts/build-statics.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/build-statics.sh b/scripts/build-statics.sh index b9b2fab17b..587ef52b29 100644 --- a/scripts/build-statics.sh +++ b/scripts/build-statics.sh @@ -18,3 +18,10 @@ yarn --cwd "${REDISEARCH_DIR}" yarn --cwd "${REDISEARCH_DIR}" build mkdir -p "${PLUGINS_DIR}/redisearch" cp -R "${REDISEARCH_DIR}/dist" "${REDISEARCH_DIR}/package.json" "${PLUGINS_DIR}/redisearch" + +# Build redisgraph plugin +REDISGRAPH_DIR="./redisinsight/ui/src/packages/redisgraph" +yarn --cwd "${REDISGRAPH_DIR}" +yarn --cwd "${REDISGRAPH_DIR}" build +mkdir -p "${PLUGINS_DIR}/redisgraph" +cp -R "${REDISGRAPH_DIR}/dist" "${REDISGRAPH_DIR}/package.json" "${PLUGINS_DIR}/redisgraph" From 70384c62e328531340f7644c7cadc293e2740f0b Mon Sep 17 00:00:00 2001 From: Zalenski Egor <63463140+zalenskiSofteq@users.noreply.github.com> Date: Tue, 1 Mar 2022 13:32:50 +0300 Subject: [PATCH 2/2] Update build-statics.cmd --- scripts/build-statics.cmd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/build-statics.cmd b/scripts/build-statics.cmd index dfab8dc575..fd9e938b78 100644 --- a/scripts/build-statics.cmd +++ b/scripts/build-statics.cmd @@ -20,3 +20,12 @@ if not exist "%PLUGINS_DIR%\redisearch" mkdir "%PLUGINS_DIR%\redisearch" if not exist "%PLUGINS_DIR%\redisearch\dist" mkdir "%PLUGINS_DIR%\redisearch\dist" xcopy "%REDISEARCH_DIR%\dist" "%PLUGINS_DIR%\redisearch\dist\" /s /e /y copy "%REDISEARCH_DIR%\package.json" "%PLUGINS_DIR%\redisearch\" + +:: Build redisgraph plugin +set REDISGRAPH_DIR=".\redisinsight\ui\src\packages\redisgraph" +call yarn --cwd "%REDISGRAPH_DIR%" +call yarn --cwd "%REDISGRAPH_DIR%" build +if not exist "%PLUGINS_DIR%\redisgraph" mkdir "%PLUGINS_DIR%\redisgraph" +if not exist "%PLUGINS_DIR%\redisgraph\dist" mkdir "%PLUGINS_DIR%\redisgraph\dist" +xcopy "%REDISGRAPH_DIR%\dist" "%PLUGINS_DIR%\redisgraph\dist\" /s /e /y +copy "%REDISGRAPH_DIR%\package.json" "%PLUGINS_DIR%\redisgraph\"