#!/bin/bash

# Install dependencies
echo "Installing dependencies..."
npm install

# Build the project
echo "Building project..."
npm run build

echo "Setup complete! You can now use the theme-cli by running:"
echo "  npm start -- shopify theme init"
echo ""
echo "Options:"
echo "  --name, -n         Theme name (default: my-theme)"
echo "  --force, -f        Overwrite existing directory"
echo "  --output-dir, -o   Specify where to place theme files"
echo ""
echo "Example with options:"
echo "  npm start -- shopify theme init -n my-shop-theme -o ./projects -f"
echo ""
echo "Or link it globally with:"
echo "  npm link"
echo "  theme-cli shopify theme init"
echo ""
echo "Note: The project uses TypeScript path aliases for cleaner imports."
echo "These are automatically handled during compilation and at runtime." 