refactor: move spa to frontend folder

This commit is contained in:
2025-10-27 12:32:38 +03:00
committed by Nikita Kiselev
parent 5681ac592a
commit 0cccc7e3d7
40 changed files with 1566 additions and 35 deletions

View File

@@ -29,14 +29,22 @@ if [ -z "$SRC_PATH" ]; then
exit 1
fi
echo "Build SPA..."
cd "${SRC_PATH}/spa"
echo "Build Telecart Frontend..."
cd "${SRC_PATH}/frontend/spa"
bun install
bun run build
echo "Move manifest file"
cp "${SRC_PATH}/module/oc_telegram_shop/upload/image/catalog/tgshopspa/.vite/manifest.json" "${SRC_PATH}/module/oc_telegram_shop/upload/image/catalog/tgshopspa/manifest.json"
echo "Build Admin Frontend"
cd "${SRC_PATH}/frontend/admin"
bun install
bun run build
echo "Move manifest file"
cp "${SRC_PATH}/module/oc_telegram_shop/upload/admin/view/javascript/.vite/manifest.json" "${SRC_PATH}/module/oc_telegram_shop/upload/admin/view/javascript/manifest.json"
cd - > /dev/null
echo "Install Composer dependencies."