mirror of
https://github.com/gr0grig/obsidian-virt-folder.git
synced 2026-07-22 10:30:27 +00:00
27 lines
418 B
Batchfile
27 lines
418 B
Batchfile
@echo off
|
|
cd /d "%~dp0src"
|
|
|
|
echo Installing dependencies...
|
|
call npm install
|
|
if %errorlevel% neq 0 (
|
|
echo ERROR: npm install failed
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Building plugin...
|
|
call npm run build
|
|
if %errorlevel% neq 0 (
|
|
echo ERROR: Build failed
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Copying files...
|
|
cd /d "%~dp0"
|
|
move /y src\main.js main.js
|
|
copy /y src\styles.css styles.css
|
|
|
|
echo.
|
|
echo Build complete!
|
|
pause
|