-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·32 lines (25 loc) · 975 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·32 lines (25 loc) · 975 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
#!/bin/bash
echo "Installing ts2famix VSCode Extension..."
# Check if code command is available
if ! command -v code &> /dev/null; then
echo "ERROR: 'code' command not found."
echo "Please add VSCode to your PATH first:"
echo " - Mac/Linux: Open VSCode, press Cmd+Shift+P, type 'Shell Command: Install code command in PATH'"
echo " - Windows: VSCode adds 'code' to PATH automatically during installation"
exit 1
fi
# Step 1 - Install and build ts2famix
echo "Building ts2famix..."
npm install
npx tsc
# Step 2 - Install extension dependencies
echo "Installing extension dependencies..."
cd vscode-extension
npm install
# Step 3 - Package the extension
echo "Packaging extension..."
npx @vscode/vsce package --allow-missing-repository
# Step 4 - Install in VSCode
echo "Installing extension in VSCode..."
code --install-extension ts2famix-vscode-extension-0.0.1.vsix
echo "Done! Restart VSCode and open a TypeScript project to use the extension."