refactor: move spa to frontend folder
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user