-
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
/
setup.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 ""