mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 00:47:31 +01:00
0d92359da7
Re-creation of https://github.com/Aurorastation/Aurora.3/pull/21046 to skip merge conflict hell. Brings us modern TGUI. **ALTERNATE TITLE: TGUI HELLSCAPE PR ABANDON ALL HOPE YE WHO ENTER HERE** - [x] Migrate build tools (javascript -> typescript, bun for package management). - [x] Upgrade all TGUI dependencies and associated root files to TG-congruent versions (axios, babel, dompurify, eslint, highlight, marked, prettier, sass, source-map, stacktrace-parser, typescript). - [x] InfernoJS -> React migrations - [x] React cleanup and polish (migrate all remaining .js files to appropriate .ts or .tsx filetype, all remaining hooks, linting, error corrections, etc.) - [ ] Test all remaining TGUI interfaces
28 lines
751 B
Batchfile
28 lines
751 B
Batchfile
@echo off
|
|
|
|
:: Call pwsh if available
|
|
set "powershellCmd=powershell"
|
|
where pwsh >nul 2>nul
|
|
if %errorlevel%==0 (
|
|
set "powershellCmd=pwsh"
|
|
)
|
|
|
|
call %powershellCmd% -NoLogo -ExecutionPolicy Bypass -File "%~dp0\javascript_.ps1" Download-Bun
|
|
for /f "tokens=* USEBACKQ" %%s in (`
|
|
call %powershellCmd% -NoLogo -ExecutionPolicy Bypass -File "%~dp0\javascript_.ps1" Get-Path
|
|
`) do (
|
|
set "PATH=%%s;%PATH%"
|
|
)
|
|
where bun.exe >nul 2>nul
|
|
if %errorlevel% == 0 (
|
|
echo | set /p printed_str="Using vendored Bun "
|
|
call bun.exe --version
|
|
call bun.exe %*
|
|
goto exit_with_last_error_level
|
|
)
|
|
echo "javascript.bat: Failed to bootstrap Bun!"
|
|
%COMSPEC% /c exit 1
|
|
|
|
:exit_with_last_error_level
|
|
if not %errorlevel% == 0 %COMSPEC% /c exit %errorlevel% >nul
|