-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-website.sh
More file actions
executable file
ยท59 lines (52 loc) ยท 1.39 KB
/
start-website.sh
File metadata and controls
executable file
ยท59 lines (52 loc) ยท 1.39 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
52
53
54
55
56
57
58
#!/bin/bash
# Jensen Theme Website - Quick Start Script
# This script helps you quickly start developing or preview the website
set -e
echo "๐ฎ Jensen Theme Website Helper"
echo "================================"
echo ""
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "๐ฆ Installing dependencies..."
npm install
echo "โ
Dependencies installed!"
echo ""
fi
# Show menu
echo "Choose an option:"
echo "1) Start development server (npm run dev)"
echo "2) Build for production (npm run build)"
echo "3) Preview production build (npm run preview)"
echo "4) Build and preview"
echo ""
read -p "Enter choice [1-4]: " choice
case $choice in
1)
echo "๐ Starting development server..."
echo "Visit: http://localhost:5173"
npm run dev
;;
2)
echo "๐จ Building for production..."
npm run build
echo "โ
Build complete! Check the dist/ folder"
;;
3)
echo "๐๏ธ Starting preview server..."
echo "Visit: http://localhost:4173"
npm run preview
;;
4)
echo "๐จ Building for production..."
npm run build
echo "โ
Build complete!"
echo ""
echo "๐๏ธ Starting preview server..."
echo "Visit: http://localhost:4173"
npm run preview
;;
*)
echo "โ Invalid choice"
exit 1
;;
esac