-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-server.sh
More file actions
executable file
·40 lines (32 loc) · 996 Bytes
/
start-server.sh
File metadata and controls
executable file
·40 lines (32 loc) · 996 Bytes
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
#!/bin/bash
# Gleeb LSP Server Launch Script
echo "Starting Gleeb LSP Server for Fern UI Framework"
echo "=============================================="
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Error: Node.js is not installed"
echo "Please install Node.js (v16 or higher) and try again"
exit 1
fi
# Check if npm is installed
if ! command -v npm &> /dev/null; then
echo "❌ Error: npm is not installed"
echo "Please install npm and try again"
exit 1
fi
# Check if dependencies are installed
if [ ! -d "node_modules" ]; then
echo "📦 Installing dependencies..."
npm install
fi
# Check if dist directory exists
if [ ! -d "dist" ]; then
echo "🔨 Building TypeScript source..."
npm run build
fi
echo "Gleeb LSP Server is ready!"
echo "Starting server on stdio..."
echo "Use Ctrl+C to stop the server"
echo "=============================================="
# Start the LSP server
node dist/server.js --stdio