mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 21:10:30 +01:00
Bun, Inferno->React migration (#22529)
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
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
# bootstrap/bun
|
||||
#
|
||||
# Bun-finding script for all `sh` environments, including Linux, MSYS2,
|
||||
# Git for Windows, and GitHub Desktop. Invokable from CLI or automation.
|
||||
#
|
||||
# If a bun executable installed by a bootstrapper is present, it will be used.
|
||||
# Otherwise, this script requires a system `bun` to be provided.
|
||||
set -e
|
||||
|
||||
# Load Bun version from dependencies.sh
|
||||
OldPWD="$PWD"
|
||||
cd "$(dirname "$0")/../.."
|
||||
. ./dependencies.sh # sets BUN_VERSION (define this in dependencies.sh)
|
||||
cd "$OldPWD"
|
||||
BunVersion="$BUN_VERSION"
|
||||
BunFullVersion="bun-v$BunVersion"
|
||||
|
||||
# If Bun is not present, install using the official installer.
|
||||
if ! command -v bun >/dev/null 2>&1; then
|
||||
echo "Bun not found, installing with official installer..."
|
||||
curl -fsSL https://bun.sh/install | bash -s $BunFullVersion
|
||||
if [ -d "$HOME/.bun/bin" ]; then
|
||||
export PATH="$HOME/.bun/bin:$PATH"
|
||||
else
|
||||
echo "Bun installation directory not found. Please check the installation."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Using Bun $(bun --version)"
|
||||
exec bun "$@"
|
||||
Reference in New Issue
Block a user