diff --git a/scripts/build-statics.cmd b/scripts/build-statics.cmd index dfab8dc575..728eeffcc0 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 redistimeseries plugin +set REDISTIMESERSIES_DIR=".\redisinsight\ui\src\packages\redistimeseries-app" +call yarn --cwd "%REDISTIMESERSIES_DIR%" +call yarn --cwd "%REDISTIMESERSIES_DIR%" build +if not exist "%PLUGINS_DIR%\redistimeseries-app" mkdir "%PLUGINS_DIR%\redistimeseries-app" +if not exist "%PLUGINS_DIR%\redistimeseries-app\dist" mkdir "%PLUGINS_DIR%\redistimeseries-app\dist" +xcopy "%REDISTIMESERSIES_DIR%\dist" "%PLUGINS_DIR%\redistimeseries-app\dist\" /s /e /y +copy "%REDISTIMESERSIES_DIR%\package.json" "%PLUGINS_DIR%\redistimeseries-app\" diff --git a/scripts/build-statics.sh b/scripts/build-statics.sh index b9b2fab17b..054dbefcdb 100644 --- a/scripts/build-statics.sh +++ b/scripts/build-statics.sh @@ -18,3 +18,11 @@ 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 timeseries plugin +REDISTIMESERIES_DIR="./redisinsight/ui/src/packages/redistimeseries-app" +yarn --cwd "${REDISTIMESERIES_DIR}" +yarn --cwd "${REDISTIMESERIES_DIR}" build +mkdir -p "${PLUGINS_DIR}/redistimeseries-app" +cp -R "${REDISTIMESERIES_DIR}/dist" "${REDISTIMESERIES_DIR}/package.json" "${PLUGINS_DIR}/redistimeseries-app" +