
quick app for MacOS to run BigCommerce CLI, editor , safari
startup.sh
#!/bin/bash
# Set the project directory
PROJECT_DIR="/Users/sumnima/Documents/minu"
# Change to the project directory
cd "$PROJECT_DIR" || exit 1
# Start the Stencil server in Terminal (first window)
osascript <<EOF
tell application "Terminal"
do script "cd '$PROJECT_DIR' && stencil start"
activate
end tell
EOF
# Open the project folder in Nova
open -a "Nova" "$PROJECT_DIR"
# Wait for server to start (adjust timing as needed)
sleep 30
# Open localhost in Safari
open -a "Safari" "http://localhost:3000"