-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Expand file tree
/
Copy pathSTART_APP.bat
More file actions
59 lines (49 loc) · 1.39 KB
/
Copy pathSTART_APP.bat
File metadata and controls
59 lines (49 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo off
setlocal
TITLE Antigravity Skills App
echo ===================================================
echo Antigravity Awesome Skills - Web App
echo ===================================================
:: Check for Node.js
WHERE node >nul 2>nul
IF %ERRORLEVEL% NEQ 0 (
echo [ERROR] Node.js is not installed. Please install it from https://nodejs.org/
pause
exit /b 1
)
:: Check/Install dependencies
cd apps\web-app
if not exist "node_modules\" (
echo [INFO] Dependencies not found. Installing...
goto :INSTALL_DEPS
)
:: Verify dependencies aren't corrupted
echo [INFO] Verifying app dependencies...
call npx -y vite --version >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo [WARN] Dependencies appear corrupted or outdated.
echo [INFO] Cleaning up and reinstalling fresh dependencies...
rmdir /s /q "node_modules" >nul 2>nul
goto :INSTALL_DEPS
)
goto :DEPS_OK
:INSTALL_DEPS
call npm install
call npm install @supabase/supabase-js
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Failed to install dependencies. Please check your internet connection.
pause
exit /b 1
)
:DEPS_OK
cd ..\..
:: Run setup script
echo [INFO] Updating skills data...
call npm run app:setup
:: Start App
echo [INFO] Starting Web App...
echo [INFO] Opening default browser...
echo [INFO] Use the Sync Skills button in the app to update skills from GitHub!
cd apps\web-app
call npx -y vite --open
endlocal