Files
typescript-decompiler/setup.sh
T
2026-05-25 05:47:28 +00:00

25 lines
719 B
Bash
Executable File

#!/bin/bash
set -e
echo "Setting up new Effect project..."
# Install all dependencies (including @effect/eslint-plugin, typescript, etc.)
echo "Installing dependencies..."
pnpm install
# Pre-fetch the effect-mcp server so it runs instantly the first time
echo "Pre-caching effect-mcp MCP server..."
npx -y effect-mcp@latest --version >/dev/null 2>&1 || true
echo "Setting up git remotes..."
# Check if the 'template' remote already exists to avoid errors
if ! git remote | grep -q "^template$"; then
git remote add template git@git.ewynn.in:ada/effect-template.git
echo "Template remote added successfully."
else
echo "Template remote already exists."
fi
echo "Setup complete! The project is ready to use."