-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·51 lines (39 loc) · 1.26 KB
/
Copy pathdev.sh
File metadata and controls
executable file
·51 lines (39 loc) · 1.26 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
#!/bin/bash
# BitQuan GUI Development Helper Script
echo "🚀 BitQuan GUI Development Helper"
echo "================================"
# Check if we're in the right directory
if [ ! -f "package.json" ]; then
echo "❌ Error: package.json not found. Please run this script from the bitquan-gui directory."
exit 1
fi
# Install dependencies if node_modules doesn't exist
if [ ! -d "node_modules" ]; then
echo "📦 Installing dependencies..."
npm install
fi
# Check if TypeScript is available
if ! command -v npx &> /dev/null; then
echo "❌ Error: npx not found. Please install Node.js and npm."
exit 1
fi
echo "🔍 Running TypeScript type check..."
npx tsc --noEmit
if [ $? -eq 0 ]; then
echo "✅ TypeScript check passed!"
else
echo "❌ TypeScript errors found. Please fix them before continuing."
exit 1
fi
echo "🎨 Building CSS with Tailwind..."
npx tailwindcss -i ./index.css -o ./dist.css --watch &
TAILWIND_PID=$!
echo "🌐 Starting development server..."
echo "📱 The app will be available at http://localhost:8080"
echo "🔧 Tauri dev mode will also start automatically"
echo ""
echo "Press Ctrl+C to stop all services"
# Start the development server
npm run dev
# Clean up Tailwind process on exit
kill $TAILWIND_PID 2>/dev/null