Skip to content

Commit 4da60f6

Browse files
Merge pull request #340 from RedisInsight/build/redisgraph
Build/redisgraph
2 parents d22fc33 + 70384c6 commit 4da60f6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

scripts/build-statics.cmd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ if not exist "%PLUGINS_DIR%\redisearch" mkdir "%PLUGINS_DIR%\redisearch"
2020
if not exist "%PLUGINS_DIR%\redisearch\dist" mkdir "%PLUGINS_DIR%\redisearch\dist"
2121
xcopy "%REDISEARCH_DIR%\dist" "%PLUGINS_DIR%\redisearch\dist\" /s /e /y
2222
copy "%REDISEARCH_DIR%\package.json" "%PLUGINS_DIR%\redisearch\"
23+
24+
:: Build redisgraph plugin
25+
set REDISGRAPH_DIR=".\redisinsight\ui\src\packages\redisgraph"
26+
call yarn --cwd "%REDISGRAPH_DIR%"
27+
call yarn --cwd "%REDISGRAPH_DIR%" build
28+
if not exist "%PLUGINS_DIR%\redisgraph" mkdir "%PLUGINS_DIR%\redisgraph"
29+
if not exist "%PLUGINS_DIR%\redisgraph\dist" mkdir "%PLUGINS_DIR%\redisgraph\dist"
30+
xcopy "%REDISGRAPH_DIR%\dist" "%PLUGINS_DIR%\redisgraph\dist\" /s /e /y
31+
copy "%REDISGRAPH_DIR%\package.json" "%PLUGINS_DIR%\redisgraph\"

scripts/build-statics.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ yarn --cwd "${REDISEARCH_DIR}"
1818
yarn --cwd "${REDISEARCH_DIR}" build
1919
mkdir -p "${PLUGINS_DIR}/redisearch"
2020
cp -R "${REDISEARCH_DIR}/dist" "${REDISEARCH_DIR}/package.json" "${PLUGINS_DIR}/redisearch"
21+
22+
# Build redisgraph plugin
23+
REDISGRAPH_DIR="./redisinsight/ui/src/packages/redisgraph"
24+
yarn --cwd "${REDISGRAPH_DIR}"
25+
yarn --cwd "${REDISGRAPH_DIR}" build
26+
mkdir -p "${PLUGINS_DIR}/redisgraph"
27+
cp -R "${REDISGRAPH_DIR}/dist" "${REDISGRAPH_DIR}/package.json" "${PLUGINS_DIR}/redisgraph"

0 commit comments

Comments
 (0)