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\" 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"