-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·57 lines (44 loc) · 1.21 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·57 lines (44 loc) · 1.21 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
#!/bin/bash
# Promptimize - Development Setup Script
echo "🎤 Setting up Promptimize development environment..."
# Use Node 22 via nvm
source "$(dirname "$0")/scripts/ensure-node.sh"
echo "✅ Node.js version: $(node -v)"
# Install dependencies
echo "📦 Installing dependencies..."
pnpm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install dependencies"
exit 1
fi
echo "✅ Dependencies installed"
# Compile TypeScript
echo "🔨 Compiling TypeScript..."
pnpm run compile
if [ $? -ne 0 ]; then
echo "❌ Compilation failed"
exit 1
fi
echo "✅ TypeScript compiled"
# Run linter
echo "🔍 Running linter..."
pnpm run lint
if [ $? -ne 0 ]; then
echo "⚠️ Linter found issues (run 'pnpm run lint:fix' to auto-fix)"
else
echo "✅ Linter passed"
fi
echo ""
echo "✨ Setup complete!"
echo ""
echo "Next steps:"
echo " 1. Open this folder in VSCode/Cursor"
echo " 2. Press F5 to start debugging"
echo " 3. Configure your OpenAI API key in the extension"
echo ""
echo "Development commands:"
echo " pnpm run watch - Watch mode for development"
echo " pnpm run test - Run tests"
echo " pnpm run lint:fix - Auto-fix linter issues"
echo " pnpm run package - Build .vsix package"
echo ""