forked from microsoft/aspire
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·53 lines (43 loc) · 1.3 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·53 lines (43 loc) · 1.3 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
#!/bin/bash
set -e
echo "Checking prerequisites..."
# Check for Node.js
if ! command -v node &> /dev/null; then
echo "Error: Node.js is not installed. Please install Node.js first."
exit 1
fi
# Check for npm
if ! command -v npm &> /dev/null; then
echo "Error: npm is not installed. Please install npm first."
exit 1
fi
# Check for yarn
if ! command -v yarn &> /dev/null; then
echo "Error: yarn is not installed. Please install yarn first."
echo "You can install yarn by running: npm install -g yarn"
exit 1
fi
# Check for VS Code or VS Code Insiders
if ! command -v code &> /dev/null && ! command -v code-insiders &> /dev/null; then
echo "Error: VS Code or VS Code Insiders is not installed or not in PATH."
echo "Please install VS Code or VS Code Insiders and ensure it's added to your PATH."
exit 1
fi
# Check for dotnet
if ! command -v dotnet &> /dev/null; then
echo "Error: .NET SDK is not installed. Please install .NET SDK first."
echo "Use the restore script at the repo root."
exit 1
fi
echo "All prerequisites satisfied."
echo ""
echo "Running yarn install..."
yarn install
echo ""
echo "Running yarn compile..."
yarn compile
echo ""
echo "Building Aspire CLI..."
dotnet build ../src/Aspire.Cli/Aspire.Cli.csproj
echo ""
echo "Build completed successfully!"