MCSManager/npm-dev-macos.sh

10 lines
249 B
Bash
Raw Normal View History

2023-08-20 23:20:11 +08:00
#!/bin/sh
currentPath="$(pwd)"
for action in "daemon" "panel" "frontend"
do
2024-01-15 14:41:51 +08:00
terminalCmd="tell app \"Terminal\" to do script \"cd $currentPath && npm run $action\""
2024-03-12 20:05:48 +08:00
echo "Open New Terminal: $terminalCmd"
osascript -e "$terminalCmd"
done