-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·39 lines (32 loc) · 913 Bytes
/
build.sh
File metadata and controls
executable file
·39 lines (32 loc) · 913 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
#!/bin/bash
# Build script for estevaom.github.io
# This script builds the entire site by:
# 1. Running the Rust build tool to generate API responses
# 2. Copying responses to the Vue app
# 3. Building the Vue app for production
set -e # Exit on error
echo "🚀 Starting build process..."
# 1. Run Rust build tool
echo "📦 Building API with Rust..."
cd build
cargo run --release
cd ..
# 2. API responses are already in /dist/api/ for production
# 3. Build Vue app
echo "🛠️ Building Vue app for production..."
cd app
bun install
bun run build
cd ..
echo "✅ Build complete!"
echo ""
echo "The Vue app has been built to: app/dist/"
echo ""
echo "To test locally:"
echo "1. cd app && bun run preview"
echo "2. Or open app/dist/index.html in your browser"
echo ""
echo "To deploy:"
echo "1. Commit your changes"
echo "2. Push to GitHub"
echo "3. GitHub Actions will automatically build and deploy"